Table of Contents

Class StringExtensions

Namespace
Anvil.API
Assembly
NWN.Anvil.dll
public static class StringExtensions
Inheritance
StringExtensions
Inherited Members

Methods

AppendColored(StringBuilder, string, Color)
ColorString(string, Color)
IsReservedScriptName(string)
IsValidScriptName(string?, bool)
ParseFloat(string)

Parses the specified string as an float.

ParseFloat(string, float)

Parses the specified string as an float.

ParseInt(string)

Parses the specified string as an integer.

ParseInt(string, int)

Parses the specified string as an integer.

ParseIntBool(string)

Parses the specified string as an integer based boolean (1 = true, 0 = false).

ParseIntBool(string, bool)

Parses the specified string as an integer based boolean (1 = true, 0 = false).

ParseObject(string)

Resolves the specified GameObject ID string to an object.
This is the temporary ID created from ToString(). See ToNwObject(Guid) to parse persistent UUIDs.

ParseObject<T>(string)

Resolves the specified GameObject ID string to an object.
This is the temporary ID created from ToString(). See ToNwObject(Guid) to parse persistent UUIDs.

ReadBlock(StringReader, int)
ReadUntilChar(StringReader, char)
Skip(StringReader, int)
StripColors(string)

Strip any color codes from a string.

ToBase64EncodedString(byte[])
ToByteArray(string)
TryParseFloat(string, out float)
TryParseInt(string, out int)
TryParseIntBool(string, out bool)
TryParseObject(string, out NwObject?)

Tries to resolve the specified GameObject ID string to an object. A return value indicates whether the conversion succeeded or failed.
This is the temporary ID created from ToString(). See ToNwObject(Guid) to parse persistent UUIDs.

TryParseObject<T>(string, out T?)

Tries to resolve the specified GameObject ID string to an object. A return value indicates whether the conversion succeeded or failed.
This is the temporary ID created from ToString(). See ToNwObject(Guid) to parse persistent UUIDs.