mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 09:19:17 +02:00
Disables the new widestring manager for fpc 2.7 and moves some comented routines to proper place
git-svn-id: trunk@32982 -
This commit is contained in:
parent
c5a96ed67a
commit
29e7449f18
@ -34,6 +34,12 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, lazutf8;
|
||||
|
||||
//function UTF16CharacterLength(p: PWideChar): integer;
|
||||
//function UTF16Length(const s: widestring): PtrInt;
|
||||
//function UTF16Length(p: PWideChar; WordCount: PtrInt): PtrInt;
|
||||
//function UTF16CharacterToUnicode(p: PWideChar; out CharLen: integer): Cardinal;
|
||||
//function UnicodeToUTF16(u: cardinal): widestring;
|
||||
|
||||
function UnicodeLowercase(u: cardinal): cardinal;
|
||||
function UTF8LowerCaseViaTables(const s: utf8string): utf8string;
|
||||
|
||||
|
@ -69,11 +69,7 @@ function UTF8UpperCase(const AInStr: utf8string; ALanguage: utf8string=''): utf8
|
||||
|
||||
//procedure AssignUTF8ListToAnsi(UTF8List, AnsiList: TStrings);
|
||||
|
||||
//function UTF16CharacterLength(p: PWideChar): integer;
|
||||
//function UTF16Length(const s: widestring): PtrInt;
|
||||
//function UTF16Length(p: PWideChar; WordCount: PtrInt): PtrInt;
|
||||
//function UTF16CharacterToUnicode(p: PWideChar; out CharLen: integer): Cardinal;
|
||||
//function UnicodeToUTF16(u: cardinal): widestring;}
|
||||
}
|
||||
|
||||
//compare functions
|
||||
|
||||
|
@ -22,10 +22,13 @@ interface
|
||||
|
||||
uses SysUtils, lazutf8, lconvencoding;
|
||||
|
||||
{$IFNDEF VER2_7}
|
||||
procedure SetPasWidestringManager;
|
||||
{$ENDIF}
|
||||
|
||||
implementation
|
||||
|
||||
{$IFNDEF VER2_7}
|
||||
procedure fpc_rangeerror; [external name 'FPC_RANGEERROR'];
|
||||
|
||||
procedure Wide2AnsiMove(source:pwidechar;var dest:ansistring;len:SizeInt);
|
||||
@ -417,4 +420,5 @@ end;
|
||||
|
||||
initialization
|
||||
SetPasWideStringManager;
|
||||
{$ENDIF}
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user