|
@@ -73,23 +73,23 @@ function LowerCase(const s: string): string; overload;
|
|
{ the compiler can't decide else if it should use the char or the ansistring
|
|
{ the compiler can't decide else if it should use the char or the ansistring
|
|
version for a variant }
|
|
version for a variant }
|
|
function LowerCase(const V: variant): string; overload;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function LowerCase(const V: variant): string; overload;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
-function CompareStr(const S1, S2: string): Integer; overload;
|
|
|
|
|
|
+function CompareStr(const S1, S2: string): SizeInt; overload;
|
|
function CompareMemRange(P1, P2: Pointer; Length: PtrUInt): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function CompareMemRange(P1, P2: Pointer; Length: PtrUInt): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function CompareMem(P1, P2: Pointer; Length: PtrUInt): Boolean;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function CompareMem(P1, P2: Pointer; Length: PtrUInt): Boolean;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
-function CompareText(const S1, S2: string): integer;
|
|
|
|
|
|
+function CompareText(const S1, S2: string): SizeInt;
|
|
function SameText(const s1,s2:String):Boolean;
|
|
function SameText(const s1,s2:String):Boolean;
|
|
function SameStr(const s1,s2:String):Boolean;
|
|
function SameStr(const s1,s2:String):Boolean;
|
|
|
|
|
|
function AnsiUpperCase(const s: string): string;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiUpperCase(const s: string): string;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiLowerCase(const s: string): string;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiLowerCase(const s: string): string;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
-function AnsiCompareStr(const S1, S2: string): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
-function AnsiCompareText(const S1, S2: string): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
|
|
+function AnsiCompareStr(const S1, S2: string): SizeInt;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
+function AnsiCompareText(const S1, S2: string): SizeInt;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiSameText(const s1,s2:String):Boolean;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiSameText(const s1,s2:String):Boolean;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiSameStr(const s1,s2:String):Boolean;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiSameStr(const s1,s2:String):Boolean;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
-function AnsiStrComp(S1, S2: PChar): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
-function AnsiStrIComp(S1, S2: PChar): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
-function AnsiStrLComp(S1, S2: PChar; MaxLen: cardinal): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
-function AnsiStrLIComp(S1, S2: PChar; MaxLen: cardinal): integer;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
|
|
+function AnsiStrComp(S1, S2: PChar): SizeInt;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
+function AnsiStrIComp(S1, S2: PChar): SizeInt;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
+function AnsiStrLComp(S1, S2: PChar; MaxLen: SizeUInt): SizeInt;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
|
|
+function AnsiStrLIComp(S1, S2: PChar; MaxLen: SizeUInt): SizeInt;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiStrLower(Str: PChar): PChar;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiStrLower(Str: PChar): PChar;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiStrUpper(Str: PChar): PChar;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiStrUpper(Str: PChar): PChar;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
|
function AnsiLastChar(const S: string): PChar;
|
|
function AnsiLastChar(const S: string): PChar;
|
|
@@ -218,9 +218,9 @@ function BoolToStr(B: Boolean;const TrueS,FalseS:string): string; inline;
|
|
function StrToBoolDef(const S: string; Default: Boolean): Boolean;
|
|
function StrToBoolDef(const S: string; Default: Boolean): Boolean;
|
|
function TryStrToBool(const S: string; out Value: Boolean): Boolean;
|
|
function TryStrToBool(const S: string; out Value: Boolean): Boolean;
|
|
|
|
|
|
-function LastDelimiter(const Delimiters, S: string): Integer;
|
|
|
|
|
|
+function LastDelimiter(const Delimiters, S: string): SizeInt;
|
|
function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;
|
|
function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;
|
|
-Function IsDelimiter(const Delimiters, S: string; Index: Integer): Boolean;
|
|
|
|
|
|
+Function IsDelimiter(const Delimiters, S: string; Index: SizeInt): Boolean;
|
|
|
|
|
|
function SScanf(const s: string; const fmt : string;const Pointers : array of Pointer) : Integer;
|
|
function SScanf(const s: string; const fmt : string;const Pointers : array of Pointer) : Integer;
|
|
|
|
|
|
@@ -228,12 +228,12 @@ function SScanf(const s: string; const fmt : string;const Pointers : array of Po
|
|
Type
|
|
Type
|
|
TMbcsByteType = (mbSingleByte, mbLeadByte, mbTrailByte);
|
|
TMbcsByteType = (mbSingleByte, mbLeadByte, mbTrailByte);
|
|
|
|
|
|
-Function ByteType(const S: string; Index: Integer): TMbcsByteType;
|
|
|
|
-Function StrByteType(Str: PChar; Index: Cardinal): TMbcsByteType;
|
|
|
|
-Function ByteToCharLen(const S: string; MaxLen: Integer): Integer;
|
|
|
|
-Function CharToByteLen(const S: string; MaxLen: Integer): Integer;
|
|
|
|
-Function ByteToCharIndex(const S: string; Index: Integer): Integer;
|
|
|
|
-Function StrCharLength(const Str: PChar): Integer;
|
|
|
|
|
|
+Function ByteType(const S: string; Index: SizeUInt): TMbcsByteType;
|
|
|
|
+Function StrByteType(Str: PChar; Index: SizeUInt): TMbcsByteType;
|
|
|
|
+Function ByteToCharLen(const S: string; MaxLen: SizeInt): SizeInt;
|
|
|
|
+Function CharToByteLen(const S: string; MaxLen: SizeInt): SizeInt;
|
|
|
|
+Function ByteToCharIndex(const S: string; Index: SizeInt): SizeInt;
|
|
|
|
+Function StrCharLength(const Str: PChar): SizeInt;
|
|
function StrNextChar(const Str: PChar): PChar;
|
|
function StrNextChar(const Str: PChar): PChar;
|
|
|
|
|
|
|
|
|