Table of Contents

Class String

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class String : BoxedRecord, IEquatable<String>
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, long)

public String AppendLen(string val, long len)

Parameters

val string
len long

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, IntPtr)

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

Parameters

format string
args IntPtr

AsciiDown()

public String AsciiDown()

Returns

String

AsciiUp()

public String AsciiUp()

Returns

String

Assign(string)

public String Assign(string rval)

Parameters

rval string

Returns

String

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(long, long)

public String Erase(long pos, long len)

Parameters

pos long
len long

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(long, string)

public String Insert(long pos, string val)

Parameters

pos long
val string

Returns

String

InsertC(long, sbyte)

public String InsertC(long pos, sbyte c)

Parameters

pos long
c sbyte

Returns

String

InsertLen(long, string, long)

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

Parameters

pos long
val string
len long

Returns

String

InsertUnichar(long, uint)

public String InsertUnichar(long pos, uint wc)

Parameters

pos long
wc uint

Returns

String

New(string?)

public static String New(string? init)

Parameters

init string

Returns

String

NewLen(string, long)

public static String NewLen(string init, long len)

Parameters

init string
len long

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, long)

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

Parameters

pos nuint
val string
len long

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, long)

public String PrependLen(string val, long len)

Parameters

val string
len long

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, IntPtr)

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

Parameters

format string
args IntPtr