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:
sekelsenmat 2011-10-19 14:44:14 +00:00
parent c5a96ed67a
commit 29e7449f18
3 changed files with 11 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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.