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
Handle
public StringOwnedHandle Handle { get; }
Property Value
Len
public nuint Len { get; set; }
Property Value
Str
public string? Str { get; set; }
Property Value
Methods
Append(string)
public String Append(string val)
Parameters
val
string
Returns
AppendC(sbyte)
public String AppendC(sbyte c)
Parameters
c
sbyte
Returns
AppendLen(string, long)
public String AppendLen(string val, long len)
Parameters
Returns
AppendUnichar(uint)
public String AppendUnichar(uint wc)
Parameters
wc
uint
Returns
AppendUriEscaped(string, string, bool)
[Version("2.16")]
public String AppendUriEscaped(string unescaped, string reservedCharsAllowed, bool allowUtf8)
Parameters
Returns
AppendVprintf(string, IntPtr)
[Version("2.14")]
public void AppendVprintf(string format, IntPtr args)
Parameters
AsciiDown()
public String AsciiDown()
Returns
AsciiUp()
public String AsciiUp()
Returns
Assign(string)
public String Assign(string rval)
Parameters
rval
string
Returns
Down()
public String Down()
Returns
Equal(String)
public bool Equal(String v2)
Parameters
v2
String
Returns
Equals(String?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(String? other)
Parameters
other
StringAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Erase(long, long)
public String Erase(long pos, long len)
Parameters
Returns
Free(bool)
public string? Free(bool freeSegment)
Parameters
freeSegment
bool
Returns
FreeAndSteal()
[Version("2.76")]
public string FreeAndSteal()
Returns
FreeToBytes()
[Version("2.34")]
public Bytes FreeToBytes()
Returns
GetGType()
public static Type GetGType()
Returns
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
Insert(long, string)
public String Insert(long pos, string val)
Parameters
Returns
InsertC(long, sbyte)
public String InsertC(long pos, sbyte c)
Parameters
Returns
InsertLen(long, string, long)
public String InsertLen(long pos, string val, long len)
Parameters
Returns
InsertUnichar(long, uint)
public String InsertUnichar(long pos, uint wc)
Parameters
Returns
New(string?)
public static String New(string? init)
Parameters
init
string
Returns
NewLen(string, long)
public static String NewLen(string init, long len)
Parameters
Returns
NewTake(string?)
[Version("2.78")]
public static String NewTake(string? init)
Parameters
init
string
Returns
Overwrite(nuint, string)
[Version("2.14")]
public String Overwrite(nuint pos, string val)
Parameters
Returns
OverwriteLen(nuint, string, long)
[Version("2.14")]
public String OverwriteLen(nuint pos, string val, long len)
Parameters
Returns
Prepend(string)
public String Prepend(string val)
Parameters
val
string
Returns
PrependC(sbyte)
public String PrependC(sbyte c)
Parameters
c
sbyte
Returns
PrependLen(string, long)
public String PrependLen(string val, long len)
Parameters
Returns
PrependUnichar(uint)
public String PrependUnichar(uint wc)
Parameters
wc
uint
Returns
Replace(string, string, uint)
[Version("2.68")]
public uint Replace(string find, string replace, uint limit)
Parameters
Returns
SetSize(nuint)
public String SetSize(nuint len)
Parameters
len
nuint
Returns
SizedNew(nuint)
public static String SizedNew(nuint dflSize)
Parameters
dflSize
nuint
Returns
Truncate(nuint)
public String Truncate(nuint len)
Parameters
len
nuint
Returns
Up()
public String Up()
Returns
Vprintf(string, IntPtr)
[Version("2.14")]
public void Vprintf(string format, IntPtr args)