|
@@ -20,7 +20,7 @@ unit strutils;
|
|
interface
|
|
interface
|
|
|
|
|
|
uses
|
|
uses
|
|
- SysUtils;
|
|
|
|
|
|
+ SysUtils, Types;
|
|
|
|
|
|
{ ---------------------------------------------------------------------
|
|
{ ---------------------------------------------------------------------
|
|
Case insensitive search/replace
|
|
Case insensitive search/replace
|
|
@@ -217,6 +217,7 @@ function TrimLeftSet(const S: String;const CSet:Array of char): String;
|
|
Function TrimRightSet(const S: String;const CSet:Array of char): String;
|
|
Function TrimRightSet(const S: String;const CSet:Array of char): String;
|
|
function TrimSet(const S: String;const CSet:Array of char): String;
|
|
function TrimSet(const S: String;const CSet:Array of char): String;
|
|
|
|
|
|
|
|
+Function SplitString(const S, Delimiters: string): TStringDynArray;
|
|
|
|
|
|
type
|
|
type
|
|
SizeIntArray = array of SizeInt;
|
|
SizeIntArray = array of SizeInt;
|
|
@@ -2113,6 +2114,11 @@ begin
|
|
RemovePadChars(Result,cset);
|
|
RemovePadChars(Result,cset);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function SplitString(const S, Delimiters: string): TStringDynArray;
|
|
|
|
+begin
|
|
|
|
+ Result:=S.Split(Delimiters);
|
|
|
|
+end;
|
|
|
|
+
|
|
function StartsText(const ASubText, AText: string): Boolean; inline;
|
|
function StartsText(const ASubText, AText: string): Boolean; inline;
|
|
begin
|
|
begin
|
|
Result := AnsiStartsText(ASubText, AText);
|
|
Result := AnsiStartsText(ASubText, AText);
|