mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 12:50:31 +02:00
Fix compilation of JVM platform after recent changes to Delete() and Insert()
git-svn-id: trunk@33904 -
This commit is contained in:
parent
fd66d70449
commit
7523e97d83
@ -63,6 +63,11 @@ procedure fpc_shortstr_to_chararray(out res: array of AnsiChar; const src: Short
|
||||
|
||||
Function fpc_shortstr_Copy(const s:shortstring;index:SizeInt;count:SizeInt):shortstring;compilerproc;
|
||||
function fpc_char_copy(c:AnsiChar;index : SizeInt;count : SizeInt): shortstring;compilerproc;
|
||||
{$ifndef VER3_0}
|
||||
Procedure fpc_shortstr_delete(var s:shortstring;index:SizeInt;count:SizeInt); compilerproc:fpc_in_delete_x_y_z;
|
||||
Procedure fpc_shortstr_insert(const source:shortstring;var s:shortstring;index:SizeInt); compilerproc:fpc_in_insert_x_y_z;
|
||||
Procedure fpc_shortstr_insert_char(source:Char;var s:shortstring;index:SizeInt); compilerproc:fpc_in_insert_x_y_z;
|
||||
{$endif VER3_0}
|
||||
|
||||
(*
|
||||
{$ifdef FPC_HAS_FEATURE_DYNARRAYS}
|
||||
@ -322,6 +327,10 @@ Function fpc_AnsiStr_Compare_equal(const S1,S2 : RawByteString): SizeInt; compil
|
||||
{ special declaration for the JVM }
|
||||
Procedure fpc_AnsiStr_SetLength (Var S : RawByteString; l : SizeInt{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}); compilerproc;
|
||||
Function fpc_ansistr_Copy (Const S : RawByteString; Index,Size : SizeInt): RawByteString;compilerproc;
|
||||
{$ifndef VER3_0}
|
||||
Procedure fpc_ansistr_insert (const Source : RawByteString; var S : RawByteString; Index : SizeInt); compilerproc:fpc_in_insert_x_y_z; rtlproc;
|
||||
Procedure fpc_ansistr_delete (var S : RawByteString; Index,Size: SizeInt); compilerproc:fpc_in_delete_x_y_z; rtlproc;
|
||||
{$endif VER3_0}
|
||||
{$ifdef EXTRAANSISHORT}
|
||||
//Function fpc_AnsiStr_ShortStr_Compare (Var S1 : Pointer; Var S2 : ShortString): SizeInt; compilerproc;
|
||||
{$endif EXTRAANSISHORT}
|
||||
@ -357,6 +366,10 @@ Procedure fpc_WideStr_RangeCheck(p: Pointer; index : SizeInt); compilerproc;
|
||||
|
||||
Procedure fpc_WideStr_SetLength (Var S : WideString; l : SizeInt); compilerproc;
|
||||
Function fpc_widestr_Copy (Const S : WideString; Index,Size : SizeInt) : WideString;compilerproc;
|
||||
{$ifndef VER3_0}
|
||||
Procedure fpc_widestr_insert (Const Source : WideString; Var S : WideString; Index : SizeInt); compilerproc:fpc_in_insert_x_y_z;
|
||||
Procedure fpc_widestr_delete (Var S : WideString; Index,Size: SizeInt); compilerproc:fpc_in_delete_x_y_z;
|
||||
{$endif VER3_0}
|
||||
{$ifndef FPC_WINLIKEWIDESTRING}
|
||||
function fpc_widestr_Unique(Var S : Pointer): Pointer; compilerproc;
|
||||
{$endif FPC_WINLIKEWIDESTRING}
|
||||
@ -408,6 +421,10 @@ Function fpc_UnicodeStr_Compare_equal(const S1,S2 : UnicodeString): SizeInt; com
|
||||
|
||||
Procedure fpc_UnicodeStr_SetLength (Var S : UnicodeString; l : SizeInt); compilerproc;
|
||||
Function fpc_unicodestr_Copy (Const S : UnicodeString; Index,Size : SizeInt) : UnicodeString;compilerproc;
|
||||
{$ifndef VER3_0}
|
||||
Procedure fpc_unicodestr_insert (Const Source : UnicodeString; Var S : UnicodeString; Index : SizeInt); compilerproc:fpc_in_insert_x_y_z;
|
||||
Procedure fpc_unicodestr_delete (Var S : UnicodeString; Index,Size: SizeInt); compilerproc:fpc_in_delete_x_y_z;
|
||||
{$endif VER3_0}
|
||||
//function fpc_unicodestr_Unique(Var S : Pointer): Pointer; compilerproc;
|
||||
Function fpc_Char_To_UChar(const c : AnsiChar): UnicodeChar; compilerproc;
|
||||
Function fpc_UChar_To_Char(const c : UnicodeChar): AnsiChar; compilerproc;
|
||||
|
@ -458,9 +458,11 @@ var
|
||||
|
||||
|
||||
{ Shortstring functions }
|
||||
{$ifdef VER3_0}
|
||||
Procedure Delete(var s:shortstring;index:SizeInt;count:SizeInt);
|
||||
Procedure Insert(const source:shortstring;var s:shortstring;index:SizeInt);
|
||||
Procedure Insert(source:Char;var s:shortstring;index:SizeInt);
|
||||
{$endif VER3_0}
|
||||
Function Pos(const substr:shortstring;const s:shortstring; Offset: Sizeint = 1):SizeInt;
|
||||
Function Pos(C:Char;const s:shortstring; Offset: Sizeint = 1):SizeInt;
|
||||
{$ifdef FPC_HAS_FEATURE_ANSISTRINGS}
|
||||
@ -511,8 +513,10 @@ function pos(const substr : shortstring;c:char; Offset : Sizeint=1): SizeInt;
|
||||
Procedure UniqueString(var S : RawByteString);{$ifdef FPC_HAS_CPSTRING}rtlproc;{$endif FPC_HAS_CPSTRING}external name 'FPC_ANSISTR_UNIQUE';
|
||||
Function Pos (const Substr : RawByteString; const Source : RawByteString; Offset: Sizeint = 1) : SizeInt;
|
||||
Function Pos (c : AnsiChar; const s : RawByteString; Offset: Sizeint = 1) : SizeInt;
|
||||
{$ifdef VER3_0}
|
||||
Procedure Insert (const Source : RawByteString; var S : RawByteString; Index : SizeInt);{$ifdef FPC_HAS_CPSTRING}rtlproc;{$endif FPC_HAS_CPSTRING}
|
||||
Procedure Delete (var S : RawByteString; Index,Size: SizeInt);{$ifdef FPC_HAS_CPSTRING}rtlproc;{$endif FPC_HAS_CPSTRING}
|
||||
{$endif VER3_0}
|
||||
Function StringOfChar(c : Ansichar;l : SizeInt) : AnsiString;
|
||||
function upcase(const s : ansistring) : ansistring;
|
||||
function lowercase(const s : ansistring) : ansistring;
|
||||
|
@ -694,7 +694,7 @@ end;
|
||||
|
||||
|
||||
{$define FPC_HAS_DELETE_UNICODESTR}
|
||||
Procedure Delete (Var S : UnicodeString; Index,Size: SizeInt);
|
||||
Procedure {$ifdef VER3_0}Delete{$else}fpc_unicodestr_delete{$endif} (Var S : UnicodeString; Index,Size: SizeInt);
|
||||
Var
|
||||
LS : SizeInt;
|
||||
sb: JLStringBuilder;
|
||||
@ -719,7 +719,7 @@ end;
|
||||
|
||||
|
||||
{$define FPC_HAS_INSERT_UNICODESTR}
|
||||
Procedure Insert (Const Source : UnicodeString; Var S : UnicodeString; Index : SizeInt);
|
||||
Procedure {$ifdef VER3_0}Insert{$else}fpc_unicodestr_insert{$endif} (Const Source : UnicodeString; Var S : UnicodeString; Index : SizeInt);
|
||||
var
|
||||
Temp : UnicodeString;
|
||||
LS : SizeInt;
|
||||
|
Loading…
Reference in New Issue
Block a user