2019-02-04 20:11:37 +00:00
<?xml version="1.0" encoding="us-ascii"?>
2015-04-26 19:10:23 +01:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
2016-08-03 10:59:49 +00:00
< title > mono-api-string.html< / title >
< style type = "text/css" >
.mapi-docs {
line-height: 1.5;
padding-left: 2em;
padding-right: 2em;
}
.mapi-docs p {
max-width: 60em;
}
.mapi-docs .mapi-body {
max-width: 60em;
}
.mapi-docs code {
border: 1px solid rgba(214,214,214,1);
background-color: rgba(249,249,249,1);
padding: 0.1em 0.5em;
}
.mapi-description code {
font-family: "Consolas", "Courier", monospace;
border: 1px solid rgba(214,214,214,1);
background-color: rgba(249,249,249,1);
padding: 0.1em 0.2em;
}
.mapi-header {
padding: 0 0 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
border: 1px solid rgba(233,233,233,1);
background-color: rgba(249,249,249,1);
}
.mapi-code {
padding: 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
border: 1px solid rgba(233,233,233,1);
background-color: rgba(249,249,249,1);
}
.mapi-code:first-line {
line-height: 0px;
}
2018-01-24 17:04:36 +00:00
.mapi-codeblock {
display: block;
padding: 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
border: 1px solid rgba(233,233,233,1);
background-color: rgba(249,249,249,1);
}
2016-08-03 10:59:49 +00:00
.mapi-entry code {
border: none;
background-color: transparent;
}
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
.mapi-parameters {
border-collapse: collapse;
border-spacing: 0;
empty-cells: hide;
border: 0;
margin: 5px 0 26px;
}
.mapi-parameters td {
border: 1px solid rgba(214,214,214,1);
border-left-style: none;
padding: 5px 25px 5px 10px;
}
.mapi-parameters tr>td:last-child {
border-right: 0;
}
.mapi-parameters td:first-of-type {
text-align: right;
padding: 7px;
vertical-align: top;
word-break: normal;
width: 40px;
}
.mapi-parameters tr:last-child>td {
border-bottom: 0;
}
.mapi-parameters tr:first-child>td {
border-top: 0;
}
.mapi-parameters tr td:first-of-type {
text-align: right;
padding: 7px;
vertical-align: top;
word-break: normal;
width: 40px;
}
.mapi {
left: -25px;
margin: 0;
padding: 13px 25px 0;
position: relative;
width: 100%;
}
.mapi-description {
background: rgba(249,249,249,1);
border-bottom: 1px solid rgba(233,233,233,1);
left: -25px;
margin: 0;
padding: 13px 25px 0;
position: relative;
width: 100%;
}
.mapi-entry {
background: transparent;
}
.mapi-docs {
}
.mapi-prototype {
border-left: 5px solid rgba(205,233,244,1);
padding: .5em;
margin-top: 5pt;
margin-bottom: 5pt;
font-family: "Consolas", "Courier", monospace;
display: block;
overflow: auto;
background-color: #f9f9f9;
}
.mapi-declaration {
margin-top: 21px;
}
.mapi-section {
font-size: smaller;
font-weight: bold;
margin-top: 21px;
line-height: 1.5;
}
.mapi-strike {
text-decoration: line-through;
}
.mapi-deprecated {
color: red;
}
.mapi-ptr-container {
background: white;
border-bottom: 1px solid rgba(233,233,233,1);
left: -25px;
padding-left: 25px;
padding-right: 25px;
padding-bottom: 13px;
position: relative;
width: 100%;
}
.mapi-ptr {
background: rgba(249,249,249,1);
border-left: 1px solid rgba(233,233,233,1);
border-top: 1px solid rgba(233,233,233,1);
height: 12px;
left: 37px;
top: -7px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
width: 12px;
}
.mapi-height-container {
left: -25px;
padding: 0 25px;
position: relative;
width: 100%;
}
2015-04-26 19:10:23 +01:00
< / style >
< / head >
< body >
2016-08-03 10:59:49 +00:00
< div class = "mapi-docs" >
2015-04-26 19:10:23 +01:00
< h2 > Strings< / h2 >
< p / > Strings representation inside the Mono runtime.
< h3 > Synopsis< / h3 >
2016-08-03 10:59:49 +00:00
< div class = "mapi-header" >
2015-04-26 19:10:23 +01:00
#include < metadata/object.h>
typedef struct {
MonoObject object;
gint32 length;
gunichar2 chars [0];
} MonoString;
< / div >
< p / > All of the operations on strings are done on pointers to
2016-08-03 10:59:49 +00:00
`MonoString` objects, like this:
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
< div class = "mapi-code" >
MonoString *hello = mono_string_new (mono_domain_get (), " hello, world" );
2015-04-26 19:10:23 +01:00
< / 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 >
2016-08-03 10:59:49 +00:00
< a name = "api:mono_string_new" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_new< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2015-04-26 19:10:23 +01:00
mono_string_new (MonoDomain *domain, const char *text)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > text< / i > < / td > < td > a pointer to a UTF-8 string< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > A newly created string object which contains < i > text< / i > .
< / div >
2016-08-03 10:59:49 +00:00
< div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
This function asserts if it cannot allocate a new string.< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_new_len" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_new_len< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2015-04-26 19:10:23 +01:00
mono_string_new_len (MonoDomain *domain, const char *text, guint length)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > text< / i > < / td > < td > a pointer to an utf8 string< / td > < / tr > < tr > < td > < i > length< / i > < / td > < td > number of bytes in < i > text< / i > to consider< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > A newly created string object which contains < i > text< / i > .
2016-08-03 10:59:49 +00:00
< / div >
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_new_size" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_new_size< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2015-04-26 19:10:23 +01:00
mono_string_new_size (MonoDomain *domain, gint32 len)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > text< / i > < / td > < td > a pointer to a UTF-16 string< / td > < / tr > < tr > < td > < i > len< / i > < / td > < td > the length of the string< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > A newly created string object of < i > len< / i >
2016-08-03 10:59:49 +00:00
< / div >
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_new_utf16" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_new_utf16< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2019-02-04 20:11:37 +00:00
mono_string_new_utf16 (MonoDomain *domain, const mono_unichar2 *text, gint32 len)
2015-04-26 19:10:23 +01:00
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > text< / i > < / td > < td > a pointer to an utf16 string< / td > < / tr > < tr > < td > < i > len< / i > < / td > < td > the length of the string< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > A newly created string object which contains < i > text< / i > .
2015-04-26 19:10:23 +01:00
< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_new_utf32" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_new_utf32< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
mono_string_new_utf32 (MonoDomain *domain, const mono_unichar4 *text, gint32 len)
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
< / div >
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > text< / i > < / td > < td > a pointer to a UTF-32 string< / td > < / tr > < tr > < td > < i > len< / i > < / td > < td > the length of the string< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > A newly created string object which contains < i > text< / i > .
2016-08-03 10:59:49 +00:00
< / div >
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_from_utf16" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_from_utf16< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
mono_string_from_utf16 (gunichar2 *data)
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
< / div >
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > data< / i > < / td > < td > the UTF-16 string (LPWSTR) to convert< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > a < code > MonoString< / code > .
2016-08-03 10:59:49 +00:00
< / div >
< div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
Converts a < code > NULL< / code > -terminated UTF-16 string (LPWSTR) to a < code > MonoString< / code > .< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_from_utf32" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_from_utf32< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2018-10-09 08:20:59 +00:00
mono_string_from_utf32 (/*const*/ mono_unichar4 *data)
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
< / div >
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > data< / i > < / td > < td > the UTF-32 string (LPWSTR) to convert< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > a < code > MonoString< / code > .
2016-08-03 10:59:49 +00:00
< / div >
< div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
Converts a UTF-32 (UCS-4) string to a < code > MonoString< / code > .< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< h3 > Conversions< / h3 >
< / div > <!-- class=mapi -->
< a name = "api:mono_string_to_utf16" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_to_utf16< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > mono_unichar2*
2019-04-12 14:10:50 +00:00
mono_string_to_utf16 (MonoString *string_obj)
2015-04-26 19:10:23 +01:00
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s< / i > < / td > < td > a < code > MonoString< / code > < / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > a null-terminated array of the UTF-16 chars
contained in < i > s< / i > . The result must be freed with < code > g_free()< / code > .
2015-04-26 19:10:23 +01:00
This is a temporary helper until our string implementation
2017-06-07 13:16:24 +00:00
is reworked to always include the null-terminating char.< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_to_utf8" > < / a >
< div class = "mapi" >
2019-04-12 14:10:50 +00:00
< div class = "mapi-entry mapi-strike" > < code > mono_string_to_utf8< / code > < / div > < br / > < div class = 'mapi-deprecated' > < b > Deprecated:< / b > Use < code > mono_string_to_utf8_checked_internal< / code > to avoid having an exception arbitrarily raised.< / div >
2016-08-03 10:59:49 +00:00
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > char*
2015-04-26 19:10:23 +01:00
mono_string_to_utf8 (MonoString *s)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s< / i > < / td > < td > a < code > System.String< / code > < / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > the UTF-8 representation for < i > s< / i > .
The resulting buffer needs to be freed with < code > mono_free()< / code > .< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_to_utf8_checked" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_to_utf8_checked< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > char*
2019-04-12 14:10:50 +00:00
mono_string_to_utf8_checked (MonoString *string_obj, MonoError *error)
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
< / div >
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s< / i > < / td > < td > a < code > System.String< / code > < / td > < / tr > < tr > < td > < i > error< / i > < / td > < td > a < code > MonoError< / code > .< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
2018-05-10 08:37:03 +00:00
Converts a < code > MonoString< / code > to its UTF-8 representation. May fail; check
2018-01-24 17:04:36 +00:00
< i > error< / i > to determine whether the conversion was successful.
The resulting buffer should be freed with < code > mono_free()< / code > .< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_to_utf32" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_to_utf32< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > mono_unichar4*
2019-04-12 14:10:50 +00:00
mono_string_to_utf32 (MonoString *string_obj)
2015-04-26 19:10:23 +01:00
2016-08-03 10:59:49 +00:00
< / div >
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s< / i > < / td > < td > a < code > MonoString< / code > < / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > a null-terminated array of the UTF-32 (UCS-4) chars
contained in < i > s< / i > . The result must be freed with < code > g_free()< / code > .< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< h3 > Methods< / h3 >
< / div > <!-- class=mapi -->
< a name = "api:mono_string_equal" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_equal< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > gboolean
2015-04-26 19:10:23 +01:00
mono_string_equal (MonoString *s1, MonoString *s2)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s1< / i > < / td > < td > First string to compare< / td > < / tr > < tr > < td > < i > s2< / i > < / td > < td > Second string to compare< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > < code > FALSE< / code > if the strings differ.
< / div >
< div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
< p / >
Compares two < code > MonoString*< / code > instances ordinally for equality.
< p / > < / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_hash" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_hash< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > guint
2015-04-26 19:10:23 +01:00
mono_string_hash (MonoString *s)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s< / i > < / td > < td > the string to hash< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > the hash for the string.
< / div >
< div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
< p / >
Compute the hash for a < code > MonoString*< / code > < / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_intern" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_intern< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2019-04-12 14:10:50 +00:00
mono_string_intern (MonoString *str_raw)
2015-04-26 19:10:23 +01:00
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > o< / i > < / td > < td > String to intern< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > The interned string.
2016-08-03 10:59:49 +00:00
< / div >
< div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
2019-04-12 14:10:50 +00:00
Interns the string passed.< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_is_interned" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_is_interned< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2019-04-12 14:10:50 +00:00
mono_string_is_interned (MonoString *str_raw)
2015-04-26 19:10:23 +01:00
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > o< / i > < / td > < td > String to probe< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > Whether the string has been interned.
< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_new_wrapper" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_new_wrapper< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
< div class = "mapi-prototype" > MonoString*
2015-04-26 19:10:23 +01:00
mono_string_new_wrapper (const char *text)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > text< / i > < / td > < td > pointer to UTF-8 characters.< / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Description< / div >
2018-01-24 17:04:36 +00:00
< div >
Helper function to create a string object from < i > text< / i > in the current domain.< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->
< / div > <!-- class=mapi -->
< a name = "api:mono_string_chars" > < / a >
< div class = "mapi" >
< div class = "mapi-entry " > < code > mono_string_chars< / code > < / div >
< div class = "mapi-height-container" >
< div class = "mapi-ptr-container" > < / div >
< div class = "mapi-description" >
< div class = "mapi-ptr" > < / div >
< div class = "mapi-declaration mapi-section" > Syntax< / div >
2019-04-12 14:10:50 +00:00
< div class = "mapi-prototype" > mono_unichar2*
2015-04-26 19:10:23 +01:00
mono_string_chars (MonoString *s)
< / div >
2016-08-03 10:59:49 +00:00
< p / >
< div class = "mapi-section" > Parameters< / div >
2017-06-07 13:16:24 +00:00
< table class = "mapi-parameters" > < tbody > < tr > < td > < i > s< / i > < / td > < td > a < code > MonoString< / code > < / td > < / tr > < / tbody > < / table > < div class = "mapi-section" > Return value< / div >
< div > a pointer to the UTF-16 characters stored in the < code > MonoString< / code >
< / div >
2016-08-03 10:59:49 +00:00
< / div > <!-- mapi - description -->
< / div > <!-- height container -->