Table of Contents

Class String

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class String : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<String>, IDisposable
Inheritance
String
Implements
Inherited Members

Constructors

String()

public String()

String(StringOwnedHandle)

public String(StringOwnedHandle handle)

Parameters

handle StringOwnedHandle

Properties

AllocatedLen

public nuint AllocatedLen { get; set; }

Property Value

nuint

Handle

public StringOwnedHandle Handle { get; }

Property Value

StringOwnedHandle

Len

public nuint Len { get; set; }

Property Value

nuint

Str

public string? Str { get; set; }

Property Value

string

Methods

Append(string)

public String Append(string val)

Parameters

val string

Returns

String

AppendC(sbyte)

public String AppendC(sbyte c)

Parameters

c sbyte

Returns

String

AppendLen(string, nint)

public String AppendLen(string val, nint len)

Parameters

val string
len nint

Returns

String

AppendUnichar(uint)

public String AppendUnichar(uint wc)

Parameters

wc uint

Returns

String

AppendUriEscaped(string, string, bool)

[Version("2.16")]
public String AppendUriEscaped(string unescaped, string reservedCharsAllowed, bool allowUtf8)

Parameters

unescaped string
reservedCharsAllowed string
allowUtf8 bool

Returns

String

AppendVprintf(string, nint)

[Version("2.14")]
public void AppendVprintf(string format, nint args)

Parameters

format string
args nint

AsciiDown()

public String AsciiDown()

Returns

String

AsciiUp()

public String AsciiUp()

Returns

String

Assign(string)

public String Assign(string rval)

Parameters

rval string

Returns

String

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Down()

public String Down()

Returns

String

Equal(String)

public bool Equal(String v2)

Parameters

v2 String

Returns

bool

Equals(String?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(String? other)

Parameters

other String

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Erase(nint, nint)

public String Erase(nint pos, nint len)

Parameters

pos nint
len nint

Returns

String

Free(bool)

public string? Free(bool freeSegment)

Parameters

freeSegment bool

Returns

string

FreeAndSteal()

[Version("2.76")]
public string FreeAndSteal()

Returns

string

FreeToBytes()

[Version("2.34")]
public Bytes FreeToBytes()

Returns

Bytes

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Hash()

public uint Hash()

Returns

uint

Insert(nint, string)

public String Insert(nint pos, string val)

Parameters

pos nint
val string

Returns

String

InsertC(nint, sbyte)

public String InsertC(nint pos, sbyte c)

Parameters

pos nint
c sbyte

Returns

String

InsertLen(nint, string, nint)

public String InsertLen(nint pos, string val, nint len)

Parameters

pos nint
val string
len nint

Returns

String

InsertUnichar(nint, uint)

public String InsertUnichar(nint pos, uint wc)

Parameters

pos nint
wc uint

Returns

String

New(string?)

public static String New(string? init)

Parameters

init string

Returns

String

NewLen(string, nint)

public static String NewLen(string init, nint len)

Parameters

init string
len nint

Returns

String

NewTake(string?)

[Version("2.78")]
public static String NewTake(string? init)

Parameters

init string

Returns

String

Overwrite(nuint, string)

[Version("2.14")]
public String Overwrite(nuint pos, string val)

Parameters

pos nuint
val string

Returns

String

OverwriteLen(nuint, string, nint)

[Version("2.14")]
public String OverwriteLen(nuint pos, string val, nint len)

Parameters

pos nuint
val string
len nint

Returns

String

Prepend(string)

public String Prepend(string val)

Parameters

val string

Returns

String

PrependC(sbyte)

public String PrependC(sbyte c)

Parameters

c sbyte

Returns

String

PrependLen(string, nint)

public String PrependLen(string val, nint len)

Parameters

val string
len nint

Returns

String

PrependUnichar(uint)

public String PrependUnichar(uint wc)

Parameters

wc uint

Returns

String

Replace(string, string, uint)

[Version("2.68")]
public uint Replace(string find, string replace, uint limit)

Parameters

find string
replace string
limit uint

Returns

uint

SetSize(nuint)

public String SetSize(nuint len)

Parameters

len nuint

Returns

String

SizedNew(nuint)

public static String SizedNew(nuint dflSize)

Parameters

dflSize nuint

Returns

String

Truncate(nuint)

public String Truncate(nuint len)

Parameters

len nuint

Returns

String

Up()

public String Up()

Returns

String

Vprintf(string, nint)

[Version("2.14")]
public void Vprintf(string format, nint args)

Parameters

format string
args nint