diff options
author | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-02-05 18:01:04 +0000 |
---|---|---|
committer | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-02-05 18:01:04 +0000 |
commit | c65918fbc877f5c8a8830d9dfb344b92b5e3549b (patch) | |
tree | 15a450e118c656551ef1ec9246c2035f816902bd /rtl/inc/compproc.inc | |
parent | 5ee36366b2d070ce970f40f14f0cfc031f870f37 (diff) | |
download | fpc-c65918fbc877f5c8a8830d9dfb344b92b5e3549b.tar.gz |
- Removed string conversion helpers that are not actually used by compiler code generation (duplicated pwidechar/punicodechar stuff).
- Removed one copy of duplicated utf8 encode/decode procedures.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@20262 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/inc/compproc.inc')
-rw-r--r-- | rtl/inc/compproc.inc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/rtl/inc/compproc.inc b/rtl/inc/compproc.inc index cd46f3ad5b..10187a4f9b 100644 --- a/rtl/inc/compproc.inc +++ b/rtl/inc/compproc.inc @@ -281,12 +281,7 @@ Function fpc_widestr_Copy (Const S : WideString; Index,Size : SizeInt) : WideSt {$ifndef FPC_WINLIKEWIDESTRING} function fpc_widestr_Unique(Var S : Pointer): Pointer; compilerproc; {$endif FPC_WINLIKEWIDESTRING} -Function fpc_WChar_To_AnsiStr(const c : WideChar{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}): AnsiString; compilerproc; -Function fpc_WChar_To_WideStr(const c : WideChar): WideString; compilerproc; Function fpc_UChar_To_WideStr(const c : WideChar): WideString; compilerproc; -{$endif FPC_HAS_FEATURE_WIDESTRINGS} - -{$ifdef FPC_HAS_FEATURE_WIDESTRINGS} Function fpc_PWideChar_To_WideStr(const p : pwidechar): widestring; compilerproc; {$endif FPC_HAS_FEATURE_WIDESTRINGS} {$endif ndef FPC_WIDESTRING_EQUAL_UNICODESTRING} @@ -312,12 +307,6 @@ Function fpc_Char_To_UnicodeStr(const c : Char): UnicodeString; compilerproc; Function fpc_PChar_To_UnicodeStr(const p : pchar): UnicodeString; compilerproc; Function fpc_CharArray_To_UnicodeStr(const arr: array of char; zerobased: boolean = true): UnicodeString; compilerproc; procedure fpc_unicodestr_to_chararray(out res: array of char; const src: UnicodeString); compilerproc; -procedure fpc_shortstr_to_unicodechararray(out res: array of unicodechar; const src: ShortString); compilerproc; -procedure fpc_ansistr_to_unicodechararray(out res: array of unicodechar; const src: AnsiString); compilerproc; -procedure fpc_unicodestr_to_unicodechararray(out res: array of unicodechar; const src: UnicodeString); compilerproc; -procedure fpc_UnicodeCharArray_To_ShortStr(out res : shortstring;const arr: array of unicodechar; zerobased: boolean = true); compilerproc; -Function fpc_UnicodeCharArray_To_AnsiStr(const arr: array of unicodechar; {$ifdef FPC_HAS_CPSTRING}cp : TSystemCodePage;{$endif FPC_HAS_CPSTRING} zerobased: boolean = true): AnsiString; compilerproc; -Function fpc_UnicodeCharArray_To_UnicodeStr(const arr: array of unicodechar; zerobased: boolean = true): UnicodeString; compilerproc; procedure fpc_WideCharArray_To_ShortStr(out res : shortstring;const arr: array of widechar; zerobased: boolean = true); compilerproc; Function fpc_WideCharArray_To_AnsiStr(const arr: array of widechar; {$ifdef FPC_HAS_CPSTRING}cp : TSystemCodePage;{$endif FPC_HAS_CPSTRING} zerobased: boolean = true): AnsiString; compilerproc; Function fpc_WideCharArray_To_WideStr(const arr: array of widechar; zerobased: boolean = true): WideString; compilerproc; @@ -341,31 +330,16 @@ function fpc_unicodestr_Unique(Var S : Pointer): Pointer; compilerproc; Function fpc_Char_To_UChar(const c : Char): UnicodeChar; compilerproc; Function fpc_UChar_To_Char(const c : UnicodeChar): Char; compilerproc; Function fpc_UChar_To_UnicodeStr(const c : UnicodeChar): UnicodeString; compilerproc; -Function fpc_WChar_To_UnicodeStr(const c : WideChar): UnicodeString; compilerproc; Function fpc_UChar_To_AnsiStr(const c : UnicodeChar{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}): AnsiString; compilerproc; procedure fpc_WChar_To_ShortStr(out res : shortstring;const c : WideChar) compilerproc; -{$endif FPC_HAS_FEATURE_WIDESTRINGS} -{$ifdef FPC_HAS_FEATURE_WIDESTRINGS} -{$ifdef FPC_HAS_FEATURE_ANSISTRINGS} -Function fpc_PUnicodeChar_To_AnsiStr(const p : punicodechar{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}): ansistring; compilerproc; -{$endif FPC_HAS_FEATURE_ANSISTRINGS} -Function fpc_PUnicodeChar_To_UnicodeStr(const p : punicodechar): unicodestring; compilerproc; Function fpc_PWideChar_To_UnicodeStr(const p : pwidechar): unicodestring; compilerproc; -procedure fpc_PUnicodeChar_To_ShortStr(out res : shortstring;const p : punicodechar); compilerproc; -{$endif FPC_HAS_FEATURE_WIDESTRINGS} - -{$ifdef FPC_HAS_FEATURE_WIDESTRINGS} {$ifdef FPC_HAS_FEATURE_ANSISTRINGS} Function fpc_PWideChar_To_AnsiStr(const p : pwidechar{$ifdef FPC_HAS_CPSTRING};cp : TSystemCodePage{$endif FPC_HAS_CPSTRING}): ansistring; compilerproc; {$endif FPC_HAS_FEATURE_ANSISTRINGS} procedure fpc_PWideChar_To_ShortStr(out res : shortstring;const p : pwidechar); compilerproc; {$endif FPC_HAS_FEATURE_WIDESTRINGS} -{$ifdef FPC_HAS_FEATURE_WIDESTRINGS} -Function fpc_Char_To_WChar(const c : Char): WideChar; compilerproc; -Function fpc_WChar_To_Char(const c : WideChar): Char; compilerproc; -{$endif FPC_HAS_FEATURE_WIDESTRINGS} { $ifdef FPC_HAS_FEATURE_TEXTIO} { from text.inc } |