Table of Contents

Class String

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
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 StringHandle
val NonNullableUtf8StringHandle

Transfer 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 StringHandle
c sbyte

Transfer 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 StringHandle
val NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

len long

Transfer 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 StringHandle
wc uint

Transfer 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 StringHandle
unescaped NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

reservedCharsAllowed NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

allowUtf8 bool

Transfer 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 StringHandle
format NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

args IntPtr

Transfer 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 StringHandle
rval NonNullableUtf8StringHandle

Transfer 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 StringHandle

Transfer ownership: None Nullable: False

v2 StringHandle

Transfer 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 StringHandle
pos long

Transfer ownership: None Nullable: False

len long

Transfer 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 StringUnownedHandle
freeSegment bool

Transfer 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 StringHandle

Transfer 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 StringHandle
pos long

Transfer ownership: None Nullable: False

val NonNullableUtf8StringHandle

Transfer 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 StringHandle
pos long

Transfer ownership: None Nullable: False

c sbyte

Transfer 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 StringHandle
pos long

Transfer ownership: None Nullable: False

val NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

len long

Transfer 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 StringHandle
pos long

Transfer ownership: None Nullable: False

wc uint

Transfer 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 NullableUtf8StringHandle

Transfer 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 NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

len long

Transfer 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 NullableUtf8StringHandle

Transfer 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 StringHandle
pos nuint

Transfer ownership: None Nullable: False

val NonNullableUtf8StringHandle

Transfer 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 StringHandle
pos nuint

Transfer ownership: None Nullable: False

val NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

len long

Transfer 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 StringHandle
val NonNullableUtf8StringHandle

Transfer 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 StringHandle
c sbyte

Transfer 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 StringHandle
val NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

len long

Transfer 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 StringHandle
wc uint

Transfer 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 StringHandle
find NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

replace NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

limit uint

Transfer 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 StringHandle
len nuint

Transfer 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 nuint

Transfer 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 StringHandle
len nuint

Transfer 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 StringHandle
format NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

args IntPtr

Transfer ownership: None Nullable: False