mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 23:49:22 +02:00
- RTL: removed 'unimplementedwidestring' procedure and use 'unimplementedunicodestring' instead. Reduces bloat. Furthermore, a separate message about missing widestring manager is misleading, because there is only one wide/unicodestring manager that can be set.
git-svn-id: trunk@27233 -
This commit is contained in:
parent
8ad5e6fb26
commit
531c2d79e0
@ -942,39 +942,24 @@ function UTF8Encode(const s : WideString) : RawByteString;
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure unimplementedunicodestring; forward;
|
||||||
const
|
|
||||||
SNoWidestrings = 'This binary has no widestrings support compiled in.';
|
|
||||||
SRecompileWithWidestrings = 'Recompile the application with a widestrings-manager in the program uses clause.';
|
|
||||||
|
|
||||||
procedure unimplementedwidestring;
|
|
||||||
begin
|
|
||||||
{$ifdef FPC_HAS_FEATURE_CONSOLEIO}
|
|
||||||
If IsConsole then
|
|
||||||
begin
|
|
||||||
Writeln(StdErr,SNoWidestrings);
|
|
||||||
Writeln(StdErr,SRecompileWithWidestrings);
|
|
||||||
end;
|
|
||||||
{$endif FPC_HAS_FEATURE_CONSOLEIO}
|
|
||||||
HandleErrorAddrFrameInd(233,get_pc_addr,get_frame);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{$warnings off}
|
{$warnings off}
|
||||||
function GenericWideCase(const s : WideString) : WideString;
|
function GenericWideCase(const s : WideString) : WideString;
|
||||||
begin
|
begin
|
||||||
unimplementedwidestring;
|
unimplementedunicodestring;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function CompareWideString(const s1, s2 : WideString) : PtrInt;
|
function CompareWideString(const s1, s2 : WideString) : PtrInt;
|
||||||
begin
|
begin
|
||||||
unimplementedwidestring;
|
unimplementedunicodestring;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function CompareTextWideString(const s1, s2 : WideString): PtrInt;
|
function CompareTextWideString(const s1, s2 : WideString): PtrInt;
|
||||||
begin
|
begin
|
||||||
unimplementedwidestring;
|
unimplementedunicodestring;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$warnings on}
|
{$warnings on}
|
||||||
|
Loading…
Reference in New Issue
Block a user