Class String
public class String
- Inheritance
-
String
- Inherited Members
Methods
Append(StringHandle, NonNullableUtf8StringHandle)
Calls native method g_string_append.
public static extern StringUnownedHandle Append(StringHandle @string, NonNullableUtf8StringHandle val)
Parameters
string
StringHandleval
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
AppendC(StringHandle, sbyte)
Calls native method g_string_append_c.
public static extern StringUnownedHandle AppendC(StringHandle @string, sbyte c)
Parameters
string
StringHandlec
sbyteTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
AppendLen(StringHandle, NonNullableUtf8StringHandle, long)
Calls native method g_string_append_len.
public static extern StringUnownedHandle AppendLen(StringHandle @string, NonNullableUtf8StringHandle val, long len)
Parameters
string
StringHandleval
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
longTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
AppendUnichar(StringHandle, uint)
Calls native method g_string_append_unichar.
public static extern StringUnownedHandle AppendUnichar(StringHandle @string, uint wc)
Parameters
string
StringHandlewc
uintTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
AppendUriEscaped(StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, bool)
Calls native method g_string_append_uri_escaped. Version: 2.16
[Version("2.16")]
public static extern StringUnownedHandle AppendUriEscaped(StringHandle @string, NonNullableUtf8StringHandle unescaped, NonNullableUtf8StringHandle reservedCharsAllowed, bool allowUtf8)
Parameters
string
StringHandleunescaped
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
reservedCharsAllowed
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
allowUtf8
boolTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
AppendVprintf(StringHandle, NonNullableUtf8StringHandle, IntPtr)
Calls native method g_string_append_vprintf. Version: 2.14
[Version("2.14")]
public static extern void AppendVprintf(StringHandle @string, NonNullableUtf8StringHandle format, IntPtr args)
Parameters
string
StringHandleformat
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
args
IntPtrTransfer ownership: None Nullable: False
AsciiDown(StringHandle)
Calls native method g_string_ascii_down.
public static extern StringUnownedHandle AsciiDown(StringHandle @string)
Parameters
string
StringHandle
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
AsciiUp(StringHandle)
Calls native method g_string_ascii_up.
public static extern StringUnownedHandle AsciiUp(StringHandle @string)
Parameters
string
StringHandle
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Assign(StringHandle, NonNullableUtf8StringHandle)
Calls native method g_string_assign.
public static extern StringUnownedHandle Assign(StringHandle @string, NonNullableUtf8StringHandle rval)
Parameters
string
StringHandlerval
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Down(StringHandle)
Calls native method g_string_down.
public static extern StringUnownedHandle Down(StringHandle @string)
Parameters
string
StringHandle
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Equal(StringHandle, StringHandle)
Calls native method g_string_equal.
public static extern bool Equal(StringHandle v, StringHandle v2)
Parameters
v
StringHandleTransfer ownership: None Nullable: False
v2
StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Erase(StringHandle, long, long)
Calls native method g_string_erase.
public static extern StringUnownedHandle Erase(StringHandle @string, long pos, long len)
Parameters
string
StringHandlepos
longTransfer ownership: None Nullable: False
len
longTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Free(StringUnownedHandle, bool)
Calls native method g_string_free.
public static extern NullableUtf8StringOwnedHandle Free(StringUnownedHandle @string, bool freeSegment)
Parameters
string
StringUnownedHandlefreeSegment
boolTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
FreeAndSteal(StringUnownedHandle)
Calls native method g_string_free_and_steal. Version: 2.76
[Version("2.76")]
public static extern NonNullableUtf8StringOwnedHandle FreeAndSteal(StringUnownedHandle @string)
Parameters
string
StringUnownedHandle
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
FreeToBytes(StringUnownedHandle)
Calls native method g_string_free_to_bytes. Version: 2.34
[Version("2.34")]
public static extern BytesOwnedHandle FreeToBytes(StringUnownedHandle @string)
Parameters
string
StringUnownedHandle
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
GetGType()
Calls native function g_gstring_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
Hash(StringHandle)
Calls native method g_string_hash.
public static extern uint Hash(StringHandle str)
Parameters
str
StringHandleTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
Insert(StringHandle, long, NonNullableUtf8StringHandle)
Calls native method g_string_insert.
public static extern StringUnownedHandle Insert(StringHandle @string, long pos, NonNullableUtf8StringHandle val)
Parameters
string
StringHandlepos
longTransfer ownership: None Nullable: False
val
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
InsertC(StringHandle, long, sbyte)
Calls native method g_string_insert_c.
public static extern StringUnownedHandle InsertC(StringHandle @string, long pos, sbyte c)
Parameters
string
StringHandlepos
longTransfer ownership: None Nullable: False
c
sbyteTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
InsertLen(StringHandle, long, NonNullableUtf8StringHandle, long)
Calls native method g_string_insert_len.
public static extern StringUnownedHandle InsertLen(StringHandle @string, long pos, NonNullableUtf8StringHandle val, long len)
Parameters
string
StringHandlepos
longTransfer ownership: None Nullable: False
val
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
longTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
InsertUnichar(StringHandle, long, uint)
Calls native method g_string_insert_unichar.
public static extern StringUnownedHandle InsertUnichar(StringHandle @string, long pos, uint wc)
Parameters
string
StringHandlepos
longTransfer ownership: None Nullable: False
wc
uintTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
New(NullableUtf8StringHandle)
Calls native constructor g_string_new.
public static extern StringOwnedHandle New(NullableUtf8StringHandle init)
Parameters
init
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- StringOwnedHandle
Transfer ownership: Full Nullable: False
NewLen(NonNullableUtf8StringHandle, long)
Calls native constructor g_string_new_len.
public static extern StringOwnedHandle NewLen(NonNullableUtf8StringHandle init, long len)
Parameters
init
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
longTransfer ownership: None Nullable: False
Returns
- StringOwnedHandle
Transfer ownership: Full Nullable: False
NewTake(NullableUtf8StringHandle)
Calls native constructor g_string_new_take. Version: 2.78
[Version("2.78")]
public static extern StringOwnedHandle NewTake(NullableUtf8StringHandle init)
Parameters
init
NullableUtf8StringHandleTransfer ownership: Full Nullable: True
Returns
- StringOwnedHandle
Transfer ownership: Full Nullable: False
Overwrite(StringHandle, nuint, NonNullableUtf8StringHandle)
Calls native method g_string_overwrite. Version: 2.14
[Version("2.14")]
public static extern StringUnownedHandle Overwrite(StringHandle @string, nuint pos, NonNullableUtf8StringHandle val)
Parameters
string
StringHandlepos
nuintTransfer ownership: None Nullable: False
val
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
OverwriteLen(StringHandle, nuint, NonNullableUtf8StringHandle, long)
Calls native method g_string_overwrite_len. Version: 2.14
[Version("2.14")]
public static extern StringUnownedHandle OverwriteLen(StringHandle @string, nuint pos, NonNullableUtf8StringHandle val, long len)
Parameters
string
StringHandlepos
nuintTransfer ownership: None Nullable: False
val
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
longTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Prepend(StringHandle, NonNullableUtf8StringHandle)
Calls native method g_string_prepend.
public static extern StringUnownedHandle Prepend(StringHandle @string, NonNullableUtf8StringHandle val)
Parameters
string
StringHandleval
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
PrependC(StringHandle, sbyte)
Calls native method g_string_prepend_c.
public static extern StringUnownedHandle PrependC(StringHandle @string, sbyte c)
Parameters
string
StringHandlec
sbyteTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
PrependLen(StringHandle, NonNullableUtf8StringHandle, long)
Calls native method g_string_prepend_len.
public static extern StringUnownedHandle PrependLen(StringHandle @string, NonNullableUtf8StringHandle val, long len)
Parameters
string
StringHandleval
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
longTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
PrependUnichar(StringHandle, uint)
Calls native method g_string_prepend_unichar.
public static extern StringUnownedHandle PrependUnichar(StringHandle @string, uint wc)
Parameters
string
StringHandlewc
uintTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Replace(StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, uint)
Calls native method g_string_replace. Version: 2.68
[Version("2.68")]
public static extern uint Replace(StringHandle @string, NonNullableUtf8StringHandle find, NonNullableUtf8StringHandle replace, uint limit)
Parameters
string
StringHandlefind
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
replace
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
limit
uintTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
SetSize(StringHandle, nuint)
Calls native method g_string_set_size.
public static extern StringUnownedHandle SetSize(StringHandle @string, nuint len)
Parameters
string
StringHandlelen
nuintTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
SizedNew(nuint)
Calls native constructor g_string_sized_new.
public static extern StringOwnedHandle SizedNew(nuint dflSize)
Parameters
dflSize
nuintTransfer ownership: None Nullable: False
Returns
- StringOwnedHandle
Transfer ownership: Full Nullable: False
Truncate(StringHandle, nuint)
Calls native method g_string_truncate.
public static extern StringUnownedHandle Truncate(StringHandle @string, nuint len)
Parameters
string
StringHandlelen
nuintTransfer ownership: None Nullable: False
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Up(StringHandle)
Calls native method g_string_up.
public static extern StringUnownedHandle Up(StringHandle @string)
Parameters
string
StringHandle
Returns
- StringUnownedHandle
Transfer ownership: None Nullable: False
Vprintf(StringHandle, NonNullableUtf8StringHandle, IntPtr)
Calls native method g_string_vprintf. Version: 2.14
[Version("2.14")]
public static extern void Vprintf(StringHandle @string, NonNullableUtf8StringHandle format, IntPtr args)
Parameters
string
StringHandleformat
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
args
IntPtrTransfer ownership: None Nullable: False