mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:09:18 +02:00
* PChar -> PansiChar
This commit is contained in:
parent
fdd26e6fca
commit
7493e04015
@ -70,7 +70,7 @@ end;
|
|||||||
|
|
||||||
{ StrPCopy copies the pascal string Source to Dest and returns Dest }
|
{ StrPCopy copies the pascal string Source to Dest and returns Dest }
|
||||||
|
|
||||||
function StrPCopy(Dest: PAnsiChar; Const Source: string): PAnsiChar;overload;
|
function StrPCopy(Dest: PAnsiChar; Const Source: RawByteString): PAnsiChar;overload;
|
||||||
begin
|
begin
|
||||||
result := StrMove(Dest, PAnsiChar(Source), length(Source)+1);
|
result := StrMove(Dest, PAnsiChar(Source), length(Source)+1);
|
||||||
end ;
|
end ;
|
||||||
@ -78,7 +78,7 @@ end ;
|
|||||||
{ StrPLCopy copies MaxLen or less characters from the pascal string
|
{ StrPLCopy copies MaxLen or less characters from the pascal string
|
||||||
Source to Dest and returns Dest }
|
Source to Dest and returns Dest }
|
||||||
|
|
||||||
function StrPLCopy(Dest: PAnsiChar; Const Source: string; MaxLen: SizeUInt): PAnsiChar;overload;
|
function StrPLCopy(Dest: PAnsiChar; Const Source: RawByteString; MaxLen: SizeUInt): PAnsiChar;overload;
|
||||||
var Count: SizeUInt;
|
var Count: SizeUInt;
|
||||||
begin
|
begin
|
||||||
Result := Dest;
|
Result := Dest;
|
||||||
|
@ -37,8 +37,8 @@ function StrNew(p : PAnsiChar) : PAnsiChar; overload;
|
|||||||
|
|
||||||
{ Different from strings unit - ansistrings or different behaviour }
|
{ Different from strings unit - ansistrings or different behaviour }
|
||||||
function StrPas(Str: PAnsiChar): string;overload;
|
function StrPas(Str: PAnsiChar): string;overload;
|
||||||
function StrPCopy(Dest: PAnsiChar; Const Source: string): PAnsiChar;overload;
|
function StrPCopy(Dest: PAnsiChar; Const Source: RawByteString): PAnsiChar;overload;
|
||||||
function StrPLCopy(Dest: PAnsiChar; Const Source: string; MaxLen: SizeUInt): PAnsiChar;overload;
|
function StrPLCopy(Dest: PAnsiChar; Const Source: RawByteString; MaxLen: SizeUInt): PAnsiChar;overload;
|
||||||
function StrAlloc(Size: cardinal): PAnsiChar;
|
function StrAlloc(Size: cardinal): PAnsiChar;
|
||||||
procedure StrDispose(Str: PAnsiChar);
|
procedure StrDispose(Str: PAnsiChar);
|
||||||
function StrBufSize(Str: PAnsiChar): Cardinal;
|
function StrBufSize(Str: PAnsiChar): Cardinal;
|
||||||
|
Loading…
Reference in New Issue
Block a user