String ====== String methods ---- String.Before ------------- ``` function String.Before(Value: String): String; ``` ---- String.After ------------ ``` function String.After(Value: String): String; ``` ---- String.StartsWith ----------------- ``` function String.StartsWith(Value: String; CaseSenstive: Boolean = True): Boolean; ``` ---- String.Equals ------------- ``` function String.Equals(Other: String): Boolean; ``` ---- String.EqualsIgnoreCase ----------------------- ``` function String.EqualsIgnoreCase(Other: String): Boolean; ``` ---- String.Compare -------------- ``` function String.Compare(Other: String): Integer; ``` ---- String.Similarity ----------------- ``` function String.Similarity(Other: String): Double; ``` ---- String.Hash ----------- ``` function String.Hash(Seed: UInt32 = 0): UInt32; ``` ---- String.EndsWith --------------- ``` function String.EndsWith(Value: String; CaseSenstive: Boolean = True): Boolean; ``` ---- String.IsUpper -------------- ``` function String.IsUpper(): Boolean; ``` ---- String.IsLower -------------- ``` function String.IsLower(): Boolean; ``` ---- String.ToUpper -------------- ``` function String.ToUpper(): String; ``` ---- String.ToLower -------------- ``` function String.ToLower(): String; ``` ---- String.Capitalize ----------------- ``` function String.Capitalize(): String; ``` ---- String.SwapCase --------------- ``` function String.SwapCase(): String; ``` ---- String.Join ----------- ``` function String.Join(Values: TStringArray): String; ``` ---- String.Split ------------ ``` function String.Split(Seperator: String; ExcludeEmpty: Boolean = True): TStringArray; ``` ---- String.SplitLines ----------------- ``` function String.SplitLines: TStringArray; ``` ---- String.PadLeft -------------- ``` function String.PadLeft(Count: Integer; PaddingChar: Char = #32): String; ``` ---- String.PadRight --------------- ``` function String.PadRight(Count: Integer; PaddingChar: Char = #32): String; ``` ---- String.Partition ---------------- ``` function String.Partition(Value: String): TStringArray; ``` ---- String.Replace -------------- ``` function String.Replace(OldValue: String; NewValue: String): String; ``` ---- String.Replace -------------- ``` function String.Replace(OldValue: String; NewValue: String; ReplaceFlags: TReplaceFlags): String; ``` ---- String.Trim ----------- ``` function String.Trim: String; ``` ---- String.TrimLeft --------------- ``` function String.TrimLeft: String; ``` ---- String.TrimRight ---------------- ``` function String.TrimRight: String; ``` ---- String.Trim ----------- ``` function String.Trim(TrimChars: array of Char): String; ``` ---- String.TrimLeft --------------- ``` function String.TrimLeft(TrimChars: array of Char): String; ``` ---- String.TrimRight ---------------- ``` function String.TrimRight(TrimChars: array of Char): String; ``` ---- String.RegExprSplit ------------------- ``` function String.RegExprSplit(Pattern: String): TStringArray; ``` ---- String.RegExprFind ------------------ ``` function String.RegExprFind(Pattern: String): TRegExprMatch; ``` ---- String.RegExprFindAll --------------------- ``` function String.RegExprFindAll(Pattern: String): TRegExprMatchArray; ``` ---- String.RegExprExists -------------------- ``` function String.RegExprExists(Pattern: String): Boolean; ``` ---- String.CopyRange ---------------- ``` function String.CopyRange(StartIndex, EndIndex: Integer): String; ``` ---- String.DeleteRange ------------------ ``` procedure String.DeleteRange(StartIndex, EndIndex: Integer); ``` ---- String.Remove ------------- ``` function String.Remove(Value: String): Boolean; ``` ---- String.RemoveAll ---------------- ``` function String.RemoveAll(Value: String): Integer; ``` ---- String.IndexOf -------------- ``` function String.IndexOf(Value: String): Integer; ``` ---- String.IndexOf -------------- ``` function String.IndexOf(Value: String; Offset: Integer): Integer; ``` ---- String.LastIndexOf ------------------ ``` function String.LastIndexOf(Value: String): Integer; ``` ---- String.LastIndexOf ------------------ ``` function String.LastIndexOf(Value: String; Offset: Integer): Integer; ``` ---- String.IndicesOf ---------------- ``` function String.IndicesOf(Value: String): TIntegerArray; ``` ---- String.IndicesOf ---------------- ``` function String.IndicesOf(Value: String; Offset: Integer): TIntegerArray; ``` ---- String.Between -------------- ``` function String.Between(S1, S2: String): String; ``` ---- String.BetweenAll ----------------- ``` function String.BetweenAll(S1, S2: String): TStringArray; ``` ---- String.NumberChars ------------------ ``` function String.NumberChars: String; static; ``` ---- String.LowerChars ----------------- ``` function String.LowerChars: String; static; ``` ---- String.UpperChars ----------------- ``` function String.UpperChars: String; static; ``` ---- String.AlphaChars ----------------- ``` function String.AlphaChars: String; static; ``` ---- String.AlphaNumChars -------------------- ``` function String.AlphaNumChars: String; static; ``` ---- String.Extract -------------- ``` function String.Extract(Chars: array of Char): String; ``` ---- String.ExtractInteger --------------------- ``` function String.ExtractInteger(Default: Int64 = -1): Int64; ``` ---- String.ExtractFloat ------------------- ``` function String.ExtractFloat(Default: Double = -1): Double; ``` ---- String.IsAlphaNum ----------------- ``` function String.IsAlphaNum(): Boolean; ``` ---- String.IsInteger ---------------- ``` function String.IsInteger(): Boolean; ``` ---- String.IsFloat -------------- ``` function String.IsFloat(): Boolean; ``` ---- String.Count ------------ ``` function String.Count(Value: String): Integer; ``` ---- String.CountAll --------------- ``` function String.CountAll(Values: TStringArray): TIntegerArray; ``` ---- String.Contains --------------- ``` function String.Contains(Value: String; CaseSenstive: Boolean = True): Boolean; ``` ---- String.ContainsAny ------------------ ``` function String.ContainsAny(Values: TStringArray; CaseSenstive: Boolean = True): Boolean; ``` ---- String.IndexOfAny ----------------- ``` function String.IndexOfAny(Values: TStringArray): Integer; ``` ---- String.IndexOfAny ----------------- ``` function String.IndexOfAny(Values: TStringArray; Offset: Integer): Integer; ``` ---- String.Format ------------- ``` function String.Format(Args: TVariantArray): String; ``` ---- String.ToBytes -------------- ``` function String.ToBytes: TByteArray; ``` ---- String.ToBoolean ---------------- ``` function String.ToBoolean: Boolean; ``` ---- String.ToBoolean ---------------- ``` function String.ToBoolean(Default: Boolean): Boolean; ``` ---- String.ToInteger ---------------- ``` function String.ToInteger: Integer; ``` ---- String.ToInteger ---------------- ``` function String.ToInteger(Default: Integer): Integer; ``` ---- String.ToInt64 -------------- ``` function String.ToInt64: Int64; ``` ---- String.ToInt64 -------------- ``` function String.ToInt64(Default: Int64): Int64; ``` ---- String.ToSingle --------------- ``` function String.ToSingle: Single; ``` ---- String.ToSingle --------------- ``` function String.ToSingle(Default: Single): Single; ``` ---- String.ToDouble --------------- ``` function String.ToDouble: Double; ``` ---- String.ToDouble --------------- ``` function String.ToDouble(Default: Double): Double; ``` ---- String.ToDateTime ----------------- ``` function String.ToDateTime(Fmt: String; Def: TDateTime): TDateTime; ``` ---- * - ``` operator *(Left: String; Right: Integer): String; ``` ---- in -- ``` operator in(Left: String; Right: String): Boolean; ``` ---- in -- ``` operator in(Left: String; Right: TStringArray): Boolean; ``` ---- Char.IsAlphaNum --------------- ``` function Char.IsAlphaNum(): Boolean; ``` ---- Char.IsInteger -------------- ``` function Char.IsInteger(): Boolean; ``` ---- Char.IsFloat ------------ ``` function Char.IsFloat(): Boolean; ``` ---- Char.IsUpper ------------ ``` function Char.IsUpper(): Boolean; ``` ---- Char.IsLower ------------ ``` function Char.IsLower(): Boolean; ``` ---- Char.ToUpper ------------ ``` function Char.ToUpper(): String; ``` ---- Char.ToLower ------------ ``` function Char.ToLower(): String; ``` ---- Char.Capitalize --------------- ``` function Char.Capitalize(): String; ``` ---- Char.Join --------- ``` function Char.Join(Values: TStringArray): String; ``` ---- * - ``` operator *(Left: Char; Right: Integer): String; ``` ---- in -- ``` operator in(Left: Char; Right: String): Boolean; ``` ---- in -- ``` operator in(Left: Char; Right: TStringArray): Boolean; ```