String

Overview

RTL2 String gives a unified interface on top of the platforms string type, ensuring all apis work the same on all platforms.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to: PlatformString

 

constructor (array of Byte, Encoding)

Creates a string with Value as content, in the encoding given in Encoding.

 

constructor(aBytes: array of Byte; aEncoding: Encoding)

 

String(Byte[] aBytes, Encoding aEncoding)

 

init(_ aBytes: Byte..., _ aEncoding: Encoding)

 

String(Byte[] aBytes, Encoding aEncoding)

 

Sub New(aBytes As Byte(), aEncoding As Encoding)

Parameters:

  • aBytes:
  • aEncoding:

constructor (Char, Int32)

Creates a string with aChar repeated aCount times.

 

constructor(aChar: Char; aCount: Int32)

 

String(Char aChar, Int32 aCount)

 

init(_ aChar: Char, _ aCount: Int32)

 

String(Char aChar, Integer aCount)

 

Sub New(aChar As Char, aCount As Int32)

Parameters:

  • aChar:
  • aCount:

constructor (array of UnicodeCodePoint)

Creates a string with aCodePoints as content.

 

constructor(aCodePoints: array of UnicodeCodePoint)

 

String(UnicodeCodePoint[] aCodePoints)

 

init(_ aCodePoints: UnicodeCodePoint...)

 

String(UnicodeCodePoint[] aCodePoints)

 

Sub New(aCodePoints As UnicodeCodePoint())

Parameters:

  • aCodePoints:

constructor (List<UnsignedInteger>) Cooper

Creates a string with aCodePoints as content.

 

constructor(aCodePoints: List<UnsignedInteger>)

 

String(List<UnsignedInteger> aCodePoints)

 

init(_ aCodePoints: List<UnsignedInteger>)

 

String(List<UnsignedInteger> aCodePoints)

 

Sub New(aCodePoints As List<UnsignedInteger>)

Parameters:

  • aCodePoints:

constructor (List<UnicodeCodePoint>) .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Creates a string with aCodePoints as content.

 

constructor(aCodePoints: List<UnicodeCodePoint>)

 

String(List<UnicodeCodePoint> aCodePoints)

 

// Toffee
init(_ aCodePoints: List<nullable UnicodeCodePoint>)
// ToffeeV2
init(_ aCodePoints: List<UnicodeCodePoint>)

 

Sub New(aCodePoints As List<UnicodeCodePoint>)

Parameters:

  • aCodePoints:

constructor (array of Char)

Creates a string with Value as content.

 

constructor(Value: array of Char)

 

String(Char[] Value)

 

init(_ Value: Char...)

 

String(Char[] Value)

 

Sub New(Value As Char())

Parameters:

  • Value:

constructor (array of Char, Int32, Int32)

Creates a string with Value as content.

 

constructor(Value: array of Char; Offset: Int32; Count: Int32)

 

String(Char[] Value, Int32 Offset, Int32 Count)

 

init(_ Value: Char..., _ Offset: Int32, _ Count: Int32)

 

String(Char[] Value, Integer Offset, Integer Count)

 

Sub New(Value As Char(), Offset As Int32, Count As Int32)

Parameters:

  • Value:
  • Offset:
  • Count:

constructor <clinit>  External Cooper

 

class method constructor <clinit>

 

static void constructor <clinit>()

 

static func constructor <clinit>()

 

static void constructor <clinit>()

 

Shared Sub constructor <clinit>()

AppendPath (array of String): String Cooper, Island, Toffee, ToffeeV2

 

method AppendPath(params aPaths: array of String): nullable String

 

String? AppendPath(params String[] aPaths)

 

// Toffee
func AppendPath(_ aPaths: String...) -> String
// ToffeeV2
func AppendPath(_ aPaths: String...) -> String?

 

String AppendPath(String[]... aPaths)

 

Function AppendPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendPath (array of String): nullable String .NET, .NET Standard 2.0

 

method AppendPath(params aPaths: array of String): nullable String

 

String? AppendPath(params String[] aPaths)

 

func AppendPath(_ aPaths: String...) -> String?

 

Function AppendPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendUnixPath (array of String): String Cooper, Island, Toffee, ToffeeV2

 

method AppendUnixPath(params aPaths: array of String): nullable String

 

String? AppendUnixPath(params String[] aPaths)

 

// Toffee
func AppendUnixPath(_ aPaths: String...) -> String
// ToffeeV2
func AppendUnixPath(_ aPaths: String...) -> String?

 

String AppendUnixPath(String[]... aPaths)

 

Function AppendUnixPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendUnixPath (array of String): nullable String .NET, .NET Standard 2.0

 

method AppendUnixPath(params aPaths: array of String): nullable String

 

String? AppendUnixPath(params String[] aPaths)

 

func AppendUnixPath(_ aPaths: String...) -> String?

 

Function AppendUnixPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendWindowsPath (array of String): String Cooper, Island, Toffee, ToffeeV2

 

method AppendWindowsPath(params aPaths: array of String): nullable String

 

String? AppendWindowsPath(params String[] aPaths)

 

// Toffee
func AppendWindowsPath(_ aPaths: String...) -> String
// ToffeeV2
func AppendWindowsPath(_ aPaths: String...) -> String?

 

String AppendWindowsPath(String[]... aPaths)

 

Function AppendWindowsPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendWindowsPath (array of String): nullable String .NET, .NET Standard 2.0

 

method AppendWindowsPath(params aPaths: array of String): nullable String

 

String? AppendWindowsPath(params String[] aPaths)

 

func AppendWindowsPath(_ aPaths: String...) -> String?

 

Function AppendWindowsPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

Capitalize Cooper, Island, Toffee, ToffeeV2

Uppercase this with the default locale.

 

method Capitalize: not nullable String

 

String! Capitalize()

 

func Capitalize() -> String

 

String Capitalize()

 

Function Capitalize() As String

Capitalize (Locale): not nullable String Cooper, Island, Toffee, ToffeeV2

Uppercase this with the given locale.

 

method Capitalize(aLocale: Locale): not nullable String

 

String! Capitalize(Locale aLocale)

 

func Capitalize(_ aLocale: Locale) -> String

 

String Capitalize(Locale aLocale)

 

Function Capitalize(aLocale As Locale) As String

Parameters:

  • aLocale:

Capitalize .NET, .NET Standard 2.0

 

method Capitalize: not nullable String

 

String! Capitalize()

 

func Capitalize() -> String

 

Function Capitalize() As String

Capitalize (Locale): not nullable String .NET, .NET Standard 2.0

 

method Capitalize(aLocale: Locale): not nullable String

 

String! Capitalize(Locale aLocale)

 

func Capitalize(_ aLocale: Locale) -> String

 

Function Capitalize(aLocale As Locale) As String

Parameters:

  • aLocale:

CapitalizeInvariant Cooper, Island, Toffee, ToffeeV2

Uppercase this with the invariant locale.

 

method CapitalizeInvariant: not nullable String

 

String! CapitalizeInvariant()

 

func CapitalizeInvariant() -> String

 

String CapitalizeInvariant()

 

Function CapitalizeInvariant() As String

CapitalizeInvariant .NET, .NET Standard 2.0

 

method CapitalizeInvariant: not nullable String

 

String! CapitalizeInvariant()

 

func CapitalizeInvariant() -> String

 

Function CapitalizeInvariant() As String

Chars

Accessors for characters in the string

 

property Chars[aIndex: Int32]: Char read;

 

Char Chars[Int32 aIndex] { get; }

 

subscript Chars(_ aIndex: Int32) -> Char { get{} }

 

Char Chars[Integer aIndex] { __get; }

 

ReadOnly Property Chars(aIndex As Int32) As Char

Compare

Compare a string, returns 0 if the same, -1 if less, 1 if greater.

 

class method Compare(Value1: String; Value2: String): Int32

 

static Int32 Compare(String Value1, String Value2)

 

static func Compare(_ Value1: String, _ Value2: String) -> Int32

 

static Integer Compare(String Value1, String Value2)

 

Shared Function Compare(Value1 As String, Value2 As String) As Int32

Parameters:

  • Value1:
  • Value2:

CompareTo (String): Integer Cooper, Island, Toffee, ToffeeV2

compare this string to another string.

 

method CompareTo(Value: String): Int32

 

Int32 CompareTo(String Value)

 

func CompareTo(_ Value: String) -> Int32

 

Integer CompareTo(String Value)

 

Function CompareTo(Value As String) As Int32

Parameters:

  • Value:

CompareTo (String): Int32 .NET, .NET Standard 2.0

 

method CompareTo(Value: String): Int32

 

Int32 CompareTo(String Value)

 

func CompareTo(_ Value: String) -> Int32

 

Function CompareTo(Value As String) As Int32

Parameters:

  • Value:

CompareToIgnoreCase (String): Integer Cooper, Island, Toffee, ToffeeV2

Compare a string, case insensitive, returns 0 if the same, -1 if less, 1 if greater.

 

method CompareToIgnoreCase(Value: String): Int32

 

Int32 CompareToIgnoreCase(String Value)

 

func CompareToIgnoreCase(_ Value: String) -> Int32

 

Integer CompareToIgnoreCase(String Value)

 

Function CompareToIgnoreCase(Value As String) As Int32

Parameters:

  • Value:

CompareToIgnoreCase (String): Int32 .NET, .NET Standard 2.0

 

method CompareToIgnoreCase(Value: String): Int32

 

Int32 CompareToIgnoreCase(String Value)

 

func CompareToIgnoreCase(_ Value: String) -> Int32

 

Function CompareToIgnoreCase(Value As String) As Int32

Parameters:

  • Value:

Contains

Returns true if a string contains another string.

 

method Contains(Value: String): Boolean

 

Boolean Contains(String Value)

 

func Contains(_ Value: String) -> Boolean

 

Boolean Contains(String Value)

 

Function Contains(Value As String) As Boolean

Parameters:

  • Value:

ContainsAny (array of Char): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains anf of the AnyOf characters.

 

method ContainsAny(AnyOf: array of Char): Boolean

 

Boolean ContainsAny(Char[] AnyOf)

 

func ContainsAny(_ AnyOf: Char...) -> Boolean

 

Boolean ContainsAny(Char[] AnyOf)

 

Function ContainsAny(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsAny (array of Char, Integer): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains anf of the AnyOf characters, starts from aStartIndex.

 

method ContainsAny(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsAny(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsAny(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Boolean ContainsAny(Char[] AnyOf, Integer aStartIndex)

 

Function ContainsAny(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

ContainsAny (array of Char): Boolean .NET, .NET Standard 2.0

 

method ContainsAny(AnyOf: array of Char): Boolean

 

Boolean ContainsAny(Char[] AnyOf)

 

func ContainsAny(_ AnyOf: Char...) -> Boolean

 

Function ContainsAny(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsAny (array of Char, Int32): Boolean .NET, .NET Standard 2.0

 

method ContainsAny(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsAny(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsAny(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Function ContainsAny(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

ContainsAnyNonASCII Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains an character > 127.

 

method ContainsAnyNonASCII: Boolean

 

Boolean ContainsAnyNonASCII()

 

func ContainsAnyNonASCII() -> Boolean

 

Boolean ContainsAnyNonASCII()

 

Function ContainsAnyNonASCII() As Boolean

ContainsAnyNonASCII (Integer): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains an character > 127, starts from aStartIndex.

 

method ContainsAnyNonASCII(aStartIndex: Int32): Boolean

 

Boolean ContainsAnyNonASCII(Int32 aStartIndex)

 

func ContainsAnyNonASCII(_ aStartIndex: Int32) -> Boolean

 

Boolean ContainsAnyNonASCII(Integer aStartIndex)

 

Function ContainsAnyNonASCII(aStartIndex As Int32) As Boolean

Parameters:

  • aStartIndex:

ContainsAnyNonASCII .NET, .NET Standard 2.0

 

method ContainsAnyNonASCII: Boolean

 

Boolean ContainsAnyNonASCII()

 

func ContainsAnyNonASCII() -> Boolean

 

Function ContainsAnyNonASCII() As Boolean

ContainsAnyNonASCII (Int32): Boolean .NET, .NET Standard 2.0

 

method ContainsAnyNonASCII(aStartIndex: Int32): Boolean

 

Boolean ContainsAnyNonASCII(Int32 aStartIndex)

 

func ContainsAnyNonASCII(_ aStartIndex: Int32) -> Boolean

 

Function ContainsAnyNonASCII(aStartIndex As Int32) As Boolean

Parameters:

  • aStartIndex:

ContainsOnly (array of Char): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains only the AnyOf characters.

 

method ContainsOnly(AnyOf: array of Char): Boolean

 

Boolean ContainsOnly(Char[] AnyOf)

 

func ContainsOnly(_ AnyOf: Char...) -> Boolean

 

Boolean ContainsOnly(Char[] AnyOf)

 

Function ContainsOnly(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsOnly (array of Char, Integer): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains only the AnyOf characters, starting at aStartIndex.

 

method ContainsOnly(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsOnly(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsOnly(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Boolean ContainsOnly(Char[] AnyOf, Integer aStartIndex)

 

Function ContainsOnly(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

ContainsOnly (array of Char): Boolean .NET, .NET Standard 2.0

 

method ContainsOnly(AnyOf: array of Char): Boolean

 

Boolean ContainsOnly(Char[] AnyOf)

 

func ContainsOnly(_ AnyOf: Char...) -> Boolean

 

Function ContainsOnly(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsOnly (array of Char, Int32): Boolean .NET, .NET Standard 2.0

 

method ContainsOnly(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsOnly(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsOnly(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Function ContainsOnly(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

Empty

Empty string: ''

 

class property Empty: String read;

 

class String Empty { get; }

 

static var Empty: String { get{} }

 

class String Empty { __get; }

 

Shared ReadOnly Property Empty() As String

EndsWith (Char): Boolean

Returns true if a string ends with Value.

 

method EndsWith(Value: Char): Boolean

 

Boolean EndsWith(Char Value)

 

func EndsWith(_ Value: Char) -> Boolean

 

Boolean EndsWith(Char Value)

 

Function EndsWith(Value As Char) As Boolean

Parameters:

  • Value:

EndsWith (String): Boolean

Returns true if a string ends with Value.

 

method EndsWith(Value: String): Boolean

 

Boolean EndsWith(String Value)

 

func EndsWith(_ Value: String) -> Boolean

 

Boolean EndsWith(String Value)

 

Function EndsWith(Value As String) As Boolean

Parameters:

  • Value:

EndsWith (String, Boolean): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if a string ends with Value.

 

method EndsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean EndsWith(String Value, Boolean IgnoreCase)

 

func EndsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Boolean EndsWith(String Value, Boolean IgnoreCase)

 

Function EndsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

EndsWith (String, Boolean): Boolean .NET, .NET Standard 2.0

 

method EndsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean EndsWith(String Value, Boolean IgnoreCase)

 

func EndsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Function EndsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

Equals (String): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if these strings are exactly equivalent.

 

method Equals(Value: String): Boolean

 

Boolean Equals(String Value)

 

func Equals(_ Value: String) -> Boolean

 

Boolean Equals(String Value)

 

Function Equals(Value As String) As Boolean

Parameters:

  • Value:

Equals (String): Boolean .NET, .NET Standard 2.0

 

method Equals(Value: String): Boolean

 

Boolean Equals(String Value)

 

func Equals(_ Value: String) -> Boolean

 

Function Equals(Value As String) As Boolean

Parameters:

  • Value:

Equals (String, String): Boolean

Returns true if these strings are exactly equivalent.

 

class method Equals(ValueA: String; ValueB: String): Boolean

 

static Boolean Equals(String ValueA, String ValueB)

 

static func Equals(_ ValueA: String, _ ValueB: String) -> Boolean

 

static Boolean Equals(String ValueA, String ValueB)

 

Shared Function Equals(ValueA As String, ValueB As String) As Boolean

Parameters:

  • ValueA:
  • ValueB:

EqualsIgnoringCase (String): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if these strings are equivalent, ignoring their case.

 

method EqualsIgnoringCase(Value: String): Boolean

 

Boolean EqualsIgnoringCase(String Value)

 

func EqualsIgnoringCase(_ Value: String) -> Boolean

 

Boolean EqualsIgnoringCase(String Value)

 

Function EqualsIgnoringCase(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCase (String): Boolean .NET, .NET Standard 2.0

 

method EqualsIgnoringCase(Value: String): Boolean

 

Boolean EqualsIgnoringCase(String Value)

 

func EqualsIgnoringCase(_ Value: String) -> Boolean

 

Function EqualsIgnoringCase(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCase (String, String): Boolean

Returns true if these strings are equivalent, ignoring their case.

 

class method EqualsIgnoringCase(ValueA: String; ValueB: String): Boolean

 

static Boolean EqualsIgnoringCase(String ValueA, String ValueB)

 

static func EqualsIgnoringCase(_ ValueA: String, _ ValueB: String) -> Boolean

 

static Boolean EqualsIgnoringCase(String ValueA, String ValueB)

 

Shared Function EqualsIgnoringCase(ValueA As String, ValueB As String) As Boolean

Parameters:

  • ValueA:
  • ValueB:

EqualsIgnoringCaseInvariant (String): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if these strings are equivalent, ignoring their case in the invariant culture.

 

method EqualsIgnoringCaseInvariant(Value: String): Boolean

 

Boolean EqualsIgnoringCaseInvariant(String Value)

 

func EqualsIgnoringCaseInvariant(_ Value: String) -> Boolean

 

Boolean EqualsIgnoringCaseInvariant(String Value)

 

Function EqualsIgnoringCaseInvariant(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCaseInvariant (String): Boolean .NET, .NET Standard 2.0

 

method EqualsIgnoringCaseInvariant(Value: String): Boolean

 

Boolean EqualsIgnoringCaseInvariant(String Value)

 

func EqualsIgnoringCaseInvariant(_ Value: String) -> Boolean

 

Function EqualsIgnoringCaseInvariant(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCaseInvariant (String, String): Boolean

Returns true if these strings are equivalent, ignoring their case in the invariant culture.

 

class method EqualsIgnoringCaseInvariant(ValueA: String; ValueB: String): Boolean

 

static Boolean EqualsIgnoringCaseInvariant(String ValueA, String ValueB)

 

static func EqualsIgnoringCaseInvariant(_ ValueA: String, _ ValueB: String) -> Boolean

 

static Boolean EqualsIgnoringCaseInvariant(String ValueA, String ValueB)

 

Shared Function EqualsIgnoringCaseInvariant(ValueA As String, ValueB As String) As Boolean

Parameters:

  • ValueA:
  • ValueB:

FileExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns true if this string points to a file that exists.

 

property FileExists: Boolean read;

 

Boolean FileExists { get; }

 

var FileExists: Boolean { get{} }

 

Boolean FileExists { __get; }

 

ReadOnly Property FileExists() As Boolean

FileOrFolderExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns true if this string points to a file or filder that exists.

 

property FileOrFolderExists: Boolean read;

 

Boolean FileOrFolderExists { get; }

 

var FileOrFolderExists: Boolean { get{} }

 

Boolean FileOrFolderExists { __get; }

 

ReadOnly Property FileOrFolderExists() As Boolean

FirstLine

Returns this string up to the first line ending, or everything.

 

property FirstLine: String read;

 

String FirstLine { get; }

 

var FirstLine: String { get{} }

 

String FirstLine { __get; }

 

ReadOnly Property FirstLine() As String

FolderExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns true if this string points to a folder that exists.

 

property FolderExists: Boolean read;

 

Boolean FolderExists { get; }

 

var FolderExists: Boolean { get{} }

 

Boolean FolderExists { __get; }

 

ReadOnly Property FolderExists() As Boolean

Format

Formats the string, uses .NET formatting style for aFormat.

 

class method Format(aFormat: String; params aParams: array of Object): not nullable String

 

static String! Format(String aFormat, params Object[] aParams)

 

static func Format(_ aFormat: String, _ aParams: Object...) -> String

 

static String Format(String aFormat, Object[]... aParams)

 

Shared Function Format(aFormat As String, ParamArray aParams As Object()) As String

Parameters:

  • aFormat:
  • aParams:

FuzzyMatches (not nullable String): Boolean Cooper, Island, Toffee, ToffeeV2

Does a "fuzzy" match. Given the current string, ensures each character is in aHaystack in sequential order.

 

method FuzzyMatches(aHaystack: not nullable String): Boolean

 

Boolean FuzzyMatches(String! aHaystack)

 

func FuzzyMatches(_ aHaystack: String) -> Boolean

 

Boolean FuzzyMatches(String aHaystack)

 

Function FuzzyMatches(aHaystack As String) As Boolean

Parameters:

  • aHaystack:

FuzzyMatches (not nullable String): Boolean .NET, .NET Standard 2.0

 

method FuzzyMatches(aHaystack: not nullable String): Boolean

 

Boolean FuzzyMatches(String! aHaystack)

 

func FuzzyMatches(_ aHaystack: String) -> Boolean

 

Function FuzzyMatches(aHaystack As String) As Boolean

Parameters:

  • aHaystack:

GetSequence  virtual Toffee

 

func GetSequence() -> INSFastEnumeration<__ElementsBoxedChar>

GetSequence Island, ToffeeV2

 

method GetSequence: IEnumerable<Char>

 

IEnumerable<Char> GetSequence()

 

func GetSequence() -> IEnumerable<Char>

 

Function GetSequence() As IEnumerable<Char>

GetSequence Cooper

Returns an iterator that yields each character in this string in order.

 

method GetSequence: Iterable<Character>

 

Iterable<Character> GetSequence()

 

func GetSequence() -> Iterable<Character>

 

Iterable<Character> GetSequence()

 

Function GetSequence() As Iterable<Character>

GetSequence .NET, .NET Standard 2.0

 

method GetSequence: IEnumerable<Char>

 

IEnumerable<Char> GetSequence()

 

func GetSequence() -> IEnumerable<Char>

 

Function GetSequence() As IEnumerable<Char>

IndexAfterJoinedUnicodeCharacterCoveringIndex (Integer): Integer Cooper, Island, Toffee, ToffeeV2

 

method IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex: Int32): Int32

 

Int32 IndexAfterJoinedUnicodeCharacterCoveringIndex(Int32 aIndex)

 

func IndexAfterJoinedUnicodeCharacterCoveringIndex(_ aIndex: Int32) -> Int32

 

Integer IndexAfterJoinedUnicodeCharacterCoveringIndex(Integer aIndex)

 

Function IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

IndexAfterJoinedUnicodeCharacterCoveringIndex (Int32): Int32 .NET, .NET Standard 2.0

 

method IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex: Int32): Int32

 

Int32 IndexAfterJoinedUnicodeCharacterCoveringIndex(Int32 aIndex)

 

func IndexAfterJoinedUnicodeCharacterCoveringIndex(_ aIndex: Int32) -> Int32

 

Function IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

IndexOf (Char): Int32

Returns the index of Value in this string, returning -1 if it's not there.

 

method IndexOf(Value: Char): Int32

 

Int32 IndexOf(Char Value)

 

func IndexOf(_ Value: Char) -> Int32

 

Integer IndexOf(Char Value)

 

Function IndexOf(Value As Char) As Int32

Parameters:

  • Value:

IndexOf (Char, Int32): Int32

Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.

 

method IndexOf(Value: Char; StartIndex: Int32): Int32

 

Int32 IndexOf(Char Value, Int32 StartIndex)

 

func IndexOf(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Integer IndexOf(Char Value, Integer StartIndex)

 

Function IndexOf(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

IndexOf (String): Int32

Returns the index of Value in this string, returning -1 if it's not there.

 

method IndexOf(Value: String): Int32

 

Int32 IndexOf(String Value)

 

func IndexOf(_ Value: String) -> Int32

 

Integer IndexOf(String Value)

 

Function IndexOf(Value As String) As Int32

Parameters:

  • Value:

IndexOf (String, Int32): Int32

Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.

 

method IndexOf(Value: String; StartIndex: Int32): Int32

 

Int32 IndexOf(String Value, Int32 StartIndex)

 

func IndexOf(_ Value: String, _ StartIndex: Int32) -> Int32

 

Integer IndexOf(String Value, Integer StartIndex)

 

Function IndexOf(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

IndexOfAny (array of Char): Int32

Returns the index of any of these characters, or -1 if none can be found.

 

method IndexOfAny(AnyOf: array of Char): Int32

 

Int32 IndexOfAny(Char[] AnyOf)

 

func IndexOfAny(_ AnyOf: Char...) -> Int32

 

Integer IndexOfAny(Char[] AnyOf)

 

Function IndexOfAny(AnyOf As Char()) As Int32

Parameters:

  • AnyOf:

IndexOfAny (array of Char, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the index of any of these characters, starting at StartIndex, or -1 if none can be found.

 

method IndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 IndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func IndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Integer IndexOfAny(Char[] AnyOf, Integer StartIndex)

 

Function IndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

IndexOfAny (array of Char, Int32): Int32 .NET, .NET Standard 2.0

 

method IndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 IndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func IndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Function IndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

IndexOfIgnoringCase (Char): Int32

Returns the index of Value in this string, case insensitive, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: Char): Int32

 

Int32 IndexOfIgnoringCase(Char Value)

 

func IndexOfIgnoringCase(_ Value: Char) -> Int32

 

Integer IndexOfIgnoringCase(Char Value)

 

Function IndexOfIgnoringCase(Value As Char) As Int32

Parameters:

  • Value:

IndexOfIgnoringCase (Char, Int32): Int32

Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: Char; StartIndex: Int32): Int32

 

Int32 IndexOfIgnoringCase(Char Value, Int32 StartIndex)

 

func IndexOfIgnoringCase(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Integer IndexOfIgnoringCase(Char Value, Integer StartIndex)

 

Function IndexOfIgnoringCase(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

IndexOfIgnoringCase (String): Int32

Returns the index of Value in this string, case insensitive, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: String): Int32

 

Int32 IndexOfIgnoringCase(String Value)

 

func IndexOfIgnoringCase(_ Value: String) -> Int32

 

Integer IndexOfIgnoringCase(String Value)

 

Function IndexOfIgnoringCase(Value As String) As Int32

Parameters:

  • Value:

IndexOfIgnoringCase (String, Int32): Int32

Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: String; StartIndex: Int32): Int32

 

Int32 IndexOfIgnoringCase(String Value, Int32 StartIndex)

 

func IndexOfIgnoringCase(_ Value: String, _ StartIndex: Int32) -> Int32

 

Integer IndexOfIgnoringCase(String Value, Integer StartIndex)

 

Function IndexOfIgnoringCase(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

initialize ToffeeV2

 

static func initialize()

Insert

Insert a string into this string, returning the new string.

 

method Insert(aIndex: Int32; aNewValue: String): not nullable String

 

String! Insert(Int32 aIndex, String aNewValue)

 

func Insert(_ aIndex: Int32, _ aNewValue: String) -> String

 

String Insert(Integer aIndex, String aNewValue)

 

Function Insert(aIndex As Int32, aNewValue As String) As String

Parameters:

  • aIndex:
  • aNewValue:

IsAbsolutePath

Returns true if this string points to an absolute path.

 

property IsAbsolutePath: Boolean read;

 

Boolean IsAbsolutePath { get; }

 

var IsAbsolutePath: Boolean { get{} }

 

Boolean IsAbsolutePath { __get; }

 

ReadOnly Property IsAbsolutePath() As Boolean

IsAbsoluteUnixPath

Returns true if this string points to an absolute unix path.

 

property IsAbsoluteUnixPath: Boolean read;

 

Boolean IsAbsoluteUnixPath { get; }

 

var IsAbsoluteUnixPath: Boolean { get{} }

 

Boolean IsAbsoluteUnixPath { __get; }

 

ReadOnly Property IsAbsoluteUnixPath() As Boolean

IsAbsoluteWindowsPath

Returns true if this string points to an absolute windows path.

 

property IsAbsoluteWindowsPath: Boolean read;

 

Boolean IsAbsoluteWindowsPath { get; }

 

var IsAbsoluteWindowsPath: Boolean { get{} }

 

Boolean IsAbsoluteWindowsPath { __get; }

 

ReadOnly Property IsAbsoluteWindowsPath() As Boolean

IsIndexInsideOfAJoinedUnicodeCharacter (Integer): Boolean Cooper, Island, Toffee, ToffeeV2

 

method IsIndexInsideOfAJoinedUnicodeCharacter(aIndex: Int32): Boolean

 

Boolean IsIndexInsideOfAJoinedUnicodeCharacter(Int32 aIndex)

 

func IsIndexInsideOfAJoinedUnicodeCharacter(_ aIndex: Int32) -> Boolean

 

Boolean IsIndexInsideOfAJoinedUnicodeCharacter(Integer aIndex)

 

Function IsIndexInsideOfAJoinedUnicodeCharacter(aIndex As Int32) As Boolean

Parameters:

  • aIndex:

IsIndexInsideOfAJoinedUnicodeCharacter (Int32): Boolean .NET, .NET Standard 2.0

 

method IsIndexInsideOfAJoinedUnicodeCharacter(aIndex: Int32): Boolean

 

Boolean IsIndexInsideOfAJoinedUnicodeCharacter(Int32 aIndex)

 

func IsIndexInsideOfAJoinedUnicodeCharacter(_ aIndex: Int32) -> Boolean

 

Function IsIndexInsideOfAJoinedUnicodeCharacter(aIndex As Int32) As Boolean

Parameters:

  • aIndex:

IsIndexInsideOfASurrogatePair

 

method IsIndexInsideOfASurrogatePair(aIndex: Int32): Boolean

 

Boolean IsIndexInsideOfASurrogatePair(Int32 aIndex)

 

func IsIndexInsideOfASurrogatePair(_ aIndex: Int32) -> Boolean

 

Boolean IsIndexInsideOfASurrogatePair(Integer aIndex)

 

Function IsIndexInsideOfASurrogatePair(aIndex As Int32) As Boolean

Parameters:

  • aIndex:

IsNullOrEmpty

Returns true if this string is null or empty.

 

class method IsNullOrEmpty(Value: String): Boolean

 

static Boolean IsNullOrEmpty(String Value)

 

static func IsNullOrEmpty(_ Value: String) -> Boolean

 

static Boolean IsNullOrEmpty(String Value)

 

Shared Function IsNullOrEmpty(Value As String) As Boolean

Parameters:

  • Value:

IsNullOrWhiteSpace

Returns true if this string is null, empty or jsut has whitespace.

 

class method IsNullOrWhiteSpace(Value: String): Boolean

 

static Boolean IsNullOrWhiteSpace(String Value)

 

static func IsNullOrWhiteSpace(_ Value: String) -> Boolean

 

static Boolean IsNullOrWhiteSpace(String Value)

 

Shared Function IsNullOrWhiteSpace(Value As String) As Boolean

Parameters:

  • Value:

IsWindowsPath

Returns true if this string is a valid windows path.

 

property IsWindowsPath: Boolean read;

 

Boolean IsWindowsPath { get; }

 

var IsWindowsPath: Boolean { get{} }

 

Boolean IsWindowsPath { __get; }

 

ReadOnly Property IsWindowsPath() As Boolean

Join (nullable String, not nullable array of String): not nullable String

Join a string together with aSeparator as separator.

 

class method Join(aSeparator: nullable String; Values: not nullable array of String): not nullable String

 

static String! Join(String? aSeparator, String[]! Values)

 

// Toffee
static func Join(_ aSeparator: String, _ Values: String...) -> String
// ToffeeV2
static func Join(_ aSeparator: String?, _ Values: String...) -> String

 

static String Join(String aSeparator, String[] Values)

 

Shared Function Join(aSeparator As String?, Values As String()) As String

Parameters:

  • aSeparator:
  • Values:

Join (nullable String, not nullable ImmutableList<String>): not nullable String

Join a string together with aSeparator as separator.

 

class method Join(aSeparator: nullable String; Values: not nullable ImmutableList<String>): not nullable String

 

static String! Join(String? aSeparator, ImmutableList<String>! Values)

 

// Toffee
static func Join(_ aSeparator: String, _ Values: ImmutableList<String>) -> String
// ToffeeV2
static func Join(_ aSeparator: String?, _ Values: ImmutableList<String>) -> String

 

static String Join(String aSeparator, ImmutableList<String> Values)

 

Shared Function Join(aSeparator As String?, Values As ImmutableList<String>) As String

Parameters:

  • aSeparator:
  • Values:

LastIndexOf (Char): Int32

Returns the last index of Value in this string, returning -1 if it's not there.

 

method LastIndexOf(Value: Char): Int32

 

Int32 LastIndexOf(Char Value)

 

func LastIndexOf(_ Value: Char) -> Int32

 

Integer LastIndexOf(Char Value)

 

Function LastIndexOf(Value As Char) As Int32

Parameters:

  • Value:

LastIndexOf (Char, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.

 

method LastIndexOf(Value: Char; StartIndex: Int32): Int32

 

Int32 LastIndexOf(Char Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Integer LastIndexOf(Char Value, Integer StartIndex)

 

Function LastIndexOf(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOf (String): Int32

Returns the last index of Value in this string, returning -1 if it's not there.

 

method LastIndexOf(Value: String): Int32

 

Int32 LastIndexOf(String Value)

 

func LastIndexOf(_ Value: String) -> Int32

 

Integer LastIndexOf(String Value)

 

Function LastIndexOf(Value As String) As Int32

Parameters:

  • Value:

LastIndexOf (String, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.

 

method LastIndexOf(Value: String; StartIndex: Int32): Int32

 

Int32 LastIndexOf(String Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: String, _ StartIndex: Int32) -> Int32

 

Integer LastIndexOf(String Value, Integer StartIndex)

 

Function LastIndexOf(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOf (Char, Int32): Int32 .NET, .NET Standard 2.0

 

method LastIndexOf(Value: Char; StartIndex: Int32): Int32

 

Int32 LastIndexOf(Char Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Function LastIndexOf(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOf (String, Int32): Int32 .NET, .NET Standard 2.0

 

method LastIndexOf(Value: String; StartIndex: Int32): Int32

 

Int32 LastIndexOf(String Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: String, _ StartIndex: Int32) -> Int32

 

Function LastIndexOf(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOfAny (array of Char): Int32

Returns the last index of any of these characters, or -1 if none can be found.

 

method LastIndexOfAny(AnyOf: array of Char): Int32

 

Int32 LastIndexOfAny(Char[] AnyOf)

 

func LastIndexOfAny(_ AnyOf: Char...) -> Int32

 

Integer LastIndexOfAny(Char[] AnyOf)

 

Function LastIndexOfAny(AnyOf As Char()) As Int32

Parameters:

  • AnyOf:

LastIndexOfAny (array of Char, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the last index of any of these characters, starting at StartIndex, or -1 if none can be found.

 

method LastIndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 LastIndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func LastIndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Integer LastIndexOfAny(Char[] AnyOf, Integer StartIndex)

 

Function LastIndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

LastIndexOfAny (array of Char, Int32): Int32 .NET, .NET Standard 2.0

 

method LastIndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 LastIndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func LastIndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Function LastIndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

LastPathComponent

Returns the last component of this string, treating it as a path. Splits on the system directory seperator.

 

property LastPathComponent: String read;

 

String LastPathComponent { get; }

 

var LastPathComponent: String { get{} }

 

String LastPathComponent { __get; }

 

ReadOnly Property LastPathComponent() As String

LastPathComponentWithoutExtension

Returns the last component of this string, treating it as a path. Splits on the system directory seperator, ignoring the exception.

 

property LastPathComponentWithoutExtension: String read;

 

String LastPathComponentWithoutExtension { get; }

 

var LastPathComponentWithoutExtension: String { get{} }

 

String LastPathComponentWithoutExtension { __get; }

 

ReadOnly Property LastPathComponentWithoutExtension() As String

LastUnixPathComponent

Returns the last component of this string, treating it as a path. Splits on the unix directory seperator.

 

property LastUnixPathComponent: String read;

 

String LastUnixPathComponent { get; }

 

var LastUnixPathComponent: String { get{} }

 

String LastUnixPathComponent { __get; }

 

ReadOnly Property LastUnixPathComponent() As String

LastUnixPathComponentWithoutExtension

Returns the last component of this string, treating it as a path. Splits on the unix directory seperator, ignoring the extension.

 

property LastUnixPathComponentWithoutExtension: String read;

 

String LastUnixPathComponentWithoutExtension { get; }

 

var LastUnixPathComponentWithoutExtension: String { get{} }

 

String LastUnixPathComponentWithoutExtension { __get; }

 

ReadOnly Property LastUnixPathComponentWithoutExtension() As String

LastWindowsPathComponent

Returns the last component of this string, treating it as a path. Splits on the windows directory seperator.

 

property LastWindowsPathComponent: String read;

 

String LastWindowsPathComponent { get; }

 

var LastWindowsPathComponent: String { get{} }

 

String LastWindowsPathComponent { __get; }

 

ReadOnly Property LastWindowsPathComponent() As String

LastWindowsPathComponentWithoutExtension

Returns the last component of this string, treating it as a path. Splits on the windows directory seperator, ignoring the exxception.

 

property LastWindowsPathComponentWithoutExtension: String read;

 

String LastWindowsPathComponentWithoutExtension { get; }

 

var LastWindowsPathComponentWithoutExtension: String { get{} }

 

String LastWindowsPathComponentWithoutExtension { __get; }

 

ReadOnly Property LastWindowsPathComponentWithoutExtension() As String

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Integer Length { __get; }

 

ReadOnly Property Length() As Int32

LevenshteinDistanceTo (not nullable String): Integer Cooper, Island, Toffee, ToffeeV2

Returns the levenshtein distance to another string, essentially returns the number of differences between these strings, returning the nr of inserts, deletions and replacements.

 

method LevenshteinDistanceTo(aOther: not nullable String): Int32

 

Int32 LevenshteinDistanceTo(String! aOther)

 

func LevenshteinDistanceTo(_ aOther: String) -> Int32

 

Integer LevenshteinDistanceTo(String aOther)

 

Function LevenshteinDistanceTo(aOther As String) As Int32

Parameters:

  • aOther:

LevenshteinDistanceTo (not nullable String): Int32 .NET, .NET Standard 2.0

 

method LevenshteinDistanceTo(aOther: not nullable String): Int32

 

Int32 LevenshteinDistanceTo(String! aOther)

 

func LevenshteinDistanceTo(_ aOther: String) -> Int32

 

Function LevenshteinDistanceTo(aOther As String) As Int32

Parameters:

  • aOther:

NetworkServerName

Returns the network server name from a path string.

 

property NetworkServerName: nullable String read;

 

String? NetworkServerName { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var NetworkServerName: String? { get{} }
// Toffee
var NetworkServerName: String { get{} }

 

String NetworkServerName { __get; }

 

ReadOnly Property NetworkServerName() As String?

PadEnd (Int32): not nullable String

Pads the string so it's at least total width, with whitespaces.

 

method PadEnd(TotalWidth: Int32): not nullable String

 

String! PadEnd(Int32 TotalWidth)

 

func PadEnd(_ TotalWidth: Int32) -> String

 

String PadEnd(Integer TotalWidth)

 

Function PadEnd(TotalWidth As Int32) As String

Parameters:

  • TotalWidth:

PadEnd (Integer, Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Pads the string so it's at least total width, with padding characters.

 

method PadEnd(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadEnd(Int32 TotalWidth, Char PaddingChar)

 

func PadEnd(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

String PadEnd(Integer TotalWidth, Char PaddingChar)

 

Function PadEnd(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

PadEnd (Int32, Char): not nullable String .NET, .NET Standard 2.0

 

method PadEnd(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadEnd(Int32 TotalWidth, Char PaddingChar)

 

func PadEnd(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

Function PadEnd(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

PadStart (Int32): not nullable String

Pads the string so it's at least total width, with whitespaces.

 

method PadStart(TotalWidth: Int32): not nullable String

 

String! PadStart(Int32 TotalWidth)

 

func PadStart(_ TotalWidth: Int32) -> String

 

String PadStart(Integer TotalWidth)

 

Function PadStart(TotalWidth As Int32) As String

Parameters:

  • TotalWidth:

PadStart (Integer, Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Pads the string so it's at least total width, with padding characters.

 

method PadStart(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadStart(Int32 TotalWidth, Char PaddingChar)

 

func PadStart(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

String PadStart(Integer TotalWidth, Char PaddingChar)

 

Function PadStart(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

PadStart (Int32, Char): not nullable String .NET, .NET Standard 2.0

 

method PadStart(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadStart(Int32 TotalWidth, Char PaddingChar)

 

func PadStart(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

Function PadStart(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

ParentDirectory

 

property ParentDirectory: nullable String read;

 

String? ParentDirectory { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var ParentDirectory: String? { get{} }
// Toffee
var ParentDirectory: String { get{} }

 

String ParentDirectory { __get; }

 

ReadOnly Property ParentDirectory() As String?

PathExtension

Returns the extension of this string, treating it as filename.

 

property PathExtension: String read;

 

String PathExtension { get; }

 

var PathExtension: String { get{} }

 

String PathExtension { __get; }

 

ReadOnly Property PathExtension() As String

PathWithoutExtension

Returns this string without extension, treating it as filename.

 

property PathWithoutExtension: String read;

 

String PathWithoutExtension { get; }

 

var PathWithoutExtension: String { get{} }

 

String PathWithoutExtension { __get; }

 

ReadOnly Property PathWithoutExtension() As String

QuotedIfNeeded

Adds quotes if this string contains whitespace.

 

property QuotedIfNeeded: String read;

 

String QuotedIfNeeded { get; }

 

var QuotedIfNeeded: String { get{} }

 

String QuotedIfNeeded { __get; }

 

ReadOnly Property QuotedIfNeeded() As String

Remove (Int32, Int32): not nullable String

Removes a range from this string, returning the new stirng.

 

method Remove(aStartIndex: Int32; aLength: Int32): not nullable String

 

String! Remove(Int32 aStartIndex, Int32 aLength)

 

func Remove(_ aStartIndex: Int32, _ aLength: Int32) -> String

 

String Remove(Integer aStartIndex, Integer aLength)

 

Function Remove(aStartIndex As Int32, aLength As Int32) As String

Parameters:

  • aStartIndex:
  • aLength:

Remove (String): not nullable String

Removes a range from this string, returning the new stirng.

 

method Remove(OldValue: String): not nullable String

 

String! Remove(String OldValue)

 

func Remove(_ OldValue: String) -> String

 

String Remove(String OldValue)

 

Function Remove(OldValue As String) As String

Parameters:

  • OldValue:

Replace (Int32, Int32, String): not nullable String

Replace a range in this string with new substring.

 

method Replace(aStartIndex: Int32; aLength: Int32; aNewValue: String): not nullable String

 

String! Replace(Int32 aStartIndex, Int32 aLength, String aNewValue)

 

func Replace(_ aStartIndex: Int32, _ aLength: Int32, _ aNewValue: String) -> String

 

String Replace(Integer aStartIndex, Integer aLength, String aNewValue)

 

Function Replace(aStartIndex As Int32, aLength As Int32, aNewValue As String) As String

Parameters:

  • aStartIndex:
  • aLength:
  • aNewValue:

Replace (String, String): not nullable String

Replace all occurances of a string with another value.

 

method Replace(OldValue: String; NewValue: String): not nullable String

 

String! Replace(String OldValue, String NewValue)

 

func Replace(_ OldValue: String, _ NewValue: String) -> String

 

String Replace(String OldValue, String NewValue)

 

Function Replace(OldValue As String, NewValue As String) As String

Parameters:

  • OldValue:
  • NewValue:

Split (not nullable String, Boolean): not nullable ImmutableList<String> Cooper, Island, Toffee, ToffeeV2

Split this string on aSeparator.

 

method Split(aSeparator: not nullable String; aRemoveEmptyEntries: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! Split(String! aSeparator, Boolean aRemoveEmptyEntries)

 

func Split(_ aSeparator: String, _ aRemoveEmptyEntries: Boolean) -> ImmutableList<String>

 

ImmutableList<String> Split(String aSeparator, Boolean aRemoveEmptyEntries)

 

Function Split(aSeparator As String, aRemoveEmptyEntries As Boolean) As ImmutableList<String>

Parameters:

  • aSeparator:
  • aRemoveEmptyEntries:

Split (not nullable String, Boolean): not nullable ImmutableList<String> .NET, .NET Standard 2.0

 

method Split(aSeparator: not nullable String; aRemoveEmptyEntries: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! Split(String! aSeparator, Boolean aRemoveEmptyEntries)

 

func Split(_ aSeparator: String, _ aRemoveEmptyEntries: Boolean) -> ImmutableList<String>

 

Function Split(aSeparator As String, aRemoveEmptyEntries As Boolean) As ImmutableList<String>

Parameters:

  • aSeparator:
  • aRemoveEmptyEntries:

SplitAtFirstOccurrenceOf (not nullable String): not nullable ImmutableList<String> Cooper, Island, Toffee, ToffeeV2

Split this string but at most once at the first occurance of aSeperator.

 

method SplitAtFirstOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtFirstOccurrenceOf(String! aSeparator)

 

func SplitAtFirstOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

ImmutableList<String> SplitAtFirstOccurrenceOf(String aSeparator)

 

Function SplitAtFirstOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

SplitAtFirstOccurrenceOf (not nullable String): not nullable ImmutableList<String> .NET, .NET Standard 2.0

 

method SplitAtFirstOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtFirstOccurrenceOf(String! aSeparator)

 

func SplitAtFirstOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

Function SplitAtFirstOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

SplitAtLastOccurrenceOf (not nullable String): not nullable ImmutableList<String> Cooper, Island, Toffee, ToffeeV2

Split this string but at most once at the last occurance of aSeperator.

 

method SplitAtLastOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtLastOccurrenceOf(String! aSeparator)

 

func SplitAtLastOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

ImmutableList<String> SplitAtLastOccurrenceOf(String aSeparator)

 

Function SplitAtLastOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

SplitAtLastOccurrenceOf (not nullable String): not nullable ImmutableList<String> .NET, .NET Standard 2.0

 

method SplitAtLastOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtLastOccurrenceOf(String! aSeparator)

 

func SplitAtLastOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

Function SplitAtLastOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

StartIndexOfJoinedUnicodeCharacterAtIndex (Integer): Integer Cooper, Island, Toffee, ToffeeV2

 

method StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex: Int32): Int32

 

Int32 StartIndexOfJoinedUnicodeCharacterAtIndex(Int32 aIndex)

 

func StartIndexOfJoinedUnicodeCharacterAtIndex(_ aIndex: Int32) -> Int32

 

Integer StartIndexOfJoinedUnicodeCharacterAtIndex(Integer aIndex)

 

Function StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

StartIndexOfJoinedUnicodeCharacterAtIndex (Int32): Int32 .NET, .NET Standard 2.0

 

method StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex: Int32): Int32

 

Int32 StartIndexOfJoinedUnicodeCharacterAtIndex(Int32 aIndex)

 

func StartIndexOfJoinedUnicodeCharacterAtIndex(_ aIndex: Int32) -> Int32

 

Function StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

StartsWith (Char): Boolean

True if this string starts with Value

 

method StartsWith(Value: Char): Boolean

 

Boolean StartsWith(Char Value)

 

func StartsWith(_ Value: Char) -> Boolean

 

Boolean StartsWith(Char Value)

 

Function StartsWith(Value As Char) As Boolean

Parameters:

  • Value:

StartsWith (String): Boolean

True if this string starts with Value

 

method StartsWith(Value: String): Boolean

 

Boolean StartsWith(String Value)

 

func StartsWith(_ Value: String) -> Boolean

 

Boolean StartsWith(String Value)

 

Function StartsWith(Value As String) As Boolean

Parameters:

  • Value:

StartsWith (String, Boolean): Boolean Cooper, Island, Toffee, ToffeeV2

True if this string starts with Value

 

method StartsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean StartsWith(String Value, Boolean IgnoreCase)

 

func StartsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Boolean StartsWith(String Value, Boolean IgnoreCase)

 

Function StartsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

StartsWith (String, Boolean): Boolean .NET, .NET Standard 2.0

 

method StartsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean StartsWith(String Value, Boolean IgnoreCase)

 

func StartsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Function StartsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

Substring (Int32): not nullable String

Returns a substring of this string, starting at StartIndex.

 

method Substring(StartIndex: Int32): not nullable String

 

String! Substring(Int32 StartIndex)

 

func Substring(_ StartIndex: Int32) -> String

 

String Substring(Integer StartIndex)

 

Function Substring(StartIndex As Int32) As String

Parameters:

  • StartIndex:

Substring (Int32, Int32): not nullable String

Returns a substring from StartIndex for aLength of this string.

 

method Substring(StartIndex: Int32; aLength: Int32): not nullable String

 

String! Substring(Int32 StartIndex, Int32 aLength)

 

func Substring(_ StartIndex: Int32, _ aLength: Int32) -> String

 

String Substring(Integer StartIndex, Integer aLength)

 

Function Substring(StartIndex As Int32, aLength As Int32) As String

Parameters:

  • StartIndex:
  • aLength:

SubstringFromFirstOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, starting at the first occurance of aSeperator.

 

method SubstringFromFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromFirstOccurrenceOf(String! aSeparator)

 

func SubstringFromFirstOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringFromFirstOccurrenceOf(String aSeparator)

 

Function SubstringFromFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringFromFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringFromFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromFirstOccurrenceOf(String! aSeparator)

 

func SubstringFromFirstOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringFromFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringFromLastOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, starting at the last occurance of aSeperator.

 

method SubstringFromLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromLastOccurrenceOf(String! aSeparator)

 

func SubstringFromLastOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringFromLastOccurrenceOf(String aSeparator)

 

Function SubstringFromLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringFromLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringFromLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromLastOccurrenceOf(String! aSeparator)

 

func SubstringFromLastOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringFromLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToFirstOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, stopping at the first occurance of aSeperator.

 

method SubstringToFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToFirstOccurrenceOf(String! aSeparator)

 

func SubstringToFirstOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringToFirstOccurrenceOf(String aSeparator)

 

Function SubstringToFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringToFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToFirstOccurrenceOf(String! aSeparator)

 

func SubstringToFirstOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringToFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToLastOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, stopping at the last occurance of aSeperator.

 

method SubstringToLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToLastOccurrenceOf(String! aSeparator)

 

func SubstringToLastOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringToLastOccurrenceOf(String aSeparator)

 

Function SubstringToLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringToLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToLastOccurrenceOf(String! aSeparator)

 

func SubstringToLastOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringToLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

ToByteArray Cooper, Island, Toffee, ToffeeV2

Converts this string to utf8.

 

method ToByteArray: not nullable array of Byte

 

Byte[]! ToByteArray()

 

func ToByteArray() -> Byte...

 

Byte[] ToByteArray()

 

Function ToByteArray() As Byte()

ToByteArray (not nullable Encoding): not nullable array of Byte Cooper, Island, Toffee, ToffeeV2

Convert this string to the given encoding.

 

method ToByteArray(aEncoding: not nullable Encoding): not nullable array of Byte

 

Byte[]! ToByteArray(Encoding! aEncoding)

 

func ToByteArray(_ aEncoding: Encoding) -> Byte...

 

Byte[] ToByteArray(Encoding aEncoding)

 

Function ToByteArray(aEncoding As Encoding) As Byte()

Parameters:

  • aEncoding:

ToByteArray .NET, .NET Standard 2.0

 

method ToByteArray: not nullable array of Byte

 

Byte[]! ToByteArray()

 

func ToByteArray() -> Byte...

 

Function ToByteArray() As Byte()

ToByteArray (not nullable Encoding): not nullable array of Byte .NET, .NET Standard 2.0

 

method ToByteArray(aEncoding: not nullable Encoding): not nullable array of Byte

 

Byte[]! ToByteArray(Encoding! aEncoding)

 

func ToByteArray(_ aEncoding: Encoding) -> Byte...

 

Function ToByteArray(aEncoding As Encoding) As Byte()

Parameters:

  • aEncoding:

ToCharArray Cooper, Island, Toffee, ToffeeV2

Convert this string to an array.

 

method ToCharArray: not nullable array of Char

 

Char[]! ToCharArray()

 

func ToCharArray() -> Char...

 

Char[] ToCharArray()

 

Function ToCharArray() As Char()

ToCharArray .NET, .NET Standard 2.0

 

method ToCharArray: not nullable array of Char

 

Char[]! ToCharArray()

 

func ToCharArray() -> Char...

 

Function ToCharArray() As Char()

ToHexString Cooper, Island, Toffee, ToffeeV2

Convert this string to he.x

 

method ToHexString: String

 

String ToHexString()

 

func ToHexString() -> String

 

String ToHexString()

 

Function ToHexString() As String

ToHexString .NET, .NET Standard 2.0

 

method ToHexString: String

 

String ToHexString()

 

func ToHexString() -> String

 

Function ToHexString() As String

ToLower

Lowrcase this string in the default locale.

 

method ToLower: not nullable String

 

String! ToLower()

 

func ToLower() -> String

 

String ToLower()

 

Function ToLower() As String

ToLower (Locale): not nullable String

Lowrcase this string in the given locale.

 

method ToLower(aLocale: Locale): not nullable String

 

String! ToLower(Locale aLocale)

 

func ToLower(_ aLocale: Locale) -> String

 

String ToLower(Locale aLocale)

 

Function ToLower(aLocale As Locale) As String

Parameters:

  • aLocale:

ToLowerInvariant

Lowrcase this string in the invariant locale.

 

method ToLowerInvariant: not nullable String

 

String! ToLowerInvariant()

 

func ToLowerInvariant() -> String

 

String ToLowerInvariant()

 

Function ToLowerInvariant() As String

ToPathRelativeToFolder (not nullable String) Always(Boolean): String Cooper, Island, Toffee, ToffeeV2

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Always(aAlways: Boolean): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Always(Boolean aAlways)

 

// Toffee
func ToPathRelativeToFolder(_ aBasePath: String, Always aAlways: Boolean) -> String
// ToffeeV2
func ToPathRelativeToFolder(_ aBasePath: String, Always aAlways: Boolean) -> String?

 

String ToPathRelativeToFolder(String aBasePath) Always(Boolean aAlways)

 

Function ToPathRelativeToFolder(aBasePath As String) Always(aAlways As Boolean) As String?

Parameters:

  • aBasePath:
  • aAlways:

ToPathRelativeToFolder (not nullable String) Threshold(Integer): String Cooper, Island, Toffee, ToffeeV2

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Threshold(aThreshold: Int32): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Threshold(Int32 aThreshold)

 

// Toffee
func ToPathRelativeToFolder(_ aBasePath: String, Threshold aThreshold: Int32) -> String
// ToffeeV2
func ToPathRelativeToFolder(_ aBasePath: String, Threshold aThreshold: Int32) -> String?

 

String ToPathRelativeToFolder(String aBasePath) Threshold(Integer aThreshold)

 

Function ToPathRelativeToFolder(aBasePath As String) Threshold(aThreshold As Int32) As String?

Parameters:

  • aBasePath:
  • aThreshold:

ToPathRelativeToFolder (not nullable String): String Cooper, Island, Toffee, ToffeeV2

 

method ToPathRelativeToFolder(aBasePath: not nullable String): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath)

 

// Toffee
func ToPathRelativeToFolder(_ aBasePath: String) -> String
// ToffeeV2
func ToPathRelativeToFolder(_ aBasePath: String) -> String?

 

String ToPathRelativeToFolder(String aBasePath)

 

Function ToPathRelativeToFolder(aBasePath As String) As String?

Parameters:

  • aBasePath:

ToPathRelativeToFolder (not nullable String): nullable String .NET, .NET Standard 2.0

 

method ToPathRelativeToFolder(aBasePath: not nullable String): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath)

 

func ToPathRelativeToFolder(_ aBasePath: String) -> String?

 

Function ToPathRelativeToFolder(aBasePath As String) As String?

Parameters:

  • aBasePath:

ToPathRelativeToFolder (not nullable String) Always(Boolean): nullable String .NET, .NET Standard 2.0

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Always(aAlways: Boolean): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Always(Boolean aAlways)

 

func ToPathRelativeToFolder(_ aBasePath: String, Always aAlways: Boolean) -> String?

 

Function ToPathRelativeToFolder(aBasePath As String) Always(aAlways As Boolean) As String?

Parameters:

  • aBasePath:
  • aAlways:

ToPathRelativeToFolder (not nullable String) Threshold(Int32): nullable String .NET, .NET Standard 2.0

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Threshold(aThreshold: Int32): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Threshold(Int32 aThreshold)

 

func ToPathRelativeToFolder(_ aBasePath: String, Threshold aThreshold: Int32) -> String?

 

Function ToPathRelativeToFolder(aBasePath As String) Threshold(aThreshold As Int32) As String?

Parameters:

  • aBasePath:
  • aThreshold:

ToPathWithLocalFolderPrefixIfRelative

Adds a ./ or .\ if this is a relative path.

 

property ToPathWithLocalFolderPrefixIfRelative: String read;

 

String ToPathWithLocalFolderPrefixIfRelative { get; }

 

var ToPathWithLocalFolderPrefixIfRelative: String { get{} }

 

String ToPathWithLocalFolderPrefixIfRelative { __get; }

 

ReadOnly Property ToPathWithLocalFolderPrefixIfRelative() As String

ToPlatformPathFromUnixPath

Converts a unix path to the system path format (does nothing on Unix).

 

property ToPlatformPathFromUnixPath: String read;

 

String ToPlatformPathFromUnixPath { get; }

 

var ToPlatformPathFromUnixPath: String { get{} }

 

String ToPlatformPathFromUnixPath { __get; }

 

ReadOnly Property ToPlatformPathFromUnixPath() As String

ToPlatformPathFromWindowsPath

Converts a windows path to the system path format (does nothing on Unix).

 

property ToPlatformPathFromWindowsPath: String read;

 

String ToPlatformPathFromWindowsPath { get; }

 

var ToPlatformPathFromWindowsPath: String { get{} }

 

String ToPlatformPathFromWindowsPath { __get; }

 

ReadOnly Property ToPlatformPathFromWindowsPath() As String

ToUnicodeCharacters Cooper, Island, Toffee, ToffeeV2

Convert this string to utf32 unicode characters.

 

method ToUnicodeCharacters: ImmutableList<UnicodeCharacter>

 

ImmutableList<UnicodeCharacter> ToUnicodeCharacters()

 

func ToUnicodeCharacters() -> ImmutableList<UnicodeCharacter>

 

ImmutableList<UnicodeCharacter> ToUnicodeCharacters()

 

Function ToUnicodeCharacters() As ImmutableList<UnicodeCharacter>

ToUnicodeCharacters .NET, .NET Standard 2.0

 

method ToUnicodeCharacters: ImmutableList<UnicodeCharacter>

 

ImmutableList<UnicodeCharacter> ToUnicodeCharacters()

 

func ToUnicodeCharacters() -> ImmutableList<UnicodeCharacter>

 

Function ToUnicodeCharacters() As ImmutableList<UnicodeCharacter>

ToUnicodeCodePointIndices Cooper, Island, Toffee, ToffeeV2

Convert this string to utf32 unicode characters.

 

method ToUnicodeCodePointIndices: ImmutableList<Int32>

 

ImmutableList<Int32> ToUnicodeCodePointIndices()

 

// Toffee
func ToUnicodeCodePointIndices() -> ImmutableList<nullable Int32>
// ToffeeV2
func ToUnicodeCodePointIndices() -> ImmutableList<Int32>

 

ImmutableList<Integer> ToUnicodeCodePointIndices()

 

Function ToUnicodeCodePointIndices() As ImmutableList<Int32>

ToUnicodeCodePointIndices .NET, .NET Standard 2.0

 

method ToUnicodeCodePointIndices: ImmutableList<Int32>

 

ImmutableList<Int32> ToUnicodeCodePointIndices()

 

func ToUnicodeCodePointIndices() -> ImmutableList<Int32>

 

Function ToUnicodeCodePointIndices() As ImmutableList<Int32>

ToUnicodeCodePoints Cooper

Convert this string to utf32 unicode characters.

 

method ToUnicodeCodePoints: ImmutableList<UnsignedInteger>

 

ImmutableList<UnsignedInteger> ToUnicodeCodePoints()

 

func ToUnicodeCodePoints() -> ImmutableList<UnsignedInteger>

 

ImmutableList<UnsignedInteger> ToUnicodeCodePoints()

 

Function ToUnicodeCodePoints() As ImmutableList<UnsignedInteger>

ToUnicodeCodePoints Island, Toffee, ToffeeV2

 

method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>

 

ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()

 

// Toffee
func ToUnicodeCodePoints() -> ImmutableList<nullable UnicodeCodePoint>
// ToffeeV2
func ToUnicodeCodePoints() -> ImmutableList<UnicodeCodePoint>

 

Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>

ToUnicodeCodePoints .NET, .NET Standard 2.0

 

method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>

 

ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()

 

func ToUnicodeCodePoints() -> ImmutableList<UnicodeCodePoint>

 

Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>

ToUnixPath

Convert this to a unix path.

 

property ToUnixPath: String read;

 

String ToUnixPath { get; }

 

var ToUnixPath: String { get{} }

 

String ToUnixPath { __get; }

 

ReadOnly Property ToUnixPath() As String

ToUnixPathFromWindowsPath

Convert a Windows path to unix path.

 

property ToUnixPathFromWindowsPath: String read;

 

String ToUnixPathFromWindowsPath { get; }

 

var ToUnixPathFromWindowsPath: String { get{} }

 

String ToUnixPathFromWindowsPath { __get; }

 

ReadOnly Property ToUnixPathFromWindowsPath() As String

ToUpper

Uppercase this string in the default locale.

 

method ToUpper: not nullable String

 

String! ToUpper()

 

func ToUpper() -> String

 

String ToUpper()

 

Function ToUpper() As String

ToUpper (Locale): not nullable String

Uppercase this string in the given locale.

 

method ToUpper(aLocale: Locale): not nullable String

 

String! ToUpper(Locale aLocale)

 

func ToUpper(_ aLocale: Locale) -> String

 

String ToUpper(Locale aLocale)

 

Function ToUpper(aLocale As Locale) As String

Parameters:

  • aLocale:

ToUpperInvariant

Uppercase this string in the invariant locale.

 

method ToUpperInvariant: not nullable String

 

String! ToUpperInvariant()

 

func ToUpperInvariant() -> String

 

String ToUpperInvariant()

 

Function ToUpperInvariant() As String

ToWindowsPath

Convert to a Windows path.

 

property ToWindowsPath: String read;

 

String ToWindowsPath { get; }

 

var ToWindowsPath: String { get{} }

 

String ToWindowsPath { __get; }

 

ReadOnly Property ToWindowsPath() As String

ToWindowsPathFromUnixPath

Convert a unix path to a Windows path.

 

property ToWindowsPathFromUnixPath: String read;

 

String ToWindowsPathFromUnixPath { get; }

 

var ToWindowsPathFromUnixPath: String { get{} }

 

String ToWindowsPathFromUnixPath { __get; }

 

ReadOnly Property ToWindowsPathFromUnixPath() As String

Trim

Trim this string, on both ends with all unicode whitespace characters.

 

method Trim: not nullable String

 

String! Trim()

 

func Trim() -> String

 

String Trim()

 

Function Trim() As String

Trim (array of Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Trim this string, on both ends with the given characters.

 

method Trim(TrimChars: array of Char): not nullable String

 

String! Trim(Char[] TrimChars)

 

func Trim(_ TrimChars: Char...) -> String

 

String Trim(Char[] TrimChars)

 

Function Trim(TrimChars As Char()) As String

Parameters:

  • TrimChars:

Trim (array of Char): not nullable String .NET, .NET Standard 2.0

 

method Trim(TrimChars: array of Char): not nullable String

 

String! Trim(Char[] TrimChars)

 

func Trim(_ TrimChars: Char...) -> String

 

Function Trim(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimEnd

Trim this string, at the end with all unicode whitespace characters.

 

method TrimEnd: not nullable String

 

String! TrimEnd()

 

func TrimEnd() -> String

 

String TrimEnd()

 

Function TrimEnd() As String

TrimEnd (array of Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Trim this string, at the end with the given characters.

 

method TrimEnd(TrimChars: array of Char): not nullable String

 

String! TrimEnd(Char[] TrimChars)

 

func TrimEnd(_ TrimChars: Char...) -> String

 

String TrimEnd(Char[] TrimChars)

 

Function TrimEnd(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimEnd (array of Char): not nullable String .NET, .NET Standard 2.0

 

method TrimEnd(TrimChars: array of Char): not nullable String

 

String! TrimEnd(Char[] TrimChars)

 

func TrimEnd(_ TrimChars: Char...) -> String

 

Function TrimEnd(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimNewLineCharacters

Removes newline characters at the end/start of the string.

 

method TrimNewLineCharacters: not nullable String

 

String! TrimNewLineCharacters()

 

func TrimNewLineCharacters() -> String

 

String TrimNewLineCharacters()

 

Function TrimNewLineCharacters() As String

TrimStart

Trim this string, at the start with all unicode whitespace characters.

 

method TrimStart: not nullable String

 

String! TrimStart()

 

func TrimStart() -> String

 

String TrimStart()

 

Function TrimStart() As String

TrimStart (array of Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Trim this string, at the start with the given characters.

 

method TrimStart(TrimChars: array of Char): not nullable String

 

String! TrimStart(Char[] TrimChars)

 

func TrimStart(_ TrimChars: Char...) -> String

 

String TrimStart(Char[] TrimChars)

 

Function TrimStart(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimStart (array of Char): not nullable String .NET, .NET Standard 2.0

 

method TrimStart(TrimChars: array of Char): not nullable String

 

String! TrimStart(Char[] TrimChars)

 

func TrimStart(_ TrimChars: Char...) -> String

 

Function TrimStart(TrimChars As Char()) As String

Parameters:

  • TrimChars:

UnicodeCodePointAtIndex (Integer): UnicodeCodePoint Cooper, Island, Toffee, ToffeeV2

Returns the unicode code point at a given index.

 

method UnicodeCodePointAtIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointAtIndex(Int32 aIndex)

 

func UnicodeCodePointAtIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointAtIndex(Integer aIndex)

 

Function UnicodeCodePointAtIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

UnicodeCodePointAtIndex (Int32): UnicodeCodePoint .NET, .NET Standard 2.0

 

method UnicodeCodePointAtIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointAtIndex(Int32 aIndex)

 

func UnicodeCodePointAtIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

Function UnicodeCodePointAtIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

UnicodeCodePointBeforeIndex (Integer): UnicodeCodePoint Cooper, Island, Toffee, ToffeeV2

Returns the unicode code point before a given index.

 

method UnicodeCodePointBeforeIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointBeforeIndex(Int32 aIndex)

 

func UnicodeCodePointBeforeIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointBeforeIndex(Integer aIndex)

 

Function UnicodeCodePointBeforeIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

UnicodeCodePointBeforeIndex (Int32): UnicodeCodePoint .NET, .NET Standard 2.0

 

method UnicodeCodePointBeforeIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointBeforeIndex(Int32 aIndex)

 

func UnicodeCodePointBeforeIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

Function UnicodeCodePointBeforeIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

UnixParentDirectory

 

property UnixParentDirectory: nullable String read;

 

String? UnixParentDirectory { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var UnixParentDirectory: String? { get{} }
// Toffee
var UnixParentDirectory: String { get{} }

 

String UnixParentDirectory { __get; }

 

ReadOnly Property UnixParentDirectory() As String?

WhiteSpaceCharacters

List of whitespace characters.

 

class var WhiteSpaceCharacters: array of Char;

 

static Char[] WhiteSpaceCharacters

 

static var WhiteSpaceCharacters: Char...

 

static Char[] WhiteSpaceCharacters

 

Shared FIELD WhiteSpaceCharacters() As Char()

WindowsParentDirectory

 

property WindowsParentDirectory: nullable String read;

 

String? WindowsParentDirectory { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var WindowsParentDirectory: String? { get{} }
// Toffee
var WindowsParentDirectory: String { get{} }

 

String WindowsParentDirectory { __get; }

 

ReadOnly Property WindowsParentDirectory() As String?

 

WhiteSpaceCharacters

List of whitespace characters.

 

class var WhiteSpaceCharacters: array of Char;

 

static Char[] WhiteSpaceCharacters

 

static var WhiteSpaceCharacters: Char...

 

static Char[] WhiteSpaceCharacters

 

Shared FIELD WhiteSpaceCharacters() As Char()

 

Chars

Accessors for characters in the string

 

property Chars[aIndex: Int32]: Char read;

 

Char Chars[Int32 aIndex] { get; }

 

subscript Chars(_ aIndex: Int32) -> Char { get{} }

 

Char Chars[Integer aIndex] { __get; }

 

ReadOnly Property Chars(aIndex As Int32) As Char

FileExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns true if this string points to a file that exists.

 

property FileExists: Boolean read;

 

Boolean FileExists { get; }

 

var FileExists: Boolean { get{} }

 

Boolean FileExists { __get; }

 

ReadOnly Property FileExists() As Boolean

FileOrFolderExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns true if this string points to a file or filder that exists.

 

property FileOrFolderExists: Boolean read;

 

Boolean FileOrFolderExists { get; }

 

var FileOrFolderExists: Boolean { get{} }

 

Boolean FileOrFolderExists { __get; }

 

ReadOnly Property FileOrFolderExists() As Boolean

FirstLine

Returns this string up to the first line ending, or everything.

 

property FirstLine: String read;

 

String FirstLine { get; }

 

var FirstLine: String { get{} }

 

String FirstLine { __get; }

 

ReadOnly Property FirstLine() As String

FolderExists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns true if this string points to a folder that exists.

 

property FolderExists: Boolean read;

 

Boolean FolderExists { get; }

 

var FolderExists: Boolean { get{} }

 

Boolean FolderExists { __get; }

 

ReadOnly Property FolderExists() As Boolean

IsAbsolutePath

Returns true if this string points to an absolute path.

 

property IsAbsolutePath: Boolean read;

 

Boolean IsAbsolutePath { get; }

 

var IsAbsolutePath: Boolean { get{} }

 

Boolean IsAbsolutePath { __get; }

 

ReadOnly Property IsAbsolutePath() As Boolean

IsAbsoluteUnixPath

Returns true if this string points to an absolute unix path.

 

property IsAbsoluteUnixPath: Boolean read;

 

Boolean IsAbsoluteUnixPath { get; }

 

var IsAbsoluteUnixPath: Boolean { get{} }

 

Boolean IsAbsoluteUnixPath { __get; }

 

ReadOnly Property IsAbsoluteUnixPath() As Boolean

IsAbsoluteWindowsPath

Returns true if this string points to an absolute windows path.

 

property IsAbsoluteWindowsPath: Boolean read;

 

Boolean IsAbsoluteWindowsPath { get; }

 

var IsAbsoluteWindowsPath: Boolean { get{} }

 

Boolean IsAbsoluteWindowsPath { __get; }

 

ReadOnly Property IsAbsoluteWindowsPath() As Boolean

IsWindowsPath

Returns true if this string is a valid windows path.

 

property IsWindowsPath: Boolean read;

 

Boolean IsWindowsPath { get; }

 

var IsWindowsPath: Boolean { get{} }

 

Boolean IsWindowsPath { __get; }

 

ReadOnly Property IsWindowsPath() As Boolean

LastPathComponent

Returns the last component of this string, treating it as a path. Splits on the system directory seperator.

 

property LastPathComponent: String read;

 

String LastPathComponent { get; }

 

var LastPathComponent: String { get{} }

 

String LastPathComponent { __get; }

 

ReadOnly Property LastPathComponent() As String

LastPathComponentWithoutExtension

Returns the last component of this string, treating it as a path. Splits on the system directory seperator, ignoring the exception.

 

property LastPathComponentWithoutExtension: String read;

 

String LastPathComponentWithoutExtension { get; }

 

var LastPathComponentWithoutExtension: String { get{} }

 

String LastPathComponentWithoutExtension { __get; }

 

ReadOnly Property LastPathComponentWithoutExtension() As String

LastUnixPathComponent

Returns the last component of this string, treating it as a path. Splits on the unix directory seperator.

 

property LastUnixPathComponent: String read;

 

String LastUnixPathComponent { get; }

 

var LastUnixPathComponent: String { get{} }

 

String LastUnixPathComponent { __get; }

 

ReadOnly Property LastUnixPathComponent() As String

LastUnixPathComponentWithoutExtension

Returns the last component of this string, treating it as a path. Splits on the unix directory seperator, ignoring the extension.

 

property LastUnixPathComponentWithoutExtension: String read;

 

String LastUnixPathComponentWithoutExtension { get; }

 

var LastUnixPathComponentWithoutExtension: String { get{} }

 

String LastUnixPathComponentWithoutExtension { __get; }

 

ReadOnly Property LastUnixPathComponentWithoutExtension() As String

LastWindowsPathComponent

Returns the last component of this string, treating it as a path. Splits on the windows directory seperator.

 

property LastWindowsPathComponent: String read;

 

String LastWindowsPathComponent { get; }

 

var LastWindowsPathComponent: String { get{} }

 

String LastWindowsPathComponent { __get; }

 

ReadOnly Property LastWindowsPathComponent() As String

LastWindowsPathComponentWithoutExtension

Returns the last component of this string, treating it as a path. Splits on the windows directory seperator, ignoring the exxception.

 

property LastWindowsPathComponentWithoutExtension: String read;

 

String LastWindowsPathComponentWithoutExtension { get; }

 

var LastWindowsPathComponentWithoutExtension: String { get{} }

 

String LastWindowsPathComponentWithoutExtension { __get; }

 

ReadOnly Property LastWindowsPathComponentWithoutExtension() As String

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Integer Length { __get; }

 

ReadOnly Property Length() As Int32

NetworkServerName

Returns the network server name from a path string.

 

property NetworkServerName: nullable String read;

 

String? NetworkServerName { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var NetworkServerName: String? { get{} }
// Toffee
var NetworkServerName: String { get{} }

 

String NetworkServerName { __get; }

 

ReadOnly Property NetworkServerName() As String?

ParentDirectory

 

property ParentDirectory: nullable String read;

 

String? ParentDirectory { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var ParentDirectory: String? { get{} }
// Toffee
var ParentDirectory: String { get{} }

 

String ParentDirectory { __get; }

 

ReadOnly Property ParentDirectory() As String?

PathExtension

Returns the extension of this string, treating it as filename.

 

property PathExtension: String read;

 

String PathExtension { get; }

 

var PathExtension: String { get{} }

 

String PathExtension { __get; }

 

ReadOnly Property PathExtension() As String

PathWithoutExtension

Returns this string without extension, treating it as filename.

 

property PathWithoutExtension: String read;

 

String PathWithoutExtension { get; }

 

var PathWithoutExtension: String { get{} }

 

String PathWithoutExtension { __get; }

 

ReadOnly Property PathWithoutExtension() As String

QuotedIfNeeded

Adds quotes if this string contains whitespace.

 

property QuotedIfNeeded: String read;

 

String QuotedIfNeeded { get; }

 

var QuotedIfNeeded: String { get{} }

 

String QuotedIfNeeded { __get; }

 

ReadOnly Property QuotedIfNeeded() As String

ToPathWithLocalFolderPrefixIfRelative

Adds a ./ or .\ if this is a relative path.

 

property ToPathWithLocalFolderPrefixIfRelative: String read;

 

String ToPathWithLocalFolderPrefixIfRelative { get; }

 

var ToPathWithLocalFolderPrefixIfRelative: String { get{} }

 

String ToPathWithLocalFolderPrefixIfRelative { __get; }

 

ReadOnly Property ToPathWithLocalFolderPrefixIfRelative() As String

ToPlatformPathFromUnixPath

Converts a unix path to the system path format (does nothing on Unix).

 

property ToPlatformPathFromUnixPath: String read;

 

String ToPlatformPathFromUnixPath { get; }

 

var ToPlatformPathFromUnixPath: String { get{} }

 

String ToPlatformPathFromUnixPath { __get; }

 

ReadOnly Property ToPlatformPathFromUnixPath() As String

ToPlatformPathFromWindowsPath

Converts a windows path to the system path format (does nothing on Unix).

 

property ToPlatformPathFromWindowsPath: String read;

 

String ToPlatformPathFromWindowsPath { get; }

 

var ToPlatformPathFromWindowsPath: String { get{} }

 

String ToPlatformPathFromWindowsPath { __get; }

 

ReadOnly Property ToPlatformPathFromWindowsPath() As String

ToUnixPath

Convert this to a unix path.

 

property ToUnixPath: String read;

 

String ToUnixPath { get; }

 

var ToUnixPath: String { get{} }

 

String ToUnixPath { __get; }

 

ReadOnly Property ToUnixPath() As String

ToUnixPathFromWindowsPath

Convert a Windows path to unix path.

 

property ToUnixPathFromWindowsPath: String read;

 

String ToUnixPathFromWindowsPath { get; }

 

var ToUnixPathFromWindowsPath: String { get{} }

 

String ToUnixPathFromWindowsPath { __get; }

 

ReadOnly Property ToUnixPathFromWindowsPath() As String

ToWindowsPath

Convert to a Windows path.

 

property ToWindowsPath: String read;

 

String ToWindowsPath { get; }

 

var ToWindowsPath: String { get{} }

 

String ToWindowsPath { __get; }

 

ReadOnly Property ToWindowsPath() As String

ToWindowsPathFromUnixPath

Convert a unix path to a Windows path.

 

property ToWindowsPathFromUnixPath: String read;

 

String ToWindowsPathFromUnixPath { get; }

 

var ToWindowsPathFromUnixPath: String { get{} }

 

String ToWindowsPathFromUnixPath { __get; }

 

ReadOnly Property ToWindowsPathFromUnixPath() As String

UnixParentDirectory

 

property UnixParentDirectory: nullable String read;

 

String? UnixParentDirectory { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var UnixParentDirectory: String? { get{} }
// Toffee
var UnixParentDirectory: String { get{} }

 

String UnixParentDirectory { __get; }

 

ReadOnly Property UnixParentDirectory() As String?

WindowsParentDirectory

 

property WindowsParentDirectory: nullable String read;

 

String? WindowsParentDirectory { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var WindowsParentDirectory: String? { get{} }
// Toffee
var WindowsParentDirectory: String { get{} }

 

String WindowsParentDirectory { __get; }

 

ReadOnly Property WindowsParentDirectory() As String?

Empty

Empty string: ''

 

class property Empty: String read;

 

class String Empty { get; }

 

static var Empty: String { get{} }

 

class String Empty { __get; }

 

Shared ReadOnly Property Empty() As String

 

constructor <clinit>  External Cooper

 

class method constructor <clinit>

 

static void constructor <clinit>()

 

static func constructor <clinit>()

 

static void constructor <clinit>()

 

Shared Sub constructor <clinit>()

Compare

Compare a string, returns 0 if the same, -1 if less, 1 if greater.

 

class method Compare(Value1: String; Value2: String): Int32

 

static Int32 Compare(String Value1, String Value2)

 

static func Compare(_ Value1: String, _ Value2: String) -> Int32

 

static Integer Compare(String Value1, String Value2)

 

Shared Function Compare(Value1 As String, Value2 As String) As Int32

Parameters:

  • Value1:
  • Value2:

Equals (String, String): Boolean

Returns true if these strings are exactly equivalent.

 

class method Equals(ValueA: String; ValueB: String): Boolean

 

static Boolean Equals(String ValueA, String ValueB)

 

static func Equals(_ ValueA: String, _ ValueB: String) -> Boolean

 

static Boolean Equals(String ValueA, String ValueB)

 

Shared Function Equals(ValueA As String, ValueB As String) As Boolean

Parameters:

  • ValueA:
  • ValueB:

EqualsIgnoringCase (String, String): Boolean

Returns true if these strings are equivalent, ignoring their case.

 

class method EqualsIgnoringCase(ValueA: String; ValueB: String): Boolean

 

static Boolean EqualsIgnoringCase(String ValueA, String ValueB)

 

static func EqualsIgnoringCase(_ ValueA: String, _ ValueB: String) -> Boolean

 

static Boolean EqualsIgnoringCase(String ValueA, String ValueB)

 

Shared Function EqualsIgnoringCase(ValueA As String, ValueB As String) As Boolean

Parameters:

  • ValueA:
  • ValueB:

EqualsIgnoringCaseInvariant (String, String): Boolean

Returns true if these strings are equivalent, ignoring their case in the invariant culture.

 

class method EqualsIgnoringCaseInvariant(ValueA: String; ValueB: String): Boolean

 

static Boolean EqualsIgnoringCaseInvariant(String ValueA, String ValueB)

 

static func EqualsIgnoringCaseInvariant(_ ValueA: String, _ ValueB: String) -> Boolean

 

static Boolean EqualsIgnoringCaseInvariant(String ValueA, String ValueB)

 

Shared Function EqualsIgnoringCaseInvariant(ValueA As String, ValueB As String) As Boolean

Parameters:

  • ValueA:
  • ValueB:

Format

Formats the string, uses .NET formatting style for aFormat.

 

class method Format(aFormat: String; params aParams: array of Object): not nullable String

 

static String! Format(String aFormat, params Object[] aParams)

 

static func Format(_ aFormat: String, _ aParams: Object...) -> String

 

static String Format(String aFormat, Object[]... aParams)

 

Shared Function Format(aFormat As String, ParamArray aParams As Object()) As String

Parameters:

  • aFormat:
  • aParams:

initialize ToffeeV2

 

static func initialize()

IsNullOrEmpty

Returns true if this string is null or empty.

 

class method IsNullOrEmpty(Value: String): Boolean

 

static Boolean IsNullOrEmpty(String Value)

 

static func IsNullOrEmpty(_ Value: String) -> Boolean

 

static Boolean IsNullOrEmpty(String Value)

 

Shared Function IsNullOrEmpty(Value As String) As Boolean

Parameters:

  • Value:

IsNullOrWhiteSpace

Returns true if this string is null, empty or jsut has whitespace.

 

class method IsNullOrWhiteSpace(Value: String): Boolean

 

static Boolean IsNullOrWhiteSpace(String Value)

 

static func IsNullOrWhiteSpace(_ Value: String) -> Boolean

 

static Boolean IsNullOrWhiteSpace(String Value)

 

Shared Function IsNullOrWhiteSpace(Value As String) As Boolean

Parameters:

  • Value:

Join (nullable String, not nullable array of String): not nullable String

Join a string together with aSeparator as separator.

 

class method Join(aSeparator: nullable String; Values: not nullable array of String): not nullable String

 

static String! Join(String? aSeparator, String[]! Values)

 

// Toffee
static func Join(_ aSeparator: String, _ Values: String...) -> String
// ToffeeV2
static func Join(_ aSeparator: String?, _ Values: String...) -> String

 

static String Join(String aSeparator, String[] Values)

 

Shared Function Join(aSeparator As String?, Values As String()) As String

Parameters:

  • aSeparator:
  • Values:

Join (nullable String, not nullable ImmutableList<String>): not nullable String

Join a string together with aSeparator as separator.

 

class method Join(aSeparator: nullable String; Values: not nullable ImmutableList<String>): not nullable String

 

static String! Join(String? aSeparator, ImmutableList<String>! Values)

 

// Toffee
static func Join(_ aSeparator: String, _ Values: ImmutableList<String>) -> String
// ToffeeV2
static func Join(_ aSeparator: String?, _ Values: ImmutableList<String>) -> String

 

static String Join(String aSeparator, ImmutableList<String> Values)

 

Shared Function Join(aSeparator As String?, Values As ImmutableList<String>) As String

Parameters:

  • aSeparator:
  • Values:

 

constructor (array of Byte, Encoding)

Creates a string with Value as content, in the encoding given in Encoding.

 

constructor(aBytes: array of Byte; aEncoding: Encoding)

 

String(Byte[] aBytes, Encoding aEncoding)

 

init(_ aBytes: Byte..., _ aEncoding: Encoding)

 

String(Byte[] aBytes, Encoding aEncoding)

 

Sub New(aBytes As Byte(), aEncoding As Encoding)

Parameters:

  • aBytes:
  • aEncoding:

constructor (Char, Int32)

Creates a string with aChar repeated aCount times.

 

constructor(aChar: Char; aCount: Int32)

 

String(Char aChar, Int32 aCount)

 

init(_ aChar: Char, _ aCount: Int32)

 

String(Char aChar, Integer aCount)

 

Sub New(aChar As Char, aCount As Int32)

Parameters:

  • aChar:
  • aCount:

constructor (array of UnicodeCodePoint)

Creates a string with aCodePoints as content.

 

constructor(aCodePoints: array of UnicodeCodePoint)

 

String(UnicodeCodePoint[] aCodePoints)

 

init(_ aCodePoints: UnicodeCodePoint...)

 

String(UnicodeCodePoint[] aCodePoints)

 

Sub New(aCodePoints As UnicodeCodePoint())

Parameters:

  • aCodePoints:

constructor (List<UnsignedInteger>) Cooper

Creates a string with aCodePoints as content.

 

constructor(aCodePoints: List<UnsignedInteger>)

 

String(List<UnsignedInteger> aCodePoints)

 

init(_ aCodePoints: List<UnsignedInteger>)

 

String(List<UnsignedInteger> aCodePoints)

 

Sub New(aCodePoints As List<UnsignedInteger>)

Parameters:

  • aCodePoints:

constructor (List<UnicodeCodePoint>) .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Creates a string with aCodePoints as content.

 

constructor(aCodePoints: List<UnicodeCodePoint>)

 

String(List<UnicodeCodePoint> aCodePoints)

 

// Toffee
init(_ aCodePoints: List<nullable UnicodeCodePoint>)
// ToffeeV2
init(_ aCodePoints: List<UnicodeCodePoint>)

 

Sub New(aCodePoints As List<UnicodeCodePoint>)

Parameters:

  • aCodePoints:

constructor (array of Char)

Creates a string with Value as content.

 

constructor(Value: array of Char)

 

String(Char[] Value)

 

init(_ Value: Char...)

 

String(Char[] Value)

 

Sub New(Value As Char())

Parameters:

  • Value:

constructor (array of Char, Int32, Int32)

Creates a string with Value as content.

 

constructor(Value: array of Char; Offset: Int32; Count: Int32)

 

String(Char[] Value, Int32 Offset, Int32 Count)

 

init(_ Value: Char..., _ Offset: Int32, _ Count: Int32)

 

String(Char[] Value, Integer Offset, Integer Count)

 

Sub New(Value As Char(), Offset As Int32, Count As Int32)

Parameters:

  • Value:
  • Offset:
  • Count:

AppendPath (array of String): String Cooper, Island, Toffee, ToffeeV2

 

method AppendPath(params aPaths: array of String): nullable String

 

String? AppendPath(params String[] aPaths)

 

// Toffee
func AppendPath(_ aPaths: String...) -> String
// ToffeeV2
func AppendPath(_ aPaths: String...) -> String?

 

String AppendPath(String[]... aPaths)

 

Function AppendPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendUnixPath (array of String): String Cooper, Island, Toffee, ToffeeV2

 

method AppendUnixPath(params aPaths: array of String): nullable String

 

String? AppendUnixPath(params String[] aPaths)

 

// Toffee
func AppendUnixPath(_ aPaths: String...) -> String
// ToffeeV2
func AppendUnixPath(_ aPaths: String...) -> String?

 

String AppendUnixPath(String[]... aPaths)

 

Function AppendUnixPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendWindowsPath (array of String): String Cooper, Island, Toffee, ToffeeV2

 

method AppendWindowsPath(params aPaths: array of String): nullable String

 

String? AppendWindowsPath(params String[] aPaths)

 

// Toffee
func AppendWindowsPath(_ aPaths: String...) -> String
// ToffeeV2
func AppendWindowsPath(_ aPaths: String...) -> String?

 

String AppendWindowsPath(String[]... aPaths)

 

Function AppendWindowsPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

Capitalize Cooper, Island, Toffee, ToffeeV2

Uppercase this with the default locale.

 

method Capitalize: not nullable String

 

String! Capitalize()

 

func Capitalize() -> String

 

String Capitalize()

 

Function Capitalize() As String

Capitalize (Locale): not nullable String Cooper, Island, Toffee, ToffeeV2

Uppercase this with the given locale.

 

method Capitalize(aLocale: Locale): not nullable String

 

String! Capitalize(Locale aLocale)

 

func Capitalize(_ aLocale: Locale) -> String

 

String Capitalize(Locale aLocale)

 

Function Capitalize(aLocale As Locale) As String

Parameters:

  • aLocale:

CapitalizeInvariant Cooper, Island, Toffee, ToffeeV2

Uppercase this with the invariant locale.

 

method CapitalizeInvariant: not nullable String

 

String! CapitalizeInvariant()

 

func CapitalizeInvariant() -> String

 

String CapitalizeInvariant()

 

Function CapitalizeInvariant() As String

CompareTo (String): Integer Cooper, Island, Toffee, ToffeeV2

compare this string to another string.

 

method CompareTo(Value: String): Int32

 

Int32 CompareTo(String Value)

 

func CompareTo(_ Value: String) -> Int32

 

Integer CompareTo(String Value)

 

Function CompareTo(Value As String) As Int32

Parameters:

  • Value:

CompareToIgnoreCase (String): Integer Cooper, Island, Toffee, ToffeeV2

Compare a string, case insensitive, returns 0 if the same, -1 if less, 1 if greater.

 

method CompareToIgnoreCase(Value: String): Int32

 

Int32 CompareToIgnoreCase(String Value)

 

func CompareToIgnoreCase(_ Value: String) -> Int32

 

Integer CompareToIgnoreCase(String Value)

 

Function CompareToIgnoreCase(Value As String) As Int32

Parameters:

  • Value:

Contains

Returns true if a string contains another string.

 

method Contains(Value: String): Boolean

 

Boolean Contains(String Value)

 

func Contains(_ Value: String) -> Boolean

 

Boolean Contains(String Value)

 

Function Contains(Value As String) As Boolean

Parameters:

  • Value:

ContainsAny (array of Char): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains anf of the AnyOf characters.

 

method ContainsAny(AnyOf: array of Char): Boolean

 

Boolean ContainsAny(Char[] AnyOf)

 

func ContainsAny(_ AnyOf: Char...) -> Boolean

 

Boolean ContainsAny(Char[] AnyOf)

 

Function ContainsAny(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsAny (array of Char, Integer): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains anf of the AnyOf characters, starts from aStartIndex.

 

method ContainsAny(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsAny(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsAny(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Boolean ContainsAny(Char[] AnyOf, Integer aStartIndex)

 

Function ContainsAny(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

ContainsAnyNonASCII Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains an character > 127.

 

method ContainsAnyNonASCII: Boolean

 

Boolean ContainsAnyNonASCII()

 

func ContainsAnyNonASCII() -> Boolean

 

Boolean ContainsAnyNonASCII()

 

Function ContainsAnyNonASCII() As Boolean

ContainsAnyNonASCII (Integer): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains an character > 127, starts from aStartIndex.

 

method ContainsAnyNonASCII(aStartIndex: Int32): Boolean

 

Boolean ContainsAnyNonASCII(Int32 aStartIndex)

 

func ContainsAnyNonASCII(_ aStartIndex: Int32) -> Boolean

 

Boolean ContainsAnyNonASCII(Integer aStartIndex)

 

Function ContainsAnyNonASCII(aStartIndex As Int32) As Boolean

Parameters:

  • aStartIndex:

ContainsOnly (array of Char): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains only the AnyOf characters.

 

method ContainsOnly(AnyOf: array of Char): Boolean

 

Boolean ContainsOnly(Char[] AnyOf)

 

func ContainsOnly(_ AnyOf: Char...) -> Boolean

 

Boolean ContainsOnly(Char[] AnyOf)

 

Function ContainsOnly(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsOnly (array of Char, Integer): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if the string contains only the AnyOf characters, starting at aStartIndex.

 

method ContainsOnly(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsOnly(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsOnly(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Boolean ContainsOnly(Char[] AnyOf, Integer aStartIndex)

 

Function ContainsOnly(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

EndsWith (Char): Boolean

Returns true if a string ends with Value.

 

method EndsWith(Value: Char): Boolean

 

Boolean EndsWith(Char Value)

 

func EndsWith(_ Value: Char) -> Boolean

 

Boolean EndsWith(Char Value)

 

Function EndsWith(Value As Char) As Boolean

Parameters:

  • Value:

EndsWith (String): Boolean

Returns true if a string ends with Value.

 

method EndsWith(Value: String): Boolean

 

Boolean EndsWith(String Value)

 

func EndsWith(_ Value: String) -> Boolean

 

Boolean EndsWith(String Value)

 

Function EndsWith(Value As String) As Boolean

Parameters:

  • Value:

EndsWith (String, Boolean): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if a string ends with Value.

 

method EndsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean EndsWith(String Value, Boolean IgnoreCase)

 

func EndsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Boolean EndsWith(String Value, Boolean IgnoreCase)

 

Function EndsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

Equals (String): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if these strings are exactly equivalent.

 

method Equals(Value: String): Boolean

 

Boolean Equals(String Value)

 

func Equals(_ Value: String) -> Boolean

 

Boolean Equals(String Value)

 

Function Equals(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCase (String): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if these strings are equivalent, ignoring their case.

 

method EqualsIgnoringCase(Value: String): Boolean

 

Boolean EqualsIgnoringCase(String Value)

 

func EqualsIgnoringCase(_ Value: String) -> Boolean

 

Boolean EqualsIgnoringCase(String Value)

 

Function EqualsIgnoringCase(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCaseInvariant (String): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if these strings are equivalent, ignoring their case in the invariant culture.

 

method EqualsIgnoringCaseInvariant(Value: String): Boolean

 

Boolean EqualsIgnoringCaseInvariant(String Value)

 

func EqualsIgnoringCaseInvariant(_ Value: String) -> Boolean

 

Boolean EqualsIgnoringCaseInvariant(String Value)

 

Function EqualsIgnoringCaseInvariant(Value As String) As Boolean

Parameters:

  • Value:

FuzzyMatches (not nullable String): Boolean Cooper, Island, Toffee, ToffeeV2

Does a "fuzzy" match. Given the current string, ensures each character is in aHaystack in sequential order.

 

method FuzzyMatches(aHaystack: not nullable String): Boolean

 

Boolean FuzzyMatches(String! aHaystack)

 

func FuzzyMatches(_ aHaystack: String) -> Boolean

 

Boolean FuzzyMatches(String aHaystack)

 

Function FuzzyMatches(aHaystack As String) As Boolean

Parameters:

  • aHaystack:

GetSequence  virtual Toffee

 

func GetSequence() -> INSFastEnumeration<__ElementsBoxedChar>

GetSequence Island, ToffeeV2

 

method GetSequence: IEnumerable<Char>

 

IEnumerable<Char> GetSequence()

 

func GetSequence() -> IEnumerable<Char>

 

Function GetSequence() As IEnumerable<Char>

GetSequence Cooper

Returns an iterator that yields each character in this string in order.

 

method GetSequence: Iterable<Character>

 

Iterable<Character> GetSequence()

 

func GetSequence() -> Iterable<Character>

 

Iterable<Character> GetSequence()

 

Function GetSequence() As Iterable<Character>

IndexAfterJoinedUnicodeCharacterCoveringIndex (Integer): Integer Cooper, Island, Toffee, ToffeeV2

 

method IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex: Int32): Int32

 

Int32 IndexAfterJoinedUnicodeCharacterCoveringIndex(Int32 aIndex)

 

func IndexAfterJoinedUnicodeCharacterCoveringIndex(_ aIndex: Int32) -> Int32

 

Integer IndexAfterJoinedUnicodeCharacterCoveringIndex(Integer aIndex)

 

Function IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

IndexOf (Char): Int32

Returns the index of Value in this string, returning -1 if it's not there.

 

method IndexOf(Value: Char): Int32

 

Int32 IndexOf(Char Value)

 

func IndexOf(_ Value: Char) -> Int32

 

Integer IndexOf(Char Value)

 

Function IndexOf(Value As Char) As Int32

Parameters:

  • Value:

IndexOf (Char, Int32): Int32

Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.

 

method IndexOf(Value: Char; StartIndex: Int32): Int32

 

Int32 IndexOf(Char Value, Int32 StartIndex)

 

func IndexOf(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Integer IndexOf(Char Value, Integer StartIndex)

 

Function IndexOf(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

IndexOf (String): Int32

Returns the index of Value in this string, returning -1 if it's not there.

 

method IndexOf(Value: String): Int32

 

Int32 IndexOf(String Value)

 

func IndexOf(_ Value: String) -> Int32

 

Integer IndexOf(String Value)

 

Function IndexOf(Value As String) As Int32

Parameters:

  • Value:

IndexOf (String, Int32): Int32

Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.

 

method IndexOf(Value: String; StartIndex: Int32): Int32

 

Int32 IndexOf(String Value, Int32 StartIndex)

 

func IndexOf(_ Value: String, _ StartIndex: Int32) -> Int32

 

Integer IndexOf(String Value, Integer StartIndex)

 

Function IndexOf(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

IndexOfAny (array of Char): Int32

Returns the index of any of these characters, or -1 if none can be found.

 

method IndexOfAny(AnyOf: array of Char): Int32

 

Int32 IndexOfAny(Char[] AnyOf)

 

func IndexOfAny(_ AnyOf: Char...) -> Int32

 

Integer IndexOfAny(Char[] AnyOf)

 

Function IndexOfAny(AnyOf As Char()) As Int32

Parameters:

  • AnyOf:

IndexOfAny (array of Char, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the index of any of these characters, starting at StartIndex, or -1 if none can be found.

 

method IndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 IndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func IndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Integer IndexOfAny(Char[] AnyOf, Integer StartIndex)

 

Function IndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

IndexOfIgnoringCase (Char): Int32

Returns the index of Value in this string, case insensitive, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: Char): Int32

 

Int32 IndexOfIgnoringCase(Char Value)

 

func IndexOfIgnoringCase(_ Value: Char) -> Int32

 

Integer IndexOfIgnoringCase(Char Value)

 

Function IndexOfIgnoringCase(Value As Char) As Int32

Parameters:

  • Value:

IndexOfIgnoringCase (Char, Int32): Int32

Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: Char; StartIndex: Int32): Int32

 

Int32 IndexOfIgnoringCase(Char Value, Int32 StartIndex)

 

func IndexOfIgnoringCase(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Integer IndexOfIgnoringCase(Char Value, Integer StartIndex)

 

Function IndexOfIgnoringCase(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

IndexOfIgnoringCase (String): Int32

Returns the index of Value in this string, case insensitive, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: String): Int32

 

Int32 IndexOfIgnoringCase(String Value)

 

func IndexOfIgnoringCase(_ Value: String) -> Int32

 

Integer IndexOfIgnoringCase(String Value)

 

Function IndexOfIgnoringCase(Value As String) As Int32

Parameters:

  • Value:

IndexOfIgnoringCase (String, Int32): Int32

Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.

 

method IndexOfIgnoringCase(Value: String; StartIndex: Int32): Int32

 

Int32 IndexOfIgnoringCase(String Value, Int32 StartIndex)

 

func IndexOfIgnoringCase(_ Value: String, _ StartIndex: Int32) -> Int32

 

Integer IndexOfIgnoringCase(String Value, Integer StartIndex)

 

Function IndexOfIgnoringCase(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

Insert

Insert a string into this string, returning the new string.

 

method Insert(aIndex: Int32; aNewValue: String): not nullable String

 

String! Insert(Int32 aIndex, String aNewValue)

 

func Insert(_ aIndex: Int32, _ aNewValue: String) -> String

 

String Insert(Integer aIndex, String aNewValue)

 

Function Insert(aIndex As Int32, aNewValue As String) As String

Parameters:

  • aIndex:
  • aNewValue:

IsIndexInsideOfAJoinedUnicodeCharacter (Integer): Boolean Cooper, Island, Toffee, ToffeeV2

 

method IsIndexInsideOfAJoinedUnicodeCharacter(aIndex: Int32): Boolean

 

Boolean IsIndexInsideOfAJoinedUnicodeCharacter(Int32 aIndex)

 

func IsIndexInsideOfAJoinedUnicodeCharacter(_ aIndex: Int32) -> Boolean

 

Boolean IsIndexInsideOfAJoinedUnicodeCharacter(Integer aIndex)

 

Function IsIndexInsideOfAJoinedUnicodeCharacter(aIndex As Int32) As Boolean

Parameters:

  • aIndex:

IsIndexInsideOfASurrogatePair

 

method IsIndexInsideOfASurrogatePair(aIndex: Int32): Boolean

 

Boolean IsIndexInsideOfASurrogatePair(Int32 aIndex)

 

func IsIndexInsideOfASurrogatePair(_ aIndex: Int32) -> Boolean

 

Boolean IsIndexInsideOfASurrogatePair(Integer aIndex)

 

Function IsIndexInsideOfASurrogatePair(aIndex As Int32) As Boolean

Parameters:

  • aIndex:

LastIndexOf (Char): Int32

Returns the last index of Value in this string, returning -1 if it's not there.

 

method LastIndexOf(Value: Char): Int32

 

Int32 LastIndexOf(Char Value)

 

func LastIndexOf(_ Value: Char) -> Int32

 

Integer LastIndexOf(Char Value)

 

Function LastIndexOf(Value As Char) As Int32

Parameters:

  • Value:

LastIndexOf (Char, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.

 

method LastIndexOf(Value: Char; StartIndex: Int32): Int32

 

Int32 LastIndexOf(Char Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Integer LastIndexOf(Char Value, Integer StartIndex)

 

Function LastIndexOf(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOf (String): Int32

Returns the last index of Value in this string, returning -1 if it's not there.

 

method LastIndexOf(Value: String): Int32

 

Int32 LastIndexOf(String Value)

 

func LastIndexOf(_ Value: String) -> Int32

 

Integer LastIndexOf(String Value)

 

Function LastIndexOf(Value As String) As Int32

Parameters:

  • Value:

LastIndexOf (String, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.

 

method LastIndexOf(Value: String; StartIndex: Int32): Int32

 

Int32 LastIndexOf(String Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: String, _ StartIndex: Int32) -> Int32

 

Integer LastIndexOf(String Value, Integer StartIndex)

 

Function LastIndexOf(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOfAny (array of Char): Int32

Returns the last index of any of these characters, or -1 if none can be found.

 

method LastIndexOfAny(AnyOf: array of Char): Int32

 

Int32 LastIndexOfAny(Char[] AnyOf)

 

func LastIndexOfAny(_ AnyOf: Char...) -> Int32

 

Integer LastIndexOfAny(Char[] AnyOf)

 

Function LastIndexOfAny(AnyOf As Char()) As Int32

Parameters:

  • AnyOf:

LastIndexOfAny (array of Char, Integer): Integer Cooper, Island, Toffee, ToffeeV2

Returns the last index of any of these characters, starting at StartIndex, or -1 if none can be found.

 

method LastIndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 LastIndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func LastIndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Integer LastIndexOfAny(Char[] AnyOf, Integer StartIndex)

 

Function LastIndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

LevenshteinDistanceTo (not nullable String): Integer Cooper, Island, Toffee, ToffeeV2

Returns the levenshtein distance to another string, essentially returns the number of differences between these strings, returning the nr of inserts, deletions and replacements.

 

method LevenshteinDistanceTo(aOther: not nullable String): Int32

 

Int32 LevenshteinDistanceTo(String! aOther)

 

func LevenshteinDistanceTo(_ aOther: String) -> Int32

 

Integer LevenshteinDistanceTo(String aOther)

 

Function LevenshteinDistanceTo(aOther As String) As Int32

Parameters:

  • aOther:

PadEnd (Int32): not nullable String

Pads the string so it's at least total width, with whitespaces.

 

method PadEnd(TotalWidth: Int32): not nullable String

 

String! PadEnd(Int32 TotalWidth)

 

func PadEnd(_ TotalWidth: Int32) -> String

 

String PadEnd(Integer TotalWidth)

 

Function PadEnd(TotalWidth As Int32) As String

Parameters:

  • TotalWidth:

PadEnd (Integer, Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Pads the string so it's at least total width, with padding characters.

 

method PadEnd(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadEnd(Int32 TotalWidth, Char PaddingChar)

 

func PadEnd(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

String PadEnd(Integer TotalWidth, Char PaddingChar)

 

Function PadEnd(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

PadStart (Int32): not nullable String

Pads the string so it's at least total width, with whitespaces.

 

method PadStart(TotalWidth: Int32): not nullable String

 

String! PadStart(Int32 TotalWidth)

 

func PadStart(_ TotalWidth: Int32) -> String

 

String PadStart(Integer TotalWidth)

 

Function PadStart(TotalWidth As Int32) As String

Parameters:

  • TotalWidth:

PadStart (Integer, Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Pads the string so it's at least total width, with padding characters.

 

method PadStart(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadStart(Int32 TotalWidth, Char PaddingChar)

 

func PadStart(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

String PadStart(Integer TotalWidth, Char PaddingChar)

 

Function PadStart(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

Remove (Int32, Int32): not nullable String

Removes a range from this string, returning the new stirng.

 

method Remove(aStartIndex: Int32; aLength: Int32): not nullable String

 

String! Remove(Int32 aStartIndex, Int32 aLength)

 

func Remove(_ aStartIndex: Int32, _ aLength: Int32) -> String

 

String Remove(Integer aStartIndex, Integer aLength)

 

Function Remove(aStartIndex As Int32, aLength As Int32) As String

Parameters:

  • aStartIndex:
  • aLength:

Remove (String): not nullable String

Removes a range from this string, returning the new stirng.

 

method Remove(OldValue: String): not nullable String

 

String! Remove(String OldValue)

 

func Remove(_ OldValue: String) -> String

 

String Remove(String OldValue)

 

Function Remove(OldValue As String) As String

Parameters:

  • OldValue:

Replace (Int32, Int32, String): not nullable String

Replace a range in this string with new substring.

 

method Replace(aStartIndex: Int32; aLength: Int32; aNewValue: String): not nullable String

 

String! Replace(Int32 aStartIndex, Int32 aLength, String aNewValue)

 

func Replace(_ aStartIndex: Int32, _ aLength: Int32, _ aNewValue: String) -> String

 

String Replace(Integer aStartIndex, Integer aLength, String aNewValue)

 

Function Replace(aStartIndex As Int32, aLength As Int32, aNewValue As String) As String

Parameters:

  • aStartIndex:
  • aLength:
  • aNewValue:

Replace (String, String): not nullable String

Replace all occurances of a string with another value.

 

method Replace(OldValue: String; NewValue: String): not nullable String

 

String! Replace(String OldValue, String NewValue)

 

func Replace(_ OldValue: String, _ NewValue: String) -> String

 

String Replace(String OldValue, String NewValue)

 

Function Replace(OldValue As String, NewValue As String) As String

Parameters:

  • OldValue:
  • NewValue:

Split (not nullable String, Boolean): not nullable ImmutableList<String> Cooper, Island, Toffee, ToffeeV2

Split this string on aSeparator.

 

method Split(aSeparator: not nullable String; aRemoveEmptyEntries: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! Split(String! aSeparator, Boolean aRemoveEmptyEntries)

 

func Split(_ aSeparator: String, _ aRemoveEmptyEntries: Boolean) -> ImmutableList<String>

 

ImmutableList<String> Split(String aSeparator, Boolean aRemoveEmptyEntries)

 

Function Split(aSeparator As String, aRemoveEmptyEntries As Boolean) As ImmutableList<String>

Parameters:

  • aSeparator:
  • aRemoveEmptyEntries:

SplitAtFirstOccurrenceOf (not nullable String): not nullable ImmutableList<String> Cooper, Island, Toffee, ToffeeV2

Split this string but at most once at the first occurance of aSeperator.

 

method SplitAtFirstOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtFirstOccurrenceOf(String! aSeparator)

 

func SplitAtFirstOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

ImmutableList<String> SplitAtFirstOccurrenceOf(String aSeparator)

 

Function SplitAtFirstOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

SplitAtLastOccurrenceOf (not nullable String): not nullable ImmutableList<String> Cooper, Island, Toffee, ToffeeV2

Split this string but at most once at the last occurance of aSeperator.

 

method SplitAtLastOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtLastOccurrenceOf(String! aSeparator)

 

func SplitAtLastOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

ImmutableList<String> SplitAtLastOccurrenceOf(String aSeparator)

 

Function SplitAtLastOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

StartIndexOfJoinedUnicodeCharacterAtIndex (Integer): Integer Cooper, Island, Toffee, ToffeeV2

 

method StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex: Int32): Int32

 

Int32 StartIndexOfJoinedUnicodeCharacterAtIndex(Int32 aIndex)

 

func StartIndexOfJoinedUnicodeCharacterAtIndex(_ aIndex: Int32) -> Int32

 

Integer StartIndexOfJoinedUnicodeCharacterAtIndex(Integer aIndex)

 

Function StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

StartsWith (Char): Boolean

True if this string starts with Value

 

method StartsWith(Value: Char): Boolean

 

Boolean StartsWith(Char Value)

 

func StartsWith(_ Value: Char) -> Boolean

 

Boolean StartsWith(Char Value)

 

Function StartsWith(Value As Char) As Boolean

Parameters:

  • Value:

StartsWith (String): Boolean

True if this string starts with Value

 

method StartsWith(Value: String): Boolean

 

Boolean StartsWith(String Value)

 

func StartsWith(_ Value: String) -> Boolean

 

Boolean StartsWith(String Value)

 

Function StartsWith(Value As String) As Boolean

Parameters:

  • Value:

StartsWith (String, Boolean): Boolean Cooper, Island, Toffee, ToffeeV2

True if this string starts with Value

 

method StartsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean StartsWith(String Value, Boolean IgnoreCase)

 

func StartsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Boolean StartsWith(String Value, Boolean IgnoreCase)

 

Function StartsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

Substring (Int32): not nullable String

Returns a substring of this string, starting at StartIndex.

 

method Substring(StartIndex: Int32): not nullable String

 

String! Substring(Int32 StartIndex)

 

func Substring(_ StartIndex: Int32) -> String

 

String Substring(Integer StartIndex)

 

Function Substring(StartIndex As Int32) As String

Parameters:

  • StartIndex:

Substring (Int32, Int32): not nullable String

Returns a substring from StartIndex for aLength of this string.

 

method Substring(StartIndex: Int32; aLength: Int32): not nullable String

 

String! Substring(Int32 StartIndex, Int32 aLength)

 

func Substring(_ StartIndex: Int32, _ aLength: Int32) -> String

 

String Substring(Integer StartIndex, Integer aLength)

 

Function Substring(StartIndex As Int32, aLength As Int32) As String

Parameters:

  • StartIndex:
  • aLength:

SubstringFromFirstOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, starting at the first occurance of aSeperator.

 

method SubstringFromFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromFirstOccurrenceOf(String! aSeparator)

 

func SubstringFromFirstOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringFromFirstOccurrenceOf(String aSeparator)

 

Function SubstringFromFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringFromLastOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, starting at the last occurance of aSeperator.

 

method SubstringFromLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromLastOccurrenceOf(String! aSeparator)

 

func SubstringFromLastOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringFromLastOccurrenceOf(String aSeparator)

 

Function SubstringFromLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToFirstOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, stopping at the first occurance of aSeperator.

 

method SubstringToFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToFirstOccurrenceOf(String! aSeparator)

 

func SubstringToFirstOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringToFirstOccurrenceOf(String aSeparator)

 

Function SubstringToFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToLastOccurrenceOf (not nullable String): not nullable String Cooper, Island, Toffee, ToffeeV2

Returns a substring of this string, stopping at the last occurance of aSeperator.

 

method SubstringToLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToLastOccurrenceOf(String! aSeparator)

 

func SubstringToLastOccurrenceOf(_ aSeparator: String) -> String

 

String SubstringToLastOccurrenceOf(String aSeparator)

 

Function SubstringToLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

ToByteArray Cooper, Island, Toffee, ToffeeV2

Converts this string to utf8.

 

method ToByteArray: not nullable array of Byte

 

Byte[]! ToByteArray()

 

func ToByteArray() -> Byte...

 

Byte[] ToByteArray()

 

Function ToByteArray() As Byte()

ToByteArray (not nullable Encoding): not nullable array of Byte Cooper, Island, Toffee, ToffeeV2

Convert this string to the given encoding.

 

method ToByteArray(aEncoding: not nullable Encoding): not nullable array of Byte

 

Byte[]! ToByteArray(Encoding! aEncoding)

 

func ToByteArray(_ aEncoding: Encoding) -> Byte...

 

Byte[] ToByteArray(Encoding aEncoding)

 

Function ToByteArray(aEncoding As Encoding) As Byte()

Parameters:

  • aEncoding:

ToCharArray Cooper, Island, Toffee, ToffeeV2

Convert this string to an array.

 

method ToCharArray: not nullable array of Char

 

Char[]! ToCharArray()

 

func ToCharArray() -> Char...

 

Char[] ToCharArray()

 

Function ToCharArray() As Char()

ToHexString Cooper, Island, Toffee, ToffeeV2

Convert this string to he.x

 

method ToHexString: String

 

String ToHexString()

 

func ToHexString() -> String

 

String ToHexString()

 

Function ToHexString() As String

ToLower

Lowrcase this string in the default locale.

 

method ToLower: not nullable String

 

String! ToLower()

 

func ToLower() -> String

 

String ToLower()

 

Function ToLower() As String

ToLower (Locale): not nullable String

Lowrcase this string in the given locale.

 

method ToLower(aLocale: Locale): not nullable String

 

String! ToLower(Locale aLocale)

 

func ToLower(_ aLocale: Locale) -> String

 

String ToLower(Locale aLocale)

 

Function ToLower(aLocale As Locale) As String

Parameters:

  • aLocale:

ToLowerInvariant

Lowrcase this string in the invariant locale.

 

method ToLowerInvariant: not nullable String

 

String! ToLowerInvariant()

 

func ToLowerInvariant() -> String

 

String ToLowerInvariant()

 

Function ToLowerInvariant() As String

ToPathRelativeToFolder (not nullable String) Always(Boolean): String Cooper, Island, Toffee, ToffeeV2

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Always(aAlways: Boolean): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Always(Boolean aAlways)

 

// Toffee
func ToPathRelativeToFolder(_ aBasePath: String, Always aAlways: Boolean) -> String
// ToffeeV2
func ToPathRelativeToFolder(_ aBasePath: String, Always aAlways: Boolean) -> String?

 

String ToPathRelativeToFolder(String aBasePath) Always(Boolean aAlways)

 

Function ToPathRelativeToFolder(aBasePath As String) Always(aAlways As Boolean) As String?

Parameters:

  • aBasePath:
  • aAlways:

ToPathRelativeToFolder (not nullable String) Threshold(Integer): String Cooper, Island, Toffee, ToffeeV2

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Threshold(aThreshold: Int32): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Threshold(Int32 aThreshold)

 

// Toffee
func ToPathRelativeToFolder(_ aBasePath: String, Threshold aThreshold: Int32) -> String
// ToffeeV2
func ToPathRelativeToFolder(_ aBasePath: String, Threshold aThreshold: Int32) -> String?

 

String ToPathRelativeToFolder(String aBasePath) Threshold(Integer aThreshold)

 

Function ToPathRelativeToFolder(aBasePath As String) Threshold(aThreshold As Int32) As String?

Parameters:

  • aBasePath:
  • aThreshold:

ToPathRelativeToFolder (not nullable String): String Cooper, Island, Toffee, ToffeeV2

 

method ToPathRelativeToFolder(aBasePath: not nullable String): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath)

 

// Toffee
func ToPathRelativeToFolder(_ aBasePath: String) -> String
// ToffeeV2
func ToPathRelativeToFolder(_ aBasePath: String) -> String?

 

String ToPathRelativeToFolder(String aBasePath)

 

Function ToPathRelativeToFolder(aBasePath As String) As String?

Parameters:

  • aBasePath:

ToUnicodeCharacters Cooper, Island, Toffee, ToffeeV2

Convert this string to utf32 unicode characters.

 

method ToUnicodeCharacters: ImmutableList<UnicodeCharacter>

 

ImmutableList<UnicodeCharacter> ToUnicodeCharacters()

 

func ToUnicodeCharacters() -> ImmutableList<UnicodeCharacter>

 

ImmutableList<UnicodeCharacter> ToUnicodeCharacters()

 

Function ToUnicodeCharacters() As ImmutableList<UnicodeCharacter>

ToUnicodeCodePointIndices Cooper, Island, Toffee, ToffeeV2

Convert this string to utf32 unicode characters.

 

method ToUnicodeCodePointIndices: ImmutableList<Int32>

 

ImmutableList<Int32> ToUnicodeCodePointIndices()

 

// Toffee
func ToUnicodeCodePointIndices() -> ImmutableList<nullable Int32>
// ToffeeV2
func ToUnicodeCodePointIndices() -> ImmutableList<Int32>

 

ImmutableList<Integer> ToUnicodeCodePointIndices()

 

Function ToUnicodeCodePointIndices() As ImmutableList<Int32>

ToUnicodeCodePoints Cooper

Convert this string to utf32 unicode characters.

 

method ToUnicodeCodePoints: ImmutableList<UnsignedInteger>

 

ImmutableList<UnsignedInteger> ToUnicodeCodePoints()

 

func ToUnicodeCodePoints() -> ImmutableList<UnsignedInteger>

 

ImmutableList<UnsignedInteger> ToUnicodeCodePoints()

 

Function ToUnicodeCodePoints() As ImmutableList<UnsignedInteger>

ToUnicodeCodePoints Island, Toffee, ToffeeV2

 

method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>

 

ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()

 

// Toffee
func ToUnicodeCodePoints() -> ImmutableList<nullable UnicodeCodePoint>
// ToffeeV2
func ToUnicodeCodePoints() -> ImmutableList<UnicodeCodePoint>

 

Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>

ToUpper

Uppercase this string in the default locale.

 

method ToUpper: not nullable String

 

String! ToUpper()

 

func ToUpper() -> String

 

String ToUpper()

 

Function ToUpper() As String

ToUpper (Locale): not nullable String

Uppercase this string in the given locale.

 

method ToUpper(aLocale: Locale): not nullable String

 

String! ToUpper(Locale aLocale)

 

func ToUpper(_ aLocale: Locale) -> String

 

String ToUpper(Locale aLocale)

 

Function ToUpper(aLocale As Locale) As String

Parameters:

  • aLocale:

ToUpperInvariant

Uppercase this string in the invariant locale.

 

method ToUpperInvariant: not nullable String

 

String! ToUpperInvariant()

 

func ToUpperInvariant() -> String

 

String ToUpperInvariant()

 

Function ToUpperInvariant() As String

Trim

Trim this string, on both ends with all unicode whitespace characters.

 

method Trim: not nullable String

 

String! Trim()

 

func Trim() -> String

 

String Trim()

 

Function Trim() As String

Trim (array of Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Trim this string, on both ends with the given characters.

 

method Trim(TrimChars: array of Char): not nullable String

 

String! Trim(Char[] TrimChars)

 

func Trim(_ TrimChars: Char...) -> String

 

String Trim(Char[] TrimChars)

 

Function Trim(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimEnd

Trim this string, at the end with all unicode whitespace characters.

 

method TrimEnd: not nullable String

 

String! TrimEnd()

 

func TrimEnd() -> String

 

String TrimEnd()

 

Function TrimEnd() As String

TrimEnd (array of Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Trim this string, at the end with the given characters.

 

method TrimEnd(TrimChars: array of Char): not nullable String

 

String! TrimEnd(Char[] TrimChars)

 

func TrimEnd(_ TrimChars: Char...) -> String

 

String TrimEnd(Char[] TrimChars)

 

Function TrimEnd(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimNewLineCharacters

Removes newline characters at the end/start of the string.

 

method TrimNewLineCharacters: not nullable String

 

String! TrimNewLineCharacters()

 

func TrimNewLineCharacters() -> String

 

String TrimNewLineCharacters()

 

Function TrimNewLineCharacters() As String

TrimStart

Trim this string, at the start with all unicode whitespace characters.

 

method TrimStart: not nullable String

 

String! TrimStart()

 

func TrimStart() -> String

 

String TrimStart()

 

Function TrimStart() As String

TrimStart (array of Char): not nullable String Cooper, Island, Toffee, ToffeeV2

Trim this string, at the start with the given characters.

 

method TrimStart(TrimChars: array of Char): not nullable String

 

String! TrimStart(Char[] TrimChars)

 

func TrimStart(_ TrimChars: Char...) -> String

 

String TrimStart(Char[] TrimChars)

 

Function TrimStart(TrimChars As Char()) As String

Parameters:

  • TrimChars:

UnicodeCodePointAtIndex (Integer): UnicodeCodePoint Cooper, Island, Toffee, ToffeeV2

Returns the unicode code point at a given index.

 

method UnicodeCodePointAtIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointAtIndex(Int32 aIndex)

 

func UnicodeCodePointAtIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointAtIndex(Integer aIndex)

 

Function UnicodeCodePointAtIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

UnicodeCodePointBeforeIndex (Integer): UnicodeCodePoint Cooper, Island, Toffee, ToffeeV2

Returns the unicode code point before a given index.

 

method UnicodeCodePointBeforeIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointBeforeIndex(Int32 aIndex)

 

func UnicodeCodePointBeforeIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointBeforeIndex(Integer aIndex)

 

Function UnicodeCodePointBeforeIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

AppendPath (array of String): nullable String .NET, .NET Standard 2.0

 

method AppendPath(params aPaths: array of String): nullable String

 

String? AppendPath(params String[] aPaths)

 

func AppendPath(_ aPaths: String...) -> String?

 

Function AppendPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendUnixPath (array of String): nullable String .NET, .NET Standard 2.0

 

method AppendUnixPath(params aPaths: array of String): nullable String

 

String? AppendUnixPath(params String[] aPaths)

 

func AppendUnixPath(_ aPaths: String...) -> String?

 

Function AppendUnixPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

AppendWindowsPath (array of String): nullable String .NET, .NET Standard 2.0

 

method AppendWindowsPath(params aPaths: array of String): nullable String

 

String? AppendWindowsPath(params String[] aPaths)

 

func AppendWindowsPath(_ aPaths: String...) -> String?

 

Function AppendWindowsPath(ParamArray aPaths As String()) As String?

Parameters:

  • aPaths:

Capitalize .NET, .NET Standard 2.0

 

method Capitalize: not nullable String

 

String! Capitalize()

 

func Capitalize() -> String

 

Function Capitalize() As String

Capitalize (Locale): not nullable String .NET, .NET Standard 2.0

 

method Capitalize(aLocale: Locale): not nullable String

 

String! Capitalize(Locale aLocale)

 

func Capitalize(_ aLocale: Locale) -> String

 

Function Capitalize(aLocale As Locale) As String

Parameters:

  • aLocale:

CapitalizeInvariant .NET, .NET Standard 2.0

 

method CapitalizeInvariant: not nullable String

 

String! CapitalizeInvariant()

 

func CapitalizeInvariant() -> String

 

Function CapitalizeInvariant() As String

CompareTo (String): Int32 .NET, .NET Standard 2.0

 

method CompareTo(Value: String): Int32

 

Int32 CompareTo(String Value)

 

func CompareTo(_ Value: String) -> Int32

 

Function CompareTo(Value As String) As Int32

Parameters:

  • Value:

CompareToIgnoreCase (String): Int32 .NET, .NET Standard 2.0

 

method CompareToIgnoreCase(Value: String): Int32

 

Int32 CompareToIgnoreCase(String Value)

 

func CompareToIgnoreCase(_ Value: String) -> Int32

 

Function CompareToIgnoreCase(Value As String) As Int32

Parameters:

  • Value:

ContainsAny (array of Char): Boolean .NET, .NET Standard 2.0

 

method ContainsAny(AnyOf: array of Char): Boolean

 

Boolean ContainsAny(Char[] AnyOf)

 

func ContainsAny(_ AnyOf: Char...) -> Boolean

 

Function ContainsAny(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsAny (array of Char, Int32): Boolean .NET, .NET Standard 2.0

 

method ContainsAny(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsAny(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsAny(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Function ContainsAny(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

ContainsAnyNonASCII .NET, .NET Standard 2.0

 

method ContainsAnyNonASCII: Boolean

 

Boolean ContainsAnyNonASCII()

 

func ContainsAnyNonASCII() -> Boolean

 

Function ContainsAnyNonASCII() As Boolean

ContainsAnyNonASCII (Int32): Boolean .NET, .NET Standard 2.0

 

method ContainsAnyNonASCII(aStartIndex: Int32): Boolean

 

Boolean ContainsAnyNonASCII(Int32 aStartIndex)

 

func ContainsAnyNonASCII(_ aStartIndex: Int32) -> Boolean

 

Function ContainsAnyNonASCII(aStartIndex As Int32) As Boolean

Parameters:

  • aStartIndex:

ContainsOnly (array of Char): Boolean .NET, .NET Standard 2.0

 

method ContainsOnly(AnyOf: array of Char): Boolean

 

Boolean ContainsOnly(Char[] AnyOf)

 

func ContainsOnly(_ AnyOf: Char...) -> Boolean

 

Function ContainsOnly(AnyOf As Char()) As Boolean

Parameters:

  • AnyOf:

ContainsOnly (array of Char, Int32): Boolean .NET, .NET Standard 2.0

 

method ContainsOnly(AnyOf: array of Char; aStartIndex: Int32): Boolean

 

Boolean ContainsOnly(Char[] AnyOf, Int32 aStartIndex)

 

func ContainsOnly(_ AnyOf: Char..., _ aStartIndex: Int32) -> Boolean

 

Function ContainsOnly(AnyOf As Char(), aStartIndex As Int32) As Boolean

Parameters:

  • AnyOf:
  • aStartIndex:

EndsWith (String, Boolean): Boolean .NET, .NET Standard 2.0

 

method EndsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean EndsWith(String Value, Boolean IgnoreCase)

 

func EndsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Function EndsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

Equals (String): Boolean .NET, .NET Standard 2.0

 

method Equals(Value: String): Boolean

 

Boolean Equals(String Value)

 

func Equals(_ Value: String) -> Boolean

 

Function Equals(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCase (String): Boolean .NET, .NET Standard 2.0

 

method EqualsIgnoringCase(Value: String): Boolean

 

Boolean EqualsIgnoringCase(String Value)

 

func EqualsIgnoringCase(_ Value: String) -> Boolean

 

Function EqualsIgnoringCase(Value As String) As Boolean

Parameters:

  • Value:

EqualsIgnoringCaseInvariant (String): Boolean .NET, .NET Standard 2.0

 

method EqualsIgnoringCaseInvariant(Value: String): Boolean

 

Boolean EqualsIgnoringCaseInvariant(String Value)

 

func EqualsIgnoringCaseInvariant(_ Value: String) -> Boolean

 

Function EqualsIgnoringCaseInvariant(Value As String) As Boolean

Parameters:

  • Value:

FuzzyMatches (not nullable String): Boolean .NET, .NET Standard 2.0

 

method FuzzyMatches(aHaystack: not nullable String): Boolean

 

Boolean FuzzyMatches(String! aHaystack)

 

func FuzzyMatches(_ aHaystack: String) -> Boolean

 

Function FuzzyMatches(aHaystack As String) As Boolean

Parameters:

  • aHaystack:

GetSequence .NET, .NET Standard 2.0

 

method GetSequence: IEnumerable<Char>

 

IEnumerable<Char> GetSequence()

 

func GetSequence() -> IEnumerable<Char>

 

Function GetSequence() As IEnumerable<Char>

IndexAfterJoinedUnicodeCharacterCoveringIndex (Int32): Int32 .NET, .NET Standard 2.0

 

method IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex: Int32): Int32

 

Int32 IndexAfterJoinedUnicodeCharacterCoveringIndex(Int32 aIndex)

 

func IndexAfterJoinedUnicodeCharacterCoveringIndex(_ aIndex: Int32) -> Int32

 

Function IndexAfterJoinedUnicodeCharacterCoveringIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

IndexOfAny (array of Char, Int32): Int32 .NET, .NET Standard 2.0

 

method IndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 IndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func IndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Function IndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

IsIndexInsideOfAJoinedUnicodeCharacter (Int32): Boolean .NET, .NET Standard 2.0

 

method IsIndexInsideOfAJoinedUnicodeCharacter(aIndex: Int32): Boolean

 

Boolean IsIndexInsideOfAJoinedUnicodeCharacter(Int32 aIndex)

 

func IsIndexInsideOfAJoinedUnicodeCharacter(_ aIndex: Int32) -> Boolean

 

Function IsIndexInsideOfAJoinedUnicodeCharacter(aIndex As Int32) As Boolean

Parameters:

  • aIndex:

LastIndexOf (Char, Int32): Int32 .NET, .NET Standard 2.0

 

method LastIndexOf(Value: Char; StartIndex: Int32): Int32

 

Int32 LastIndexOf(Char Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: Char, _ StartIndex: Int32) -> Int32

 

Function LastIndexOf(Value As Char, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOf (String, Int32): Int32 .NET, .NET Standard 2.0

 

method LastIndexOf(Value: String; StartIndex: Int32): Int32

 

Int32 LastIndexOf(String Value, Int32 StartIndex)

 

func LastIndexOf(_ Value: String, _ StartIndex: Int32) -> Int32

 

Function LastIndexOf(Value As String, StartIndex As Int32) As Int32

Parameters:

  • Value:
  • StartIndex:

LastIndexOfAny (array of Char, Int32): Int32 .NET, .NET Standard 2.0

 

method LastIndexOfAny(AnyOf: array of Char; StartIndex: Int32): Int32

 

Int32 LastIndexOfAny(Char[] AnyOf, Int32 StartIndex)

 

func LastIndexOfAny(_ AnyOf: Char..., _ StartIndex: Int32) -> Int32

 

Function LastIndexOfAny(AnyOf As Char(), StartIndex As Int32) As Int32

Parameters:

  • AnyOf:
  • StartIndex:

LevenshteinDistanceTo (not nullable String): Int32 .NET, .NET Standard 2.0

 

method LevenshteinDistanceTo(aOther: not nullable String): Int32

 

Int32 LevenshteinDistanceTo(String! aOther)

 

func LevenshteinDistanceTo(_ aOther: String) -> Int32

 

Function LevenshteinDistanceTo(aOther As String) As Int32

Parameters:

  • aOther:

PadEnd (Int32, Char): not nullable String .NET, .NET Standard 2.0

 

method PadEnd(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadEnd(Int32 TotalWidth, Char PaddingChar)

 

func PadEnd(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

Function PadEnd(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

PadStart (Int32, Char): not nullable String .NET, .NET Standard 2.0

 

method PadStart(TotalWidth: Int32; PaddingChar: Char): not nullable String

 

String! PadStart(Int32 TotalWidth, Char PaddingChar)

 

func PadStart(_ TotalWidth: Int32, _ PaddingChar: Char) -> String

 

Function PadStart(TotalWidth As Int32, PaddingChar As Char) As String

Parameters:

  • TotalWidth:
  • PaddingChar:

Split (not nullable String, Boolean): not nullable ImmutableList<String> .NET, .NET Standard 2.0

 

method Split(aSeparator: not nullable String; aRemoveEmptyEntries: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! Split(String! aSeparator, Boolean aRemoveEmptyEntries)

 

func Split(_ aSeparator: String, _ aRemoveEmptyEntries: Boolean) -> ImmutableList<String>

 

Function Split(aSeparator As String, aRemoveEmptyEntries As Boolean) As ImmutableList<String>

Parameters:

  • aSeparator:
  • aRemoveEmptyEntries:

SplitAtFirstOccurrenceOf (not nullable String): not nullable ImmutableList<String> .NET, .NET Standard 2.0

 

method SplitAtFirstOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtFirstOccurrenceOf(String! aSeparator)

 

func SplitAtFirstOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

Function SplitAtFirstOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

SplitAtLastOccurrenceOf (not nullable String): not nullable ImmutableList<String> .NET, .NET Standard 2.0

 

method SplitAtLastOccurrenceOf(aSeparator: not nullable String): not nullable ImmutableList<String>

 

ImmutableList<String>! SplitAtLastOccurrenceOf(String! aSeparator)

 

func SplitAtLastOccurrenceOf(_ aSeparator: String) -> ImmutableList<String>

 

Function SplitAtLastOccurrenceOf(aSeparator As String) As ImmutableList<String>

Parameters:

  • aSeparator:

StartIndexOfJoinedUnicodeCharacterAtIndex (Int32): Int32 .NET, .NET Standard 2.0

 

method StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex: Int32): Int32

 

Int32 StartIndexOfJoinedUnicodeCharacterAtIndex(Int32 aIndex)

 

func StartIndexOfJoinedUnicodeCharacterAtIndex(_ aIndex: Int32) -> Int32

 

Function StartIndexOfJoinedUnicodeCharacterAtIndex(aIndex As Int32) As Int32

Parameters:

  • aIndex:

StartsWith (String, Boolean): Boolean .NET, .NET Standard 2.0

 

method StartsWith(Value: String; IgnoreCase: Boolean): Boolean

 

Boolean StartsWith(String Value, Boolean IgnoreCase)

 

func StartsWith(_ Value: String, _ IgnoreCase: Boolean) -> Boolean

 

Function StartsWith(Value As String, IgnoreCase As Boolean) As Boolean

Parameters:

  • Value:
  • IgnoreCase:

SubstringFromFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringFromFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromFirstOccurrenceOf(String! aSeparator)

 

func SubstringFromFirstOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringFromFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringFromLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringFromLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringFromLastOccurrenceOf(String! aSeparator)

 

func SubstringFromLastOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringFromLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringToFirstOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToFirstOccurrenceOf(String! aSeparator)

 

func SubstringToFirstOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringToFirstOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

SubstringToLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Standard 2.0

 

method SubstringToLastOccurrenceOf(aSeparator: not nullable String): not nullable String

 

String! SubstringToLastOccurrenceOf(String! aSeparator)

 

func SubstringToLastOccurrenceOf(_ aSeparator: String) -> String

 

Function SubstringToLastOccurrenceOf(aSeparator As String) As String

Parameters:

  • aSeparator:

ToByteArray .NET, .NET Standard 2.0

 

method ToByteArray: not nullable array of Byte

 

Byte[]! ToByteArray()

 

func ToByteArray() -> Byte...

 

Function ToByteArray() As Byte()

ToByteArray (not nullable Encoding): not nullable array of Byte .NET, .NET Standard 2.0

 

method ToByteArray(aEncoding: not nullable Encoding): not nullable array of Byte

 

Byte[]! ToByteArray(Encoding! aEncoding)

 

func ToByteArray(_ aEncoding: Encoding) -> Byte...

 

Function ToByteArray(aEncoding As Encoding) As Byte()

Parameters:

  • aEncoding:

ToCharArray .NET, .NET Standard 2.0

 

method ToCharArray: not nullable array of Char

 

Char[]! ToCharArray()

 

func ToCharArray() -> Char...

 

Function ToCharArray() As Char()

ToHexString .NET, .NET Standard 2.0

 

method ToHexString: String

 

String ToHexString()

 

func ToHexString() -> String

 

Function ToHexString() As String

ToPathRelativeToFolder (not nullable String): nullable String .NET, .NET Standard 2.0

 

method ToPathRelativeToFolder(aBasePath: not nullable String): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath)

 

func ToPathRelativeToFolder(_ aBasePath: String) -> String?

 

Function ToPathRelativeToFolder(aBasePath As String) As String?

Parameters:

  • aBasePath:

ToPathRelativeToFolder (not nullable String) Always(Boolean): nullable String .NET, .NET Standard 2.0

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Always(aAlways: Boolean): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Always(Boolean aAlways)

 

func ToPathRelativeToFolder(_ aBasePath: String, Always aAlways: Boolean) -> String?

 

Function ToPathRelativeToFolder(aBasePath As String) Always(aAlways As Boolean) As String?

Parameters:

  • aBasePath:
  • aAlways:

ToPathRelativeToFolder (not nullable String) Threshold(Int32): nullable String .NET, .NET Standard 2.0

 

method ToPathRelativeToFolder(aBasePath: not nullable String) Threshold(aThreshold: Int32): nullable String

 

String? ToPathRelativeToFolder(String! aBasePath) Threshold(Int32 aThreshold)

 

func ToPathRelativeToFolder(_ aBasePath: String, Threshold aThreshold: Int32) -> String?

 

Function ToPathRelativeToFolder(aBasePath As String) Threshold(aThreshold As Int32) As String?

Parameters:

  • aBasePath:
  • aThreshold:

ToUnicodeCharacters .NET, .NET Standard 2.0

 

method ToUnicodeCharacters: ImmutableList<UnicodeCharacter>

 

ImmutableList<UnicodeCharacter> ToUnicodeCharacters()

 

func ToUnicodeCharacters() -> ImmutableList<UnicodeCharacter>

 

Function ToUnicodeCharacters() As ImmutableList<UnicodeCharacter>

ToUnicodeCodePointIndices .NET, .NET Standard 2.0

 

method ToUnicodeCodePointIndices: ImmutableList<Int32>

 

ImmutableList<Int32> ToUnicodeCodePointIndices()

 

func ToUnicodeCodePointIndices() -> ImmutableList<Int32>

 

Function ToUnicodeCodePointIndices() As ImmutableList<Int32>

ToUnicodeCodePoints .NET, .NET Standard 2.0

 

method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>

 

ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()

 

func ToUnicodeCodePoints() -> ImmutableList<UnicodeCodePoint>

 

Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>

Trim (array of Char): not nullable String .NET, .NET Standard 2.0

 

method Trim(TrimChars: array of Char): not nullable String

 

String! Trim(Char[] TrimChars)

 

func Trim(_ TrimChars: Char...) -> String

 

Function Trim(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimEnd (array of Char): not nullable String .NET, .NET Standard 2.0

 

method TrimEnd(TrimChars: array of Char): not nullable String

 

String! TrimEnd(Char[] TrimChars)

 

func TrimEnd(_ TrimChars: Char...) -> String

 

Function TrimEnd(TrimChars As Char()) As String

Parameters:

  • TrimChars:

TrimStart (array of Char): not nullable String .NET, .NET Standard 2.0

 

method TrimStart(TrimChars: array of Char): not nullable String

 

String! TrimStart(Char[] TrimChars)

 

func TrimStart(_ TrimChars: Char...) -> String

 

Function TrimStart(TrimChars As Char()) As String

Parameters:

  • TrimChars:

UnicodeCodePointAtIndex (Int32): UnicodeCodePoint .NET, .NET Standard 2.0

 

method UnicodeCodePointAtIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointAtIndex(Int32 aIndex)

 

func UnicodeCodePointAtIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

Function UnicodeCodePointAtIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex:

UnicodeCodePointBeforeIndex (Int32): UnicodeCodePoint .NET, .NET Standard 2.0

 

method UnicodeCodePointBeforeIndex(aIndex: Int32): UnicodeCodePoint

 

UnicodeCodePoint UnicodeCodePointBeforeIndex(Int32 aIndex)

 

func UnicodeCodePointBeforeIndex(_ aIndex: Int32) -> UnicodeCodePoint

 

Function UnicodeCodePointBeforeIndex(aIndex As Int32) As UnicodeCodePoint

Parameters:

  • aIndex: