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 Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
- Mapped to: PlatformString
Creates a string with Value as content, in the encoding given in Encoding.
Parameters:
- aBytes:
- aEncoding:
Creates a string with aChar repeated aCount times.
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<NSNumber<UnicodeCodePoint>>) ToffeeV2
init(_ aCodePoints: List<NSNumber<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 Core 6.0, .NET Standard 2.0, Island, Toffee
Creates a string with aCodePoints as content.
constructor(aCodePoints: List<UnicodeCodePoint>)
String(List<UnicodeCodePoint> aCodePoints)
init(_ aCodePoints: List<nullable 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:
Creates a string with Value as content.
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>( As +)
Parameters:
- :
Parameters:
- aPaths:
Parameters:
- aPaths:
Parameters:
- aPaths:
Parameters:
- aPaths:
Parameters:
- aPaths:
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
Uppercase this with the given locale.
Parameters:
- aLocale:
Capitalize .NET, .NET Core 6.0, .NET Standard 2.0
method Capitalize: not nullable String
String! Capitalize()
func Capitalize() -> String
Function Capitalize() 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 Core 6.0, .NET Standard 2.0
method CapitalizeInvariant: not nullable String
String! CapitalizeInvariant()
func CapitalizeInvariant() -> String
Function CapitalizeInvariant() As String
Chars
// .NET, .NET Standard 2.0
property Chars[aIndex: Index]: Char read;
// .NET Core 6.0
property Chars[aIndex: Index]: Char read;
// Island
property Chars[aIndex: Index]: Char read;
// .NET, .NET Standard 2.0
Char Chars[Index aIndex] { get; }
// .NET Core 6.0
Char Chars[Index aIndex] { get; }
// Island
Char Chars[Index aIndex] { get; }
// .NET, .NET Standard 2.0
subscript Chars(_ aIndex: Index) -> Char { get{} }
// .NET Core 6.0, ToffeeV2
subscript Chars(_ aIndex: Index) -> Char { get{} }
// Island
subscript Chars(_ aIndex: Index) -> Char { get{} }
// Toffee
subscript Chars(_ aIndex: Index) -> Char { get{} }
Char Chars[Index aIndex] { __get; }
Chars
Accessors for characters in the string
Chars
Compare
Compare a string, returns 0 if the same, -1 if less, 1 if greater.
Parameters:
- Value1:
- Value2:
compare this string to another string.
Parameters:
- Value:
Parameters:
- Value:
Compare a string, case insensitive, returns 0 if the same, -1 if less, 1 if greater.
Parameters:
- Value:
Parameters:
- Value:
Contains
Returns true if a string contains another string.
Parameters:
- Value:
Returns true if the string contains anf of the AnyOf characters.
Parameters:
- AnyOf:
Returns true if the string contains anf of the AnyOf characters, starts from aStartIndex.
Parameters:
- AnyOf:
- aStartIndex:
Parameters:
- AnyOf:
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
Returns true if the string contains an character > 127, starts from aStartIndex.
Parameters:
- aStartIndex:
ContainsAnyNonASCII .NET, .NET Core 6.0, .NET Standard 2.0
method ContainsAnyNonASCII: Boolean
Boolean ContainsAnyNonASCII()
func ContainsAnyNonASCII() -> Boolean
Function ContainsAnyNonASCII() As Boolean
Parameters:
- aStartIndex:
Returns true if the string contains only the AnyOf characters.
Parameters:
- AnyOf:
Returns true if the string contains only the AnyOf characters, starting at aStartIndex.
Parameters:
- AnyOf:
- aStartIndex:
Parameters:
- AnyOf:
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
Returns true if a string ends with Value.
Parameters:
- Value:
Returns true if a string ends with Value.
Parameters:
- Value:
Returns true if a string ends with Value.
Parameters:
- Value:
- IgnoreCase:
Parameters:
- Value:
- IgnoreCase:
Returns true if these strings are exactly equivalent.
Parameters:
- Value:
Parameters:
- Value:
Returns true if these strings are exactly equivalent.
Parameters:
- ValueA:
- ValueB:
Returns true if these strings are equivalent, ignoring their case.
Parameters:
- Value:
Parameters:
- Value:
Returns true if these strings are equivalent, ignoring their case.
Parameters:
- ValueA:
- ValueB:
Returns true if these strings are equivalent, ignoring their case in the invariant culture.
Parameters:
- Value:
Parameters:
- Value:
Returns true if these strings are equivalent, ignoring their case in the invariant culture.
Parameters:
- ValueA:
- ValueB:
FileExists .NET, .NET Core 6.0, .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-visionOS, Island-visionOS Simulator, 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 Core 6.0, .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-visionOS, Island-visionOS Simulator, 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 Core 6.0, .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-visionOS, Island-visionOS Simulator, 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.
Parameters:
- aFormat:
- aParams:
Does a "fuzzy" match. Given the current string, ensures each character is in aHaystack in sequential order.
Parameters:
- aHaystack:
Parameters:
- aHaystack:
GetSequence Cooper, Island, Toffee, ToffeeV2
Returns an iterator that yields each character in this string in order.
method GetSequence: IEnumerable<Char>
IEnumerable<Char> GetSequence()
// Toffee
func GetSequence() -> INSFastEnumeration<__ElementsBoxedChar>
// ToffeeV2
func GetSequence() -> IEnumerable<Char>
Iterable<Character> GetSequence()
Function GetSequence() As IEnumerable<Char>
GetSequence .NET, .NET Core 6.0, .NET Standard 2.0
method GetSequence: IEnumerable<Char>
IEnumerable<Char> GetSequence()
func GetSequence() -> IEnumerable<Char>
Function GetSequence() As IEnumerable<Char>
Parameters:
- aIndex:
Parameters:
- aIndex:
Returns the index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the index of any of these characters, or -1 if none can be found.
Parameters:
- AnyOf:
Returns the index of any of these characters, starting at StartIndex, or -1 if none can be found.
Parameters:
- AnyOf:
- StartIndex:
Parameters:
- AnyOf:
- StartIndex:
Returns the index of Value in this string, case insensitive, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the index of Value in this string, case insensitive, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
initialize ToffeeV2
static func initialize()
Insert
Insert a string into this string, returning the new 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
Parameters:
- aIndex:
Parameters:
- aIndex:
IsIndexInsideOfASurrogatePair
Parameters:
- aIndex:
IsNullOrEmpty
Returns true if this string is null or empty.
Parameters:
- Value:
IsNullOrWhiteSpace
Returns true if this string is null, empty or jsut has whitespace.
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 a string together with aSeparator as separator.
class method Join(aSeparator: nullable String; Values: not nullable array of String): not nullable 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:
Returns the last index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the last index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Parameters:
- Value:
- StartIndex:
Returns the last index of any of these characters, or -1 if none can be found.
Parameters:
- AnyOf:
Returns the last index of any of these characters, starting at StartIndex, or -1 if none can be found.
Parameters:
- AnyOf:
- StartIndex:
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
Returns the levenshtein distance to another string, essentially returns the number of differences between these strings, returning the nr of inserts, deletions and replacements.
Parameters:
- aOther:
Parameters:
- aOther:
NetworkServerName
Returns the network server name from a path string.
property NetworkServerName: nullable String read;
String? NetworkServerName { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var NetworkServerName: String? { get{} }
// Toffee
var NetworkServerName: String { get{} }
String NetworkServerName { __get; }
ReadOnly Property NetworkServerName() As String?
Pads the string so it's at least total width, with whitespaces.
Parameters:
- TotalWidth:
Pads the string so it's at least total width, with padding characters.
Parameters:
- TotalWidth:
- PaddingChar:
Parameters:
- TotalWidth:
- PaddingChar:
Pads the string so it's at least total width, with whitespaces.
Parameters:
- TotalWidth:
Pads the string so it's at least total width, with padding characters.
Parameters:
- TotalWidth:
- PaddingChar:
Parameters:
- TotalWidth:
- PaddingChar:
ParentDirectory
property ParentDirectory: nullable String read;
String? ParentDirectory { get; }
// .NET, .NET Core 6.0, .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
Parameters:
- aCount:
- aPluralVersion:
Parameters:
- aCount:
- aPluralVersion:
Parameters:
- aCount:
- aPluralVersion:
PluralInvariant (Int32, nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aCount:
- aPluralVersion:
ProcessVariables (VariableStyle, Block): not nullable String ToffeeV2
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: Block) -> String
Parameters:
- aStyle:
- aCallback:
ProcessVariables (VariableStyle, Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String virtual Island, Toffee
method ProcessVariables(aStyle: VariableStyle; aCallback: Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String
String! ProcessVariables(VariableStyle aStyle, Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String> aCallback)
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: (String) -> String) -> String
Function ProcessVariables(aStyle As VariableStyle, aCallback As Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String>) As String
Parameters:
- aStyle:
- aCallback:
ProcessVariables (VariableStyle, Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String Island, Toffee, ToffeeV2
method ProcessVariables(aStyle: VariableStyle; aCallback: Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String
String! ProcessVariables(VariableStyle aStyle, Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String> aCallback)
// Toffee
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: (String, VariableStatus) -> String) -> String
// ToffeeV2
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: (String, VariableStatus) -> String?) -> String
Function ProcessVariables(aStyle As VariableStyle, aCallback As Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String>) As String
Parameters:
- aStyle:
- aCallback:
ProcessVariables (VariableStyle, Func<not nullable String, VariableStatus, wrapped nullable String>): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
method ProcessVariables(aStyle: VariableStyle; aCallback: Func<not nullable String, VariableStatus, wrapped nullable String>): not nullable String
String! ProcessVariables(VariableStyle aStyle, Func<not nullable String, VariableStatus, wrapped nullable String> aCallback)
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: Func<not nullable String, VariableStatus, wrapped nullable String>) -> String
Function ProcessVariables(aStyle As VariableStyle, aCallback As Func (Of String, VariableStatus, String?)) As String
Parameters:
- aStyle:
- aCallback:
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
Removes a range from this string, returning the new stirng.
Parameters:
- aStartIndex:
- aLength:
Removes a range from this string, returning the new stirng.
Parameters:
- OldValue:
Replace a range in this string with new substring.
Parameters:
- aStartIndex:
- aLength:
- aNewValue:
Replace all occurances of a string with another value.
Parameters:
- OldValue:
- NewValue:
SmartJoin .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
class method SmartJoin(aStringA: nullable String; aStringB: nullable String) WithSeparator(aSeparator: not nullable String): nullable String
Parameters:
- aStringA:
- aStringB:
- aSeparator:
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 Core 6.0, .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 Core 6.0, .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 Core 6.0, .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:
Parameters:
- aIndex:
Parameters:
- aIndex:
True if this string starts with Value
Parameters:
- Value:
True if this string starts with Value
Parameters:
- Value:
True if this string starts with Value
Parameters:
- Value:
- IgnoreCase:
Parameters:
- Value:
- IgnoreCase:
Parameters:
- aRange:
Returns a substring of this string, starting at StartIndex.
Parameters:
- StartIndex:
Returns a substring from StartIndex for aLength of this 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.
Parameters:
- aSeparator:
SubstringFromFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
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.
Parameters:
- aSeparator:
SubstringFromLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
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.
Parameters:
- aSeparator:
SubstringToFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
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.
Parameters:
- aSeparator:
SubstringToLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
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()
Convert this string to the given encoding.
Parameters:
- aEncoding:
ToByteArray .NET, .NET Core 6.0, .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 Core 6.0, .NET Standard 2.0
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 Core 6.0, .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 Core 6.0, .NET Standard 2.0
method ToHexString: String
String ToHexString()
func ToHexString() -> String
Function ToHexString() As String
ToLower .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Lowrcase this string in the default locale.
method ToLower: not nullable String
String! ToLower()
func ToLower() -> String
String ToLower()
Function ToLower() As String
Lowrcase this string in the given locale.
Parameters:
- aLocale:
ToLower ToLower(): not nullable String virtual Toffee
func ToLower(ToLower ) -> String
Parameters:
- :
ToLowerInvariant .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Lowrcase this string in the invariant locale.
method ToLowerInvariant: not nullable String
String! ToLowerInvariant()
func ToLowerInvariant() -> String
String ToLowerInvariant()
Function ToLowerInvariant() As String
ToLowerInvariant ToLowerInvariant(): not nullable String virtual Toffee
func ToLowerInvariant(ToLowerInvariant ) -> String
Parameters:
- :
ToPathRelativeToFolder (not nullable String) Always(Boolean): String Cooper, Island, Toffee, ToffeeV2
method ToPathRelativeToFolder(aBasePath: not nullable String) Always(aAlways: Boolean): nullable 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
Parameters:
- aBasePath:
- aThreshold:
Parameters:
- aBasePath:
ToPathRelativeToFolder (not nullable String): nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aBasePath:
ToPathRelativeToFolder (not nullable String) Always(Boolean): nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aBasePath:
- aAlways:
ToPathRelativeToFolder (not nullable String) Threshold(Int32): nullable String .NET, .NET Core 6.0, .NET Standard 2.0
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 Core 6.0, .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<NSNumber<Int32>>
ImmutableList<Integer> ToUnicodeCodePointIndices()
Function ToUnicodeCodePointIndices() As ImmutableList<Int32>
ToUnicodeCodePointIndices .NET, .NET Core 6.0, .NET Standard 2.0
method ToUnicodeCodePointIndices: ImmutableList<Int32>
ImmutableList<Int32> ToUnicodeCodePointIndices()
func ToUnicodeCodePointIndices() -> ImmutableList<Int32>
Function ToUnicodeCodePointIndices() As ImmutableList<Int32>
ToUnicodeCodePoints Cooper, Island, Toffee, ToffeeV2
Convert this string to utf32 unicode characters.
method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>
ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()
// Toffee
func ToUnicodeCodePoints() -> ImmutableList<nullable UnicodeCodePoint>
// ToffeeV2
func ToUnicodeCodePoints() -> ImmutableList<NSNumber<UnicodeCodePoint>>
ImmutableList<UnsignedInteger> ToUnicodeCodePoints()
Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>
ToUnicodeCodePoints .NET, .NET Core 6.0, .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 .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Uppercase this string in the default locale.
method ToUpper: not nullable String
String! ToUpper()
func ToUpper() -> String
String ToUpper()
Function ToUpper() As String
Uppercase this string in the given locale.
Parameters:
- aLocale:
ToUpper ToUpper(): not nullable String virtual Toffee
func ToUpper(ToUpper ) -> String
Parameters:
- :
ToUpperInvariant .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Uppercase this string in the invariant locale.
method ToUpperInvariant: not nullable String
String! ToUpperInvariant()
func ToUpperInvariant() -> String
String ToUpperInvariant()
Function ToUpperInvariant() As String
ToUpperInvariant ToUpperInvariant(): not nullable String virtual Toffee
func ToUpperInvariant(ToUpperInvariant ) -> String
Parameters:
- :
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 .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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 this string, on both ends with the given characters.
Parameters:
- TrimChars:
Trim Trim(): not nullable String virtual Toffee
func Trim(Trim ) -> String
Parameters:
- :
Parameters:
- TrimChars:
TrimEnd .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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
Trim this string, at the end with the given characters.
Parameters:
- TrimChars:
TrimEnd TrimEnd(): not nullable String virtual Toffee
func TrimEnd(TrimEnd ) -> String
Parameters:
- :
Parameters:
- TrimChars:
TrimNewLineCharacters .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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
TrimNewLineCharacters TrimNewLineCharacters(): not nullable String virtual Toffee
func TrimNewLineCharacters(TrimNewLineCharacters ) -> String
Parameters:
- :
TrimStart .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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
Trim this string, at the start with the given characters.
Parameters:
- TrimChars:
TrimStart TrimStart(): not nullable String virtual Toffee
func TrimStart(TrimStart ) -> String
Parameters:
- :
Parameters:
- TrimChars:
Truncate (Int32, String, StringTruncationStyle): String Island, Toffee, ToffeeV2
method Truncate(aLength: Int32; aEllipsis: String; aStyle: StringTruncationStyle): String
String Truncate(Int32 aLength, String aEllipsis, StringTruncationStyle aStyle)
func Truncate(_ aLength: Int32, _ aEllipsis: String, _ aStyle: StringTruncationStyle) -> String
Function Truncate(aLength As Int32, aEllipsis As String, aStyle As StringTruncationStyle) As String
Parameters:
- aLength:
- aEllipsis:
- aStyle:
Truncate (Int32, String, StringTruncationStyle): String .NET, .NET Core 6.0, .NET Standard 2.0
method Truncate(aLength: Int32; aEllipsis: String; aStyle: StringTruncationStyle): String
String Truncate(Int32 aLength, String aEllipsis, StringTruncationStyle aStyle)
func Truncate(_ aLength: Int32, _ aEllipsis: String, _ aStyle: StringTruncationStyle) -> String
Function Truncate(aLength As Int32, aEllipsis As String, aStyle As StringTruncationStyle) As String
Parameters:
- aLength:
- aEllipsis:
- aStyle:
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 Core 6.0, .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 Core 6.0, .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 Core 6.0, .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 Core 6.0, .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.
Chars
// .NET, .NET Standard 2.0
property Chars[aIndex: Index]: Char read;
// .NET Core 6.0
property Chars[aIndex: Index]: Char read;
// Island
property Chars[aIndex: Index]: Char read;
// .NET, .NET Standard 2.0
Char Chars[Index aIndex] { get; }
// .NET Core 6.0
Char Chars[Index aIndex] { get; }
// Island
Char Chars[Index aIndex] { get; }
// .NET, .NET Standard 2.0
subscript Chars(_ aIndex: Index) -> Char { get{} }
// .NET Core 6.0, ToffeeV2
subscript Chars(_ aIndex: Index) -> Char { get{} }
// Island
subscript Chars(_ aIndex: Index) -> Char { get{} }
// Toffee
subscript Chars(_ aIndex: Index) -> Char { get{} }
Char Chars[Index aIndex] { __get; }
Chars
Accessors for characters in the string
Chars
FileExists .NET, .NET Core 6.0, .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-visionOS, Island-visionOS Simulator, 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 Core 6.0, .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-visionOS, Island-visionOS Simulator, 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 Core 6.0, .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-visionOS, Island-visionOS Simulator, 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 Core 6.0, .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 Core 6.0, .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 Core 6.0, .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 Core 6.0, .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: ''
constructor <clinit> External Cooper
class method constructor <clinit>(+)
static void constructor <clinit>(+ )
static func constructor <clinit>(_ +)
static void constructor <clinit>(+ )
Shared Sub constructor <clinit>( As +)
Parameters:
- :
Compare
Compare a string, returns 0 if the same, -1 if less, 1 if greater.
Parameters:
- Value1:
- Value2:
Returns true if these strings are exactly equivalent.
Parameters:
- ValueA:
- ValueB:
Returns true if these strings are equivalent, ignoring their case.
Parameters:
- ValueA:
- ValueB:
Returns true if these strings are equivalent, ignoring their case in the invariant culture.
Parameters:
- ValueA:
- ValueB:
Format
Formats the string, uses .NET formatting style for aFormat.
Parameters:
- aFormat:
- aParams:
initialize ToffeeV2
static func initialize()
IsNullOrEmpty
Returns true if this string is null or empty.
Parameters:
- Value:
IsNullOrWhiteSpace
Returns true if this string is null, empty or jsut has whitespace.
Parameters:
- Value:
Join a string together with aSeparator as separator.
class method Join(aSeparator: nullable String; Values: not nullable array of String): not nullable 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:
SmartJoin .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
class method SmartJoin(aStringA: nullable String; aStringB: nullable String) WithSeparator(aSeparator: not nullable String): nullable String
Parameters:
- aStringA:
- aStringB:
- aSeparator:
Creates a string with Value as content, in the encoding given in Encoding.
Parameters:
- aBytes:
- aEncoding:
Creates a string with aChar repeated aCount times.
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<NSNumber<UnicodeCodePoint>>) ToffeeV2
init(_ aCodePoints: List<NSNumber<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 Core 6.0, .NET Standard 2.0, Island, Toffee
Creates a string with aCodePoints as content.
constructor(aCodePoints: List<UnicodeCodePoint>)
String(List<UnicodeCodePoint> aCodePoints)
init(_ aCodePoints: List<nullable 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:
Creates a string with Value as content.
Parameters:
- Value:
- Offset:
- Count:
Parameters:
- aPaths:
Parameters:
- aPaths:
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
Uppercase this with the given locale.
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
compare this string to another string.
Parameters:
- Value:
Compare a string, case insensitive, returns 0 if the same, -1 if less, 1 if greater.
Parameters:
- Value:
Contains
Returns true if a string contains another string.
Parameters:
- Value:
Returns true if the string contains anf of the AnyOf characters.
Parameters:
- AnyOf:
Returns true if the string contains anf of the AnyOf characters, starts from aStartIndex.
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
Returns true if the string contains an character > 127, starts from aStartIndex.
Parameters:
- aStartIndex:
Returns true if the string contains only the AnyOf characters.
Parameters:
- AnyOf:
Returns true if the string contains only the AnyOf characters, starting at aStartIndex.
Parameters:
- AnyOf:
- aStartIndex:
Returns true if a string ends with Value.
Parameters:
- Value:
Returns true if a string ends with Value.
Parameters:
- Value:
Returns true if a string ends with Value.
Parameters:
- Value:
- IgnoreCase:
Returns true if these strings are exactly equivalent.
Parameters:
- Value:
Returns true if these strings are equivalent, ignoring their case.
Parameters:
- Value:
Returns true if these strings are equivalent, ignoring their case in the invariant culture.
Parameters:
- Value:
Does a "fuzzy" match. Given the current string, ensures each character is in aHaystack in sequential order.
Parameters:
- aHaystack:
GetSequence Cooper, Island, Toffee, ToffeeV2
Returns an iterator that yields each character in this string in order.
method GetSequence: IEnumerable<Char>
IEnumerable<Char> GetSequence()
// Toffee
func GetSequence() -> INSFastEnumeration<__ElementsBoxedChar>
// ToffeeV2
func GetSequence() -> IEnumerable<Char>
Iterable<Character> GetSequence()
Function GetSequence() As IEnumerable<Char>
Parameters:
- aIndex:
Returns the index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, start at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the index of any of these characters, or -1 if none can be found.
Parameters:
- AnyOf:
Returns the index of any of these characters, starting at StartIndex, or -1 if none can be found.
Parameters:
- AnyOf:
- StartIndex:
Returns the index of Value in this string, case insensitive, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the index of Value in this string, case insensitive, returning -1 if it's not there.
Parameters:
- Value:
Returns the index of Value in this string, case insensitive, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Insert
Insert a string into this string, returning the new string.
Parameters:
- aIndex:
- aNewValue:
Parameters:
- aIndex:
IsIndexInsideOfASurrogatePair
Parameters:
- aIndex:
Returns the last index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the last index of Value in this string, returning -1 if it's not there.
Parameters:
- Value:
Returns the last index of Value in this string, starting at StartIndex, returning -1 if it's not there.
Parameters:
- Value:
- StartIndex:
Returns the last index of any of these characters, or -1 if none can be found.
Parameters:
- AnyOf:
Returns the last index of any of these characters, starting at StartIndex, or -1 if none can be found.
Parameters:
- AnyOf:
- StartIndex:
Returns the levenshtein distance to another string, essentially returns the number of differences between these strings, returning the nr of inserts, deletions and replacements.
Parameters:
- aOther:
Pads the string so it's at least total width, with whitespaces.
Parameters:
- TotalWidth:
Pads the string so it's at least total width, with padding characters.
Parameters:
- TotalWidth:
- PaddingChar:
Pads the string so it's at least total width, with whitespaces.
Parameters:
- TotalWidth:
Pads the string so it's at least total width, with padding characters.
Parameters:
- TotalWidth:
- PaddingChar:
Parameters:
- aCount:
- aPluralVersion:
Parameters:
- aCount:
- aPluralVersion:
ProcessVariables (VariableStyle, Block): not nullable String ToffeeV2
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: Block) -> String
Parameters:
- aStyle:
- aCallback:
ProcessVariables (VariableStyle, Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String virtual Island, Toffee
method ProcessVariables(aStyle: VariableStyle; aCallback: Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String
String! ProcessVariables(VariableStyle aStyle, Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String> aCallback)
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: (String) -> String) -> String
Function ProcessVariables(aStyle As VariableStyle, aCallback As Func<not nullable RemObjects.Elements.RTL.String,wrapped nullable RemObjects.Elements.RTL.String>) As String
Parameters:
- aStyle:
- aCallback:
ProcessVariables (VariableStyle, Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String Island, Toffee, ToffeeV2
method ProcessVariables(aStyle: VariableStyle; aCallback: Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String>): not nullable String
String! ProcessVariables(VariableStyle aStyle, Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String> aCallback)
// Toffee
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: (String, VariableStatus) -> String) -> String
// ToffeeV2
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: (String, VariableStatus) -> String?) -> String
Function ProcessVariables(aStyle As VariableStyle, aCallback As Func<not nullable RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.VariableStatus,wrapped nullable RemObjects.Elements.RTL.String>) As String
Parameters:
- aStyle:
- aCallback:
Removes a range from this string, returning the new stirng.
Parameters:
- aStartIndex:
- aLength:
Removes a range from this string, returning the new stirng.
Parameters:
- OldValue:
Replace a range in this string with new substring.
Parameters:
- aStartIndex:
- aLength:
- aNewValue:
Replace all occurances of a string with another value.
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:
Parameters:
- aIndex:
True if this string starts with Value
Parameters:
- Value:
True if this string starts with Value
Parameters:
- Value:
True if this string starts with Value
Parameters:
- Value:
- IgnoreCase:
Parameters:
- aRange:
Returns a substring of this string, starting at StartIndex.
Parameters:
- StartIndex:
Returns a substring from StartIndex for aLength of this 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.
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.
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.
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.
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()
Convert this string to the given encoding.
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 .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Lowrcase this string in the default locale.
method ToLower: not nullable String
String! ToLower()
func ToLower() -> String
String ToLower()
Function ToLower() As String
Lowrcase this string in the given locale.
Parameters:
- aLocale:
ToLower ToLower(): not nullable String virtual Toffee
func ToLower(ToLower ) -> String
Parameters:
- :
ToLowerInvariant .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Lowrcase this string in the invariant locale.
method ToLowerInvariant: not nullable String
String! ToLowerInvariant()
func ToLowerInvariant() -> String
String ToLowerInvariant()
Function ToLowerInvariant() As String
ToLowerInvariant ToLowerInvariant(): not nullable String virtual Toffee
func ToLowerInvariant(ToLowerInvariant ) -> String
Parameters:
- :
ToPathRelativeToFolder (not nullable String) Always(Boolean): String Cooper, Island, Toffee, ToffeeV2
method ToPathRelativeToFolder(aBasePath: not nullable String) Always(aAlways: Boolean): nullable 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
Parameters:
- aBasePath:
- aThreshold:
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<NSNumber<Int32>>
ImmutableList<Integer> ToUnicodeCodePointIndices()
Function ToUnicodeCodePointIndices() As ImmutableList<Int32>
ToUnicodeCodePoints Cooper, Island, Toffee, ToffeeV2
Convert this string to utf32 unicode characters.
method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>
ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()
// Toffee
func ToUnicodeCodePoints() -> ImmutableList<nullable UnicodeCodePoint>
// ToffeeV2
func ToUnicodeCodePoints() -> ImmutableList<NSNumber<UnicodeCodePoint>>
ImmutableList<UnsignedInteger> ToUnicodeCodePoints()
Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>
ToUpper .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Uppercase this string in the default locale.
method ToUpper: not nullable String
String! ToUpper()
func ToUpper() -> String
String ToUpper()
Function ToUpper() As String
Uppercase this string in the given locale.
Parameters:
- aLocale:
ToUpper ToUpper(): not nullable String virtual Toffee
func ToUpper(ToUpper ) -> String
Parameters:
- :
ToUpperInvariant .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Uppercase this string in the invariant locale.
method ToUpperInvariant: not nullable String
String! ToUpperInvariant()
func ToUpperInvariant() -> String
String ToUpperInvariant()
Function ToUpperInvariant() As String
ToUpperInvariant ToUpperInvariant(): not nullable String virtual Toffee
func ToUpperInvariant(ToUpperInvariant ) -> String
Parameters:
- :
Trim .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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 this string, on both ends with the given characters.
Parameters:
- TrimChars:
Trim Trim(): not nullable String virtual Toffee
func Trim(Trim ) -> String
Parameters:
- :
TrimEnd .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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
Trim this string, at the end with the given characters.
Parameters:
- TrimChars:
TrimEnd TrimEnd(): not nullable String virtual Toffee
func TrimEnd(TrimEnd ) -> String
Parameters:
- :
TrimNewLineCharacters .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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
TrimNewLineCharacters TrimNewLineCharacters(): not nullable String virtual Toffee
func TrimNewLineCharacters(TrimNewLineCharacters ) -> String
Parameters:
- :
TrimStart .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
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
Trim this string, at the start with the given characters.
Parameters:
- TrimChars:
TrimStart TrimStart(): not nullable String virtual Toffee
func TrimStart(TrimStart ) -> String
Parameters:
- :
Truncate (Int32, String, StringTruncationStyle): String Island, Toffee, ToffeeV2
method Truncate(aLength: Int32; aEllipsis: String; aStyle: StringTruncationStyle): String
String Truncate(Int32 aLength, String aEllipsis, StringTruncationStyle aStyle)
func Truncate(_ aLength: Int32, _ aEllipsis: String, _ aStyle: StringTruncationStyle) -> String
Function Truncate(aLength As Int32, aEllipsis As String, aStyle As StringTruncationStyle) As String
Parameters:
- aLength:
- aEllipsis:
- aStyle:
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:
Parameters:
- aPaths:
Parameters:
- aPaths:
Parameters:
- aPaths:
Capitalize .NET, .NET Core 6.0, .NET Standard 2.0
method Capitalize: not nullable String
String! Capitalize()
func Capitalize() -> String
Function Capitalize() As String
Parameters:
- aLocale:
CapitalizeInvariant .NET, .NET Core 6.0, .NET Standard 2.0
method CapitalizeInvariant: not nullable String
String! CapitalizeInvariant()
func CapitalizeInvariant() -> String
Function CapitalizeInvariant() As String
Parameters:
- Value:
Parameters:
- Value:
Parameters:
- AnyOf:
Parameters:
- AnyOf:
- aStartIndex:
ContainsAnyNonASCII .NET, .NET Core 6.0, .NET Standard 2.0
method ContainsAnyNonASCII: Boolean
Boolean ContainsAnyNonASCII()
func ContainsAnyNonASCII() -> Boolean
Function ContainsAnyNonASCII() As Boolean
Parameters:
- aStartIndex:
Parameters:
- AnyOf:
Parameters:
- AnyOf:
- aStartIndex:
Parameters:
- Value:
- IgnoreCase:
Parameters:
- Value:
Parameters:
- Value:
Parameters:
- Value:
Parameters:
- aHaystack:
GetSequence .NET, .NET Core 6.0, .NET Standard 2.0
method GetSequence: IEnumerable<Char>
IEnumerable<Char> GetSequence()
func GetSequence() -> IEnumerable<Char>
Function GetSequence() As IEnumerable<Char>
Parameters:
- aIndex:
Parameters:
- AnyOf:
- StartIndex:
Parameters:
- aIndex:
Parameters:
- Value:
- StartIndex:
Parameters:
- AnyOf:
- StartIndex:
Parameters:
- aOther:
Parameters:
- TotalWidth:
- PaddingChar:
Parameters:
- TotalWidth:
- PaddingChar:
Parameters:
- aCount:
- aPluralVersion:
PluralInvariant (Int32, nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aCount:
- aPluralVersion:
ProcessVariables (VariableStyle, Func<not nullable String, VariableStatus, wrapped nullable String>): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
method ProcessVariables(aStyle: VariableStyle; aCallback: Func<not nullable String, VariableStatus, wrapped nullable String>): not nullable String
String! ProcessVariables(VariableStyle aStyle, Func<not nullable String, VariableStatus, wrapped nullable String> aCallback)
func ProcessVariables(_ aStyle: VariableStyle, _ aCallback: Func<not nullable String, VariableStatus, wrapped nullable String>) -> String
Function ProcessVariables(aStyle As VariableStyle, aCallback As Func (Of String, VariableStatus, String?)) As String
Parameters:
- aStyle:
- aCallback:
Split (not nullable String, Boolean): not nullable ImmutableList<String> .NET, .NET Core 6.0, .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 Core 6.0, .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 Core 6.0, .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:
Parameters:
- aIndex:
Parameters:
- Value:
- IgnoreCase:
SubstringFromFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aSeparator:
SubstringFromLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aSeparator:
SubstringToFirstOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aSeparator:
SubstringToLastOccurrenceOf (not nullable String): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aSeparator:
ToByteArray .NET, .NET Core 6.0, .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 Core 6.0, .NET Standard 2.0
Parameters:
- aEncoding:
ToCharArray .NET, .NET Core 6.0, .NET Standard 2.0
method ToCharArray: not nullable array of Char
Char[]! ToCharArray()
func ToCharArray() -> Char...
Function ToCharArray() As Char()
ToHexString .NET, .NET Core 6.0, .NET Standard 2.0
method ToHexString: String
String ToHexString()
func ToHexString() -> String
Function ToHexString() As String
ToPathRelativeToFolder (not nullable String): nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aBasePath:
ToPathRelativeToFolder (not nullable String) Always(Boolean): nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aBasePath:
- aAlways:
ToPathRelativeToFolder (not nullable String) Threshold(Int32): nullable String .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aBasePath:
- aThreshold:
ToUnicodeCharacters .NET, .NET Core 6.0, .NET Standard 2.0
method ToUnicodeCharacters: ImmutableList<UnicodeCharacter>
ImmutableList<UnicodeCharacter> ToUnicodeCharacters()
func ToUnicodeCharacters() -> ImmutableList<UnicodeCharacter>
Function ToUnicodeCharacters() As ImmutableList<UnicodeCharacter>
ToUnicodeCodePointIndices .NET, .NET Core 6.0, .NET Standard 2.0
method ToUnicodeCodePointIndices: ImmutableList<Int32>
ImmutableList<Int32> ToUnicodeCodePointIndices()
func ToUnicodeCodePointIndices() -> ImmutableList<Int32>
Function ToUnicodeCodePointIndices() As ImmutableList<Int32>
ToUnicodeCodePoints .NET, .NET Core 6.0, .NET Standard 2.0
method ToUnicodeCodePoints: ImmutableList<UnicodeCodePoint>
ImmutableList<UnicodeCodePoint> ToUnicodeCodePoints()
func ToUnicodeCodePoints() -> ImmutableList<UnicodeCodePoint>
Function ToUnicodeCodePoints() As ImmutableList<UnicodeCodePoint>
Parameters:
- TrimChars:
Parameters:
- TrimChars:
Parameters:
- TrimChars:
Truncate (Int32, String, StringTruncationStyle): String .NET, .NET Core 6.0, .NET Standard 2.0
method Truncate(aLength: Int32; aEllipsis: String; aStyle: StringTruncationStyle): String
String Truncate(Int32 aLength, String aEllipsis, StringTruncationStyle aStyle)
func Truncate(_ aLength: Int32, _ aEllipsis: String, _ aStyle: StringTruncationStyle) -> String
Function Truncate(aLength As Int32, aEllipsis As String, aStyle As StringTruncationStyle) As String
Parameters:
- aLength:
- aEllipsis:
- aStyle:
UnicodeCodePointAtIndex (Int32): UnicodeCodePoint .NET, .NET Core 6.0, .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 Core 6.0, .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: