String

Overview

String is the class for the Island string implementation, basically the type used for a sequence of characters. String itself is immutable.

Location

Implements

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

String()

 

init()

 

String()

Compare

Compares two strings, returns 0 if equal, -1 if less, 1 if more.

 

class method Compare(aLeft: String; aRight: String): Int32

 

static Int32 Compare(String aLeft, String aRight)

 

static func Compare(_ aLeft: String, _ aRight: String) -> Int32

 

static Int32 Compare(String aLeft, String aRight)

Parameters:

  • aLeft:
  • aRight:

CompareTo (Object): Int32

Compares two strings, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

Parameters:

  • a:

CompareTo (String): Int32

Compares two strings, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(Value: String): Int32

 

Int32 CompareTo(String Value)

 

func CompareTo(_ Value: String) -> Int32

 

Int32 CompareTo(String Value)

Parameters:

  • Value:

CompareToIgnoreCase

Compares two strings, returns 0 if equal, -1 if less, 1 if more, ignoring the case.

 

method CompareToIgnoreCase(Value: String): Int32

 

Int32 CompareToIgnoreCase(String Value)

 

func CompareToIgnoreCase(_ Value: String) -> Int32

 

Int32 CompareToIgnoreCase(String Value)

Parameters:

  • Value:

Contains

Check if a string is contained in another string.

 

method Contains(Value: String): Boolean

 

Boolean Contains(String Value)

 

func Contains(_ Value: String) -> Boolean

 

Boolean Contains(String Value)

Parameters:

  • Value:

CopyTo

Copy a string to an array of char.

 

method CopyTo(SourceIndex: Int32; destination: array of Char; DestinationIndex: Int32; Count: Int32)

 

void CopyTo(Int32 SourceIndex, Char[] destination, Int32 DestinationIndex, Int32 Count)

 

func CopyTo(_ SourceIndex: Int32, _ destination: Char..., _ DestinationIndex: Int32, _ Count: Int32)

 

void CopyTo(Int32 SourceIndex, Char[] destination, Int32 DestinationIndex, Int32 Count)

Parameters:

  • SourceIndex:
  • destination:
  • DestinationIndex:
  • Count:

EndsWith

Returns true if a string ends with a value.

 

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

 

Boolean EndsWith(String Value, Boolean aInvariant)

 

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

 

Boolean EndsWith(String Value, Boolean aInvariant)

Parameters:

  • Value:
  • aInvariant:

Equals (Object): Boolean  override virtual

Check if a string is equal to another string.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj:

Equals (String): Boolean

Check if a string is equal to another string.

 

method Equals(Value: String): Boolean

 

Boolean Equals(String Value)

 

func Equals(_ Value: String) -> Boolean

 

Boolean Equals(String Value)

Parameters:

  • Value:

EqualsIgnoreCase

Check if a string is equal to another string.

 

method EqualsIgnoreCase(Value: String): Boolean

 

Boolean EqualsIgnoreCase(String Value)

 

func EqualsIgnoreCase(_ Value: String) -> Boolean

 

Boolean EqualsIgnoreCase(String Value)

Parameters:

  • Value:

EqualsIgnoreCaseInvariant

Check if a string is equal to another string.

 

method EqualsIgnoreCaseInvariant(Value: String): Boolean

 

Boolean EqualsIgnoreCaseInvariant(String Value)

 

func EqualsIgnoreCaseInvariant(_ Value: String) -> Boolean

 

Boolean EqualsIgnoreCaseInvariant(String Value)

Parameters:

  • Value:

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

FirstChar

Returns a pointer to the first char of this string.

 

property FirstChar: ^Char read;

 

Char* FirstChar { get; }

 

var FirstChar: UnsafeMutablePointer<Char> { get{} }

 

Char* FirstChar { __get; }

Format

Format a string given a format string (.net style formatting).

 

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

 

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

 

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

 

static String Format(String! aFormat, Object[]!... aArguments)

Parameters:

  • aFormat:
  • aArguments:

FromChar

Creates a string from a char.

 

class method FromChar(c: Char): String

 

static String FromChar(Char c)

 

static func FromChar(_ c: Char) -> String

 

static String FromChar(Char c)

Parameters:

  • c:

FromCharArray

Creates a string from a char array.

 

class method FromCharArray(aArray: array of Char): String

 

static String FromCharArray(Char[] aArray)

 

static func FromCharArray(_ aArray: Char...) -> String

 

static String FromCharArray(Char[] aArray)

Parameters:

  • aArray:

FromPAnsiChars (^AnsiChar): nullable String

Creates a string from an ansi char pointer.

 

class method FromPAnsiChars(c: ^AnsiChar): nullable String

 

static String? FromPAnsiChars(AnsiChar* c)

 

static func FromPAnsiChars(_ c: UnsafeMutablePointer<AnsiChar>) -> String?

 

static String? FromPAnsiChars(AnsiChar* c)

Parameters:

  • c:

FromPAnsiChars (^AnsiChar, Int32): nullable String

Creates a string from an ansi char pointer.

 

class method FromPAnsiChars(c: ^AnsiChar; aCharCount: Int32): nullable String

 

static String? FromPAnsiChars(AnsiChar* c, Int32 aCharCount)

 

static func FromPAnsiChars(_ c: UnsafeMutablePointer<AnsiChar>, _ aCharCount: Int32) -> String?

 

static String? FromPAnsiChars(AnsiChar* c, Int32 aCharCount)

Parameters:

  • c:
  • aCharCount:

FromPChar (^Char): String

Creates a string from an unicode char pointer.

 

class method FromPChar(c: ^Char): String

 

static String FromPChar(Char* c)

 

static func FromPChar(_ c: UnsafeMutablePointer<Char>) -> String

 

static String FromPChar(Char* c)

Parameters:

  • c:

FromPChar (^Char, Int32): String

Creates a string from an unicode char pointer.

 

class method FromPChar(c: ^Char; aCharCount: Int32): String

 

static String FromPChar(Char* c, Int32 aCharCount)

 

static func FromPChar(_ c: UnsafeMutablePointer<Char>, _ aCharCount: Int32) -> String

 

static String FromPChar(Char* c, Int32 aCharCount)

Parameters:

  • c:
  • aCharCount:

FromRepeatedChar

Creates a string from a repeated character.

 

class method FromRepeatedChar(c: Char; aCharCount: Int32): String

 

static String FromRepeatedChar(Char c, Int32 aCharCount)

 

static func FromRepeatedChar(_ c: Char, _ aCharCount: Int32) -> String

 

static String FromRepeatedChar(Char c, Int32 aCharCount)

Parameters:

  • c:
  • aCharCount:

GetEnumerator

Returns an iterator for this class.

 

method GetEnumerator: IEnumerator<Char>

 

IEnumerator<Char> GetEnumerator()

 

func GetEnumerator() -> IEnumerator<Char>

 

IEnumerator<Char> GetEnumerator()

GetHashCode  override virtual

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IndexOf (String): Int32

Returns the index of the substring Value in this string, or -1 if it's not found.

 

method IndexOf(Value: String): Int32

 

Int32 IndexOf(String Value)

 

func IndexOf(_ Value: String) -> Int32

 

Int32 IndexOf(String Value)

Parameters:

  • Value:

IndexOf (String, Int32): Int32

Returns the index of the substring Value in this string, or -1 if it's not found; starts searching at aStartfromIndex.

 

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

 

Int32 IndexOf(String Value, Int32 aStartFromIndex)

 

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

 

Int32 IndexOf(String Value, Int32 aStartFromIndex)

Parameters:

  • Value:
  • aStartFromIndex:

IndexOfAny

Returns the index of any char in the array or -1 if it's not there.

 

method IndexOfAny(anyOf: array of Char): Int32

 

Int32 IndexOfAny(Char[] anyOf)

 

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

 

Int32 IndexOfAny(Char[] anyOf)

Parameters:

  • anyOf:

Insert

Insert a string at the given position and return the new strnig

 

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

 

String! Insert(Int32 aIndex, String aNewValue)

 

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

 

String! Insert(Int32 aIndex, String aNewValue)

Parameters:

  • aIndex:
  • aNewValue:

IsNullOrEmpty

Check if a 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)

Parameters:

  • value:

Item

Accessor for this string by index.

 

property Item[i: Int32]: Char read;

 

Char Item[Int32 i] { get; }

 

subscript Item(_ i: Int32) -> Char { get{} }

 

Char Item[Int32 i] { __get; }

Join (String, array of Object): String

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: array of Object): String

 

static String Join(String Separator, Object[] Value)

 

static func Join(_ Separator: String, _ Value: Object...) -> String

 

static String Join(String Separator, Object[] Value)

Parameters:

  • Separator:
  • Value:

Join (String, array of String): String

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: array of String): String

 

static String Join(String Separator, String[] Value)

 

static func Join(_ Separator: String, _ Value: String...) -> String

 

static String Join(String Separator, String[] Value)

Parameters:

  • Separator:
  • Value:

Join (String, array of String, Int32, Int32): String

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: array of String; StartIndex: Int32; Count: Int32): String

 

static String Join(String Separator, String[] Value, Int32 StartIndex, Int32 Count)

 

static func Join(_ Separator: String, _ Value: String..., _ StartIndex: Int32, _ Count: Int32) -> String

 

static String Join(String Separator, String[] Value, Int32 StartIndex, Int32 Count)

Parameters:

  • Separator:
  • Value:
  • StartIndex:
  • Count:

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: IEnumerable<String>): String

 

static String Join(String Separator, IEnumerable<String> Value)

 

static func Join(_ Separator: String, _ Value: IEnumerable<String>) -> String

 

static String Join(String Separator, IEnumerable<String> Value)

Parameters:

  • Separator:
  • Value:

Join<T>

Join a sequence of objects together with a given seperator.

 

class method Join<T>(Separator: String; Value: IEnumerable<T>): String

 

static String Join<T>(String Separator, IEnumerable<T> Value)

 

static func Join<T>(_ Separator: String, _ Value: IEnumerable<T>) -> String

 

static String Join<T>(String Separator, IEnumerable<T> Value)

Parameters:

  • Separator:
  • Value:

LastIndexOf (String): Int32

Returns the last index of the substring Value in this string, or -1 if it's not found.

 

method LastIndexOf(Value: String): Int32

 

Int32 LastIndexOf(String Value)

 

func LastIndexOf(_ Value: String) -> Int32

 

Int32 LastIndexOf(String Value)

Parameters:

  • Value:

LastIndexOf (String, Int32): Int32

Returns the last index of the substring Value in this string, or -1 if it's not found.

 

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

 

Int32 LastIndexOf(String Value, Int32 aStartFromIndex)

 

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

 

Int32 LastIndexOf(String Value, Int32 aStartFromIndex)

Parameters:

  • Value:
  • aStartFromIndex:

LastIndexOfAny

Returns the last index of any of the characters in the array in this string, or -1 if it's not found.

 

method LastIndexOfAny(anyOf: array of Char): Int32

 

Int32 LastIndexOfAny(Char[] anyOf)

 

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

 

Int32 LastIndexOfAny(Char[] anyOf)

Parameters:

  • anyOf:

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

PadEnd (Int32): String

Adds spacing to the end of a string so it is at least TotalWidth.

 

method PadEnd(TotalWidth: Int32): String

 

String PadEnd(Int32 TotalWidth)

 

func PadEnd(_ TotalWidth: Int32) -> String

 

String PadEnd(Int32 TotalWidth)

Parameters:

  • TotalWidth:

PadEnd (Int32, Char): String

Adds spacing to the end of a string so it is at least TotalWidth.

 

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

 

String PadEnd(Int32 TotalWidth, Char PaddingChar)

 

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

 

String PadEnd(Int32 TotalWidth, Char PaddingChar)

Parameters:

  • TotalWidth:
  • PaddingChar:

PadStart (Int32): String

Adds spacing to the start of a string so it is at least TotalWidth.

 

method PadStart(TotalWidth: Int32): String

 

String PadStart(Int32 TotalWidth)

 

func PadStart(_ TotalWidth: Int32) -> String

 

String PadStart(Int32 TotalWidth)

Parameters:

  • TotalWidth:

PadStart (Int32, Char): String

Adds spacing to the start of a string so it is at least TotalWidth.

 

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

 

String PadStart(Int32 TotalWidth, Char PaddingChar)

 

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

 

String PadStart(Int32 TotalWidth, Char PaddingChar)

Parameters:

  • TotalWidth:
  • PaddingChar:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

Remove (Int32): String

Remove from the string from startindex on.

 

method Remove(StartIndex: Int32): String

 

String Remove(Int32 StartIndex)

 

func Remove(_ StartIndex: Int32) -> String

 

String Remove(Int32 StartIndex)

Parameters:

  • StartIndex:

Remove (Int32, Int32): String

Remove from the string from startindex on, for a given length.

 

method Remove(StartIndex: Int32; Count: Int32): String

 

String Remove(Int32 StartIndex, Int32 Count)

 

func Remove(_ StartIndex: Int32, _ Count: Int32) -> String

 

String Remove(Int32 StartIndex, Int32 Count)

Parameters:

  • StartIndex:
  • Count:

Replace

Replace a substring in 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)

Parameters:

  • OldValue:
  • NewValue:

Split

Split a string on a given separator.

 

method Split(Separator: String; aRemoveEmptyEntries: Boolean; aMax: Int32): array of String

 

String[] Split(String Separator, Boolean aRemoveEmptyEntries, Int32 aMax)

 

func Split(_ Separator: String, _ aRemoveEmptyEntries: Boolean, _ aMax: Int32) -> String...

 

String[] Split(String Separator, Boolean aRemoveEmptyEntries, Int32 aMax)

Parameters:

  • Separator:
  • aRemoveEmptyEntries:
  • aMax:

StartsWith

Returns if a string starts with a value.

 

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

 

Boolean StartsWith(String Value, Boolean aInvariant)

 

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

 

Boolean StartsWith(String Value, Boolean aInvariant)

Parameters:

  • Value:
  • aInvariant:

Substring (Int32): not nullable String

Returns a substring of this string.

 

method Substring(StartIndex: Int32): not nullable String

 

String! Substring(Int32 StartIndex)

 

func Substring(_ StartIndex: Int32) -> String

 

String! Substring(Int32 StartIndex)

Parameters:

  • StartIndex:

Substring (Int32, Int32): not nullable String

Returns a substring 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(Int32 StartIndex, Int32 aLength)

Parameters:

  • StartIndex:
  • aLength:

ToAnsiChars

Convert this string to an array of ansichar.

 

method ToAnsiChars(aNullTerminate: Boolean): array of AnsiChar

 

AnsiChar[] ToAnsiChars(Boolean aNullTerminate)

 

func ToAnsiChars(_ aNullTerminate: Boolean) -> AnsiChar...

 

AnsiChar[] ToAnsiChars(Boolean aNullTerminate)

Parameters:

  • aNullTerminate:

ToCharArray (Boolean): array of Char

Convert this string to an array of char.

 

method ToCharArray(aNullTerminate: Boolean): array of Char

 

Char[] ToCharArray(Boolean aNullTerminate)

 

func ToCharArray(_ aNullTerminate: Boolean) -> Char...

 

Char[] ToCharArray(Boolean aNullTerminate)

Parameters:

  • aNullTerminate:

ToCharArray (Int32, Int32, Boolean): array of Char

Convert this string to an array of char.

 

method ToCharArray(StartIndex: Int32; aLength: Int32; aNullTerminate: Boolean): array of Char

 

Char[] ToCharArray(Int32 StartIndex, Int32 aLength, Boolean aNullTerminate)

 

func ToCharArray(_ StartIndex: Int32, _ aLength: Int32, _ aNullTerminate: Boolean) -> Char...

 

Char[] ToCharArray(Int32 StartIndex, Int32 aLength, Boolean aNullTerminate)

Parameters:

  • StartIndex:
  • aLength:
  • aNullTerminate:

ToLower (Boolean): String

Lowercase this string.

 

method ToLower(aInvariant: Boolean): String

 

String ToLower(Boolean aInvariant)

 

func ToLower(_ aInvariant: Boolean) -> String

 

String ToLower(Boolean aInvariant)

Parameters:

  • aInvariant:

ToLower (Locale): String

Lowercase this string.

 

method ToLower(aLocale: Locale): String

 

String ToLower(Locale aLocale)

 

func ToLower(_ aLocale: Locale) -> String

 

String ToLower(Locale aLocale)

Parameters:

  • aLocale:

ToLowerInvariant

Lowercase this string.

 

method ToLowerInvariant: String

 

String ToLowerInvariant()

 

func ToLowerInvariant() -> String

 

String ToLowerInvariant()

ToString  override virtual

Returns itself.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToUpper (Boolean): String

Uppercase this string.

 

method ToUpper(aInvariant: Boolean): String

 

String ToUpper(Boolean aInvariant)

 

func ToUpper(_ aInvariant: Boolean) -> String

 

String ToUpper(Boolean aInvariant)

Parameters:

  • aInvariant:

ToUpper (Locale): String

Uppercase this string.

 

method ToUpper(aLocale: Locale): String

 

String ToUpper(Locale aLocale)

 

func ToUpper(_ aLocale: Locale) -> String

 

String ToUpper(Locale aLocale)

Parameters:

  • aLocale:

ToUpperInvariant

Uppercase this string.

 

method ToUpperInvariant: String

 

String ToUpperInvariant()

 

func ToUpperInvariant() -> String

 

String ToUpperInvariant()

Trim

Trim this string at the start and end of whitespace characters.

 

method Trim: String

 

String Trim()

 

func Trim() -> String

 

String Trim()

Trim (array of Char): String

Trim this string at the start and end of aChars characters.

 

method Trim(aChars: array of Char): String

 

String Trim(Char[] aChars)

 

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

 

String Trim(Char[] aChars)

Parameters:

  • aChars:

TrimEnd

Trim this string at the end of whitespace characters.

 

method TrimEnd: String

 

String TrimEnd()

 

func TrimEnd() -> String

 

String TrimEnd()

TrimEnd (array of Char): String

Trim this string at the end of aChars characters.

 

method TrimEnd(aChars: array of Char): String

 

String TrimEnd(Char[] aChars)

 

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

 

String TrimEnd(Char[] aChars)

Parameters:

  • aChars:

TrimStart

Trim this string at the start of whitespace characters.

 

method TrimStart: String

 

String TrimStart()

 

func TrimStart() -> String

 

String TrimStart()

TrimStart (array of Char): String

Trim this string at the start of aChars characters.

 

method TrimStart(aChars: array of Char): String

 

String TrimStart(Char[] aChars)

 

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

 

String TrimStart(Char[] aChars)

Parameters:

  • aChars:

 

FirstChar

Returns a pointer to the first char of this string.

 

property FirstChar: ^Char read;

 

Char* FirstChar { get; }

 

var FirstChar: UnsafeMutablePointer<Char> { get{} }

 

Char* FirstChar { __get; }

Item

Accessor for this string by index.

 

property Item[i: Int32]: Char read;

 

Char Item[Int32 i] { get; }

 

subscript Item(_ i: Int32) -> Char { get{} }

 

Char Item[Int32 i] { __get; }

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

 

Compare

Compares two strings, returns 0 if equal, -1 if less, 1 if more.

 

class method Compare(aLeft: String; aRight: String): Int32

 

static Int32 Compare(String aLeft, String aRight)

 

static func Compare(_ aLeft: String, _ aRight: String) -> Int32

 

static Int32 Compare(String aLeft, String aRight)

Parameters:

  • aLeft:
  • aRight:

Format

Format a string given a format string (.net style formatting).

 

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

 

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

 

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

 

static String Format(String! aFormat, Object[]!... aArguments)

Parameters:

  • aFormat:
  • aArguments:

FromChar

Creates a string from a char.

 

class method FromChar(c: Char): String

 

static String FromChar(Char c)

 

static func FromChar(_ c: Char) -> String

 

static String FromChar(Char c)

Parameters:

  • c:

FromCharArray

Creates a string from a char array.

 

class method FromCharArray(aArray: array of Char): String

 

static String FromCharArray(Char[] aArray)

 

static func FromCharArray(_ aArray: Char...) -> String

 

static String FromCharArray(Char[] aArray)

Parameters:

  • aArray:

FromPAnsiChars (^AnsiChar): nullable String

Creates a string from an ansi char pointer.

 

class method FromPAnsiChars(c: ^AnsiChar): nullable String

 

static String? FromPAnsiChars(AnsiChar* c)

 

static func FromPAnsiChars(_ c: UnsafeMutablePointer<AnsiChar>) -> String?

 

static String? FromPAnsiChars(AnsiChar* c)

Parameters:

  • c:

FromPAnsiChars (^AnsiChar, Int32): nullable String

Creates a string from an ansi char pointer.

 

class method FromPAnsiChars(c: ^AnsiChar; aCharCount: Int32): nullable String

 

static String? FromPAnsiChars(AnsiChar* c, Int32 aCharCount)

 

static func FromPAnsiChars(_ c: UnsafeMutablePointer<AnsiChar>, _ aCharCount: Int32) -> String?

 

static String? FromPAnsiChars(AnsiChar* c, Int32 aCharCount)

Parameters:

  • c:
  • aCharCount:

FromPChar (^Char): String

Creates a string from an unicode char pointer.

 

class method FromPChar(c: ^Char): String

 

static String FromPChar(Char* c)

 

static func FromPChar(_ c: UnsafeMutablePointer<Char>) -> String

 

static String FromPChar(Char* c)

Parameters:

  • c:

FromPChar (^Char, Int32): String

Creates a string from an unicode char pointer.

 

class method FromPChar(c: ^Char; aCharCount: Int32): String

 

static String FromPChar(Char* c, Int32 aCharCount)

 

static func FromPChar(_ c: UnsafeMutablePointer<Char>, _ aCharCount: Int32) -> String

 

static String FromPChar(Char* c, Int32 aCharCount)

Parameters:

  • c:
  • aCharCount:

FromRepeatedChar

Creates a string from a repeated character.

 

class method FromRepeatedChar(c: Char; aCharCount: Int32): String

 

static String FromRepeatedChar(Char c, Int32 aCharCount)

 

static func FromRepeatedChar(_ c: Char, _ aCharCount: Int32) -> String

 

static String FromRepeatedChar(Char c, Int32 aCharCount)

Parameters:

  • c:
  • aCharCount:

IsNullOrEmpty

Check if a 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)

Parameters:

  • value:

Join (String, array of Object): String

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: array of Object): String

 

static String Join(String Separator, Object[] Value)

 

static func Join(_ Separator: String, _ Value: Object...) -> String

 

static String Join(String Separator, Object[] Value)

Parameters:

  • Separator:
  • Value:

Join (String, array of String): String

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: array of String): String

 

static String Join(String Separator, String[] Value)

 

static func Join(_ Separator: String, _ Value: String...) -> String

 

static String Join(String Separator, String[] Value)

Parameters:

  • Separator:
  • Value:

Join (String, array of String, Int32, Int32): String

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: array of String; StartIndex: Int32; Count: Int32): String

 

static String Join(String Separator, String[] Value, Int32 StartIndex, Int32 Count)

 

static func Join(_ Separator: String, _ Value: String..., _ StartIndex: Int32, _ Count: Int32) -> String

 

static String Join(String Separator, String[] Value, Int32 StartIndex, Int32 Count)

Parameters:

  • Separator:
  • Value:
  • StartIndex:
  • Count:

Join a sequence of strings together with a given seperator.

 

class method Join(Separator: String; Value: IEnumerable<String>): String

 

static String Join(String Separator, IEnumerable<String> Value)

 

static func Join(_ Separator: String, _ Value: IEnumerable<String>) -> String

 

static String Join(String Separator, IEnumerable<String> Value)

Parameters:

  • Separator:
  • Value:

Join<T>

Join a sequence of objects together with a given seperator.

 

class method Join<T>(Separator: String; Value: IEnumerable<T>): String

 

static String Join<T>(String Separator, IEnumerable<T> Value)

 

static func Join<T>(_ Separator: String, _ Value: IEnumerable<T>) -> String

 

static String Join<T>(String Separator, IEnumerable<T> Value)

Parameters:

  • Separator:
  • Value:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

String()

 

init()

 

String()

CompareTo (Object): Int32

Compares two strings, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

Parameters:

  • a:

CompareTo (String): Int32

Compares two strings, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(Value: String): Int32

 

Int32 CompareTo(String Value)

 

func CompareTo(_ Value: String) -> Int32

 

Int32 CompareTo(String Value)

Parameters:

  • Value:

CompareToIgnoreCase

Compares two strings, returns 0 if equal, -1 if less, 1 if more, ignoring the case.

 

method CompareToIgnoreCase(Value: String): Int32

 

Int32 CompareToIgnoreCase(String Value)

 

func CompareToIgnoreCase(_ Value: String) -> Int32

 

Int32 CompareToIgnoreCase(String Value)

Parameters:

  • Value:

Contains

Check if a string is contained in another string.

 

method Contains(Value: String): Boolean

 

Boolean Contains(String Value)

 

func Contains(_ Value: String) -> Boolean

 

Boolean Contains(String Value)

Parameters:

  • Value:

CopyTo

Copy a string to an array of char.

 

method CopyTo(SourceIndex: Int32; destination: array of Char; DestinationIndex: Int32; Count: Int32)

 

void CopyTo(Int32 SourceIndex, Char[] destination, Int32 DestinationIndex, Int32 Count)

 

func CopyTo(_ SourceIndex: Int32, _ destination: Char..., _ DestinationIndex: Int32, _ Count: Int32)

 

void CopyTo(Int32 SourceIndex, Char[] destination, Int32 DestinationIndex, Int32 Count)

Parameters:

  • SourceIndex:
  • destination:
  • DestinationIndex:
  • Count:

EndsWith

Returns true if a string ends with a value.

 

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

 

Boolean EndsWith(String Value, Boolean aInvariant)

 

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

 

Boolean EndsWith(String Value, Boolean aInvariant)

Parameters:

  • Value:
  • aInvariant:

Equals (Object): Boolean  override virtual

Check if a string is equal to another string.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj:

Equals (String): Boolean

Check if a string is equal to another string.

 

method Equals(Value: String): Boolean

 

Boolean Equals(String Value)

 

func Equals(_ Value: String) -> Boolean

 

Boolean Equals(String Value)

Parameters:

  • Value:

EqualsIgnoreCase

Check if a string is equal to another string.

 

method EqualsIgnoreCase(Value: String): Boolean

 

Boolean EqualsIgnoreCase(String Value)

 

func EqualsIgnoreCase(_ Value: String) -> Boolean

 

Boolean EqualsIgnoreCase(String Value)

Parameters:

  • Value:

EqualsIgnoreCaseInvariant

Check if a string is equal to another string.

 

method EqualsIgnoreCaseInvariant(Value: String): Boolean

 

Boolean EqualsIgnoreCaseInvariant(String Value)

 

func EqualsIgnoreCaseInvariant(_ Value: String) -> Boolean

 

Boolean EqualsIgnoreCaseInvariant(String Value)

Parameters:

  • Value:

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetEnumerator

Returns an iterator for this class.

 

method GetEnumerator: IEnumerator<Char>

 

IEnumerator<Char> GetEnumerator()

 

func GetEnumerator() -> IEnumerator<Char>

 

IEnumerator<Char> GetEnumerator()

GetHashCode  override virtual

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IndexOf (String): Int32

Returns the index of the substring Value in this string, or -1 if it's not found.

 

method IndexOf(Value: String): Int32

 

Int32 IndexOf(String Value)

 

func IndexOf(_ Value: String) -> Int32

 

Int32 IndexOf(String Value)

Parameters:

  • Value:

IndexOf (String, Int32): Int32

Returns the index of the substring Value in this string, or -1 if it's not found; starts searching at aStartfromIndex.

 

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

 

Int32 IndexOf(String Value, Int32 aStartFromIndex)

 

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

 

Int32 IndexOf(String Value, Int32 aStartFromIndex)

Parameters:

  • Value:
  • aStartFromIndex:

IndexOfAny

Returns the index of any char in the array or -1 if it's not there.

 

method IndexOfAny(anyOf: array of Char): Int32

 

Int32 IndexOfAny(Char[] anyOf)

 

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

 

Int32 IndexOfAny(Char[] anyOf)

Parameters:

  • anyOf:

Insert

Insert a string at the given position and return the new strnig

 

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

 

String! Insert(Int32 aIndex, String aNewValue)

 

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

 

String! Insert(Int32 aIndex, String aNewValue)

Parameters:

  • aIndex:
  • aNewValue:

LastIndexOf (String): Int32

Returns the last index of the substring Value in this string, or -1 if it's not found.

 

method LastIndexOf(Value: String): Int32

 

Int32 LastIndexOf(String Value)

 

func LastIndexOf(_ Value: String) -> Int32

 

Int32 LastIndexOf(String Value)

Parameters:

  • Value:

LastIndexOf (String, Int32): Int32

Returns the last index of the substring Value in this string, or -1 if it's not found.

 

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

 

Int32 LastIndexOf(String Value, Int32 aStartFromIndex)

 

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

 

Int32 LastIndexOf(String Value, Int32 aStartFromIndex)

Parameters:

  • Value:
  • aStartFromIndex:

LastIndexOfAny

Returns the last index of any of the characters in the array in this string, or -1 if it's not found.

 

method LastIndexOfAny(anyOf: array of Char): Int32

 

Int32 LastIndexOfAny(Char[] anyOf)

 

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

 

Int32 LastIndexOfAny(Char[] anyOf)

Parameters:

  • anyOf:

PadEnd (Int32): String

Adds spacing to the end of a string so it is at least TotalWidth.

 

method PadEnd(TotalWidth: Int32): String

 

String PadEnd(Int32 TotalWidth)

 

func PadEnd(_ TotalWidth: Int32) -> String

 

String PadEnd(Int32 TotalWidth)

Parameters:

  • TotalWidth:

PadEnd (Int32, Char): String

Adds spacing to the end of a string so it is at least TotalWidth.

 

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

 

String PadEnd(Int32 TotalWidth, Char PaddingChar)

 

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

 

String PadEnd(Int32 TotalWidth, Char PaddingChar)

Parameters:

  • TotalWidth:
  • PaddingChar:

PadStart (Int32): String

Adds spacing to the start of a string so it is at least TotalWidth.

 

method PadStart(TotalWidth: Int32): String

 

String PadStart(Int32 TotalWidth)

 

func PadStart(_ TotalWidth: Int32) -> String

 

String PadStart(Int32 TotalWidth)

Parameters:

  • TotalWidth:

PadStart (Int32, Char): String

Adds spacing to the start of a string so it is at least TotalWidth.

 

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

 

String PadStart(Int32 TotalWidth, Char PaddingChar)

 

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

 

String PadStart(Int32 TotalWidth, Char PaddingChar)

Parameters:

  • TotalWidth:
  • PaddingChar:

Remove (Int32): String

Remove from the string from startindex on.

 

method Remove(StartIndex: Int32): String

 

String Remove(Int32 StartIndex)

 

func Remove(_ StartIndex: Int32) -> String

 

String Remove(Int32 StartIndex)

Parameters:

  • StartIndex:

Remove (Int32, Int32): String

Remove from the string from startindex on, for a given length.

 

method Remove(StartIndex: Int32; Count: Int32): String

 

String Remove(Int32 StartIndex, Int32 Count)

 

func Remove(_ StartIndex: Int32, _ Count: Int32) -> String

 

String Remove(Int32 StartIndex, Int32 Count)

Parameters:

  • StartIndex:
  • Count:

Replace

Replace a substring in 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)

Parameters:

  • OldValue:
  • NewValue:

Split

Split a string on a given separator.

 

method Split(Separator: String; aRemoveEmptyEntries: Boolean; aMax: Int32): array of String

 

String[] Split(String Separator, Boolean aRemoveEmptyEntries, Int32 aMax)

 

func Split(_ Separator: String, _ aRemoveEmptyEntries: Boolean, _ aMax: Int32) -> String...

 

String[] Split(String Separator, Boolean aRemoveEmptyEntries, Int32 aMax)

Parameters:

  • Separator:
  • aRemoveEmptyEntries:
  • aMax:

StartsWith

Returns if a string starts with a value.

 

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

 

Boolean StartsWith(String Value, Boolean aInvariant)

 

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

 

Boolean StartsWith(String Value, Boolean aInvariant)

Parameters:

  • Value:
  • aInvariant:

Substring (Int32): not nullable String

Returns a substring of this string.

 

method Substring(StartIndex: Int32): not nullable String

 

String! Substring(Int32 StartIndex)

 

func Substring(_ StartIndex: Int32) -> String

 

String! Substring(Int32 StartIndex)

Parameters:

  • StartIndex:

Substring (Int32, Int32): not nullable String

Returns a substring 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(Int32 StartIndex, Int32 aLength)

Parameters:

  • StartIndex:
  • aLength:

ToAnsiChars

Convert this string to an array of ansichar.

 

method ToAnsiChars(aNullTerminate: Boolean): array of AnsiChar

 

AnsiChar[] ToAnsiChars(Boolean aNullTerminate)

 

func ToAnsiChars(_ aNullTerminate: Boolean) -> AnsiChar...

 

AnsiChar[] ToAnsiChars(Boolean aNullTerminate)

Parameters:

  • aNullTerminate:

ToCharArray (Boolean): array of Char

Convert this string to an array of char.

 

method ToCharArray(aNullTerminate: Boolean): array of Char

 

Char[] ToCharArray(Boolean aNullTerminate)

 

func ToCharArray(_ aNullTerminate: Boolean) -> Char...

 

Char[] ToCharArray(Boolean aNullTerminate)

Parameters:

  • aNullTerminate:

ToCharArray (Int32, Int32, Boolean): array of Char

Convert this string to an array of char.

 

method ToCharArray(StartIndex: Int32; aLength: Int32; aNullTerminate: Boolean): array of Char

 

Char[] ToCharArray(Int32 StartIndex, Int32 aLength, Boolean aNullTerminate)

 

func ToCharArray(_ StartIndex: Int32, _ aLength: Int32, _ aNullTerminate: Boolean) -> Char...

 

Char[] ToCharArray(Int32 StartIndex, Int32 aLength, Boolean aNullTerminate)

Parameters:

  • StartIndex:
  • aLength:
  • aNullTerminate:

ToLower (Boolean): String

Lowercase this string.

 

method ToLower(aInvariant: Boolean): String

 

String ToLower(Boolean aInvariant)

 

func ToLower(_ aInvariant: Boolean) -> String

 

String ToLower(Boolean aInvariant)

Parameters:

  • aInvariant:

ToLower (Locale): String

Lowercase this string.

 

method ToLower(aLocale: Locale): String

 

String ToLower(Locale aLocale)

 

func ToLower(_ aLocale: Locale) -> String

 

String ToLower(Locale aLocale)

Parameters:

  • aLocale:

ToLowerInvariant

Lowercase this string.

 

method ToLowerInvariant: String

 

String ToLowerInvariant()

 

func ToLowerInvariant() -> String

 

String ToLowerInvariant()

ToString  override virtual

Returns itself.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToUpper (Boolean): String

Uppercase this string.

 

method ToUpper(aInvariant: Boolean): String

 

String ToUpper(Boolean aInvariant)

 

func ToUpper(_ aInvariant: Boolean) -> String

 

String ToUpper(Boolean aInvariant)

Parameters:

  • aInvariant:

ToUpper (Locale): String

Uppercase this string.

 

method ToUpper(aLocale: Locale): String

 

String ToUpper(Locale aLocale)

 

func ToUpper(_ aLocale: Locale) -> String

 

String ToUpper(Locale aLocale)

Parameters:

  • aLocale:

ToUpperInvariant

Uppercase this string.

 

method ToUpperInvariant: String

 

String ToUpperInvariant()

 

func ToUpperInvariant() -> String

 

String ToUpperInvariant()

Trim

Trim this string at the start and end of whitespace characters.

 

method Trim: String

 

String Trim()

 

func Trim() -> String

 

String Trim()

Trim (array of Char): String

Trim this string at the start and end of aChars characters.

 

method Trim(aChars: array of Char): String

 

String Trim(Char[] aChars)

 

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

 

String Trim(Char[] aChars)

Parameters:

  • aChars:

TrimEnd

Trim this string at the end of whitespace characters.

 

method TrimEnd: String

 

String TrimEnd()

 

func TrimEnd() -> String

 

String TrimEnd()

TrimEnd (array of Char): String

Trim this string at the end of aChars characters.

 

method TrimEnd(aChars: array of Char): String

 

String TrimEnd(Char[] aChars)

 

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

 

String TrimEnd(Char[] aChars)

Parameters:

  • aChars:

TrimStart

Trim this string at the start of whitespace characters.

 

method TrimStart: String

 

String TrimStart()

 

func TrimStart() -> String

 

String TrimStart()

TrimStart (array of Char): String

Trim this string at the start of aChars characters.

 

method TrimStart(aChars: array of Char): String

 

String TrimStart(Char[] aChars)

 

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

 

String TrimStart(Char[] aChars)

Parameters:

  • aChars: