Commit Graph

65 Commits

Author SHA1 Message Date
Juha
74446557f6 Remove old deprecated functions and units. 2023-06-15 02:35:52 +03:00
Bart
0ae37a906c LConvEncoding: add EncodingCP865. Patch by Alexey Torgashin. Issue #40041. 2022-12-17 18:30:06 +01:00
Juha
f737b23e7c LazUtils: Add 4 encodings: ISO-8859-3, -4, -7, -13 to LConvEncoding. Issue #39806, patch by Alexey Torgashin. 2022-06-20 12:28:17 +03:00
Juha
3bea109b57 LazUtils: Add encoding ISO-8859-10 to LConvEncoding. Issue #39800, patch by Alexey Torgashin. 2022-06-20 09:59:08 +03:00
Juha
4b08ccf47b LazUtils: Add encoding ISO-8859-5 to LConvEncoding. Issue #39795, patch by Alexey Torgashin. 2022-06-13 19:46:22 +03:00
Juha
7cd0c6804d LazUtils: Add encoding ISO-8859-16 to LConvEncoding. Issue #39794, patch by Alexey Torgashin. 2022-06-12 18:50:23 +03:00
Juha
262fe00e31 LazUtils: Add ISO-8859-9 and ISO-8859-14 to the supported encoding list. Issue #39785, patch by Don Siders. 2022-06-08 11:52:12 +03:00
Juha
573be15eaf LazUtils: Add function ISO_8859_14ToUTF8 also to interface section. Issue #39784. 2022-06-07 23:08:33 +03:00
Juha
494fa2abc8 LazUtils: Add encoding ISO-8859-14 to LConvEncoding. Issue #39784, patch by Alexey Torgashin. 2022-06-07 13:00:43 +03:00
Juha
76f7524436 LazUtils: In UCS2BEToUTF8 and UCS2LEToUTF8 skip little/big endian BOM. Merge request !88 by Zaher Dirkey. 2022-04-16 12:41:31 +03:00
Juha
014d3b3a9f LazUtils: Add ISO-8859-9 encoding to LConvEncoding. Issue #39659, patch by Alexey Torgashin. 2022-03-03 16:14:29 +02:00
Bart
cb9d685f79 LConvEncoding: reverts #05765da982ab46e2486c6932648c71fd692a54d5 and #01e627e35da5030ccea4406cffbdf5b67b85b0b9 and resolves issue #39348 in a different way (by always setting the target's codepage when converting to UTF8). 2021-12-16 22:11:56 +01:00
Bart
01e627e35d LazUtils: LConvEncoding: change signature of TConvertEncodingFunction analogue to all XXXToUtf8() functions. Part of issue #39348; 2021-12-11 17:31:30 +01:00
Bart
5aa4ccaa47 LazUtils: LConvEncoding: remove all code that is disabled if FPC_HAS_CPSTRING is NOT defined,
since we do not support compiler versions < 3.0, so FPC_HAS_CPSTRING is always defined now.
2021-12-09 22:00:25 +01:00
Bart
05765da982 LazUtils: LConvEncoding: Fix not setting target codepage in various xxxToUtf8() functions. Issue #39348.
Note: ConvertAnsiToUtf8 not fixed yet.
2021-12-09 21:42:07 +01:00
juha
e344dcb11e LazUtils: Restore function KOI8ToUTF8, earlier renamed as KOI8RUToUTF8, and deprecate it.
git-svn-id: trunk@65449 -
2021-07-14 15:00:31 +00:00
mattias
efc5ef502b lazutils: UTF8BOMToUTF8: sanity check
git-svn-id: trunk@64700 -
2021-02-28 22:39:58 +00:00
juha
95c347474a LazUtils: In GetSupportedEncodings return codepage names as they are. They are already mixed case.
git-svn-id: trunk@64549 -
2021-02-12 10:33:10 +00:00
juha
618261511d LCL: Remove tests for FPC versions 2.x. Cannot be used anyway.
git-svn-id: trunk@64120 -
2020-11-10 09:50:20 +00:00
juha
1cd6dc6dd4 LazUtils: New units for encoding data tables. Can be used by external code. Issue #36078, patch from CudaText man.
git-svn-id: trunk@63642 -
2020-07-24 11:14:38 +00:00
juha
2013a99dc3 LazUtils: Support KOI8-R, KOI8-U and KOI8-RU codepages in LConvEncoding. Issue #37155, patch from eastorwest.
git-svn-id: trunk@63354 -
2020-06-15 10:10:02 +00:00
juha
2bc8095d8d LazUtils: Fix spelling in LConvEncoding. Issue #36492, patch from CudaText man.
git-svn-id: trunk@62471 -
2019-12-30 13:59:18 +00:00
juha
dd0a4014b6 LazUtils: LConvEncoding fix for CP936 and other DBCS codepages. Issue #36492, patch from CudaText man.
git-svn-id: trunk@62467 -
2019-12-29 23:18:57 +00:00
juha
cc40ad8b7f LazUtils: Move encoding page arrays from LConvEncoding to a new .inc file. Issue #36078.
git-svn-id: trunk@61971 -
2019-10-03 18:46:39 +00:00
juha
063096d568 LazUtils: Optimize LConvEncoding a little. Issue #36087, patch from Alexey Tor.
git-svn-id: trunk@61963 -
2019-10-03 18:26:28 +00:00
juha
07607b4bba LazUtils: Raise exception in UTF8To... functions, controlled by a global boolean. Issue #33686, patch from AlexeyT.
git-svn-id: trunk@59416 -
2018-11-01 08:39:09 +00:00
mattias
9b15983c25 lcl: fixed UCS2LEToUTF8 for 1byte niput, issue #33296
git-svn-id: trunk@57429 -
2018-03-02 11:47:30 +00:00
juha
6810c626df LazUtils: Change "Character" to "Codepoint" in LazUTF8 function names to be more accurate and to avoid confusion.
git-svn-id: trunk@56692 -
2017-12-11 19:44:22 +00:00
juha
920c072f0e LazUtils: Add, fix and unify header comments of many units.
git-svn-id: trunk@52518 -
2016-06-18 16:40:04 +00:00
bart
0c8df133dd LazUtils:
- An attempt to unify the defines for the different scenario's in the use of (not) codepage aware ansistrings
  and the use of the "Utf8 in RTL" feature.
  It makes for better separation of code and thus better readability and ease of maintainance (and in a later
  stadium it makes it easier to remove code that deals with non codepage aware ansistrings (fpc < 3.0)).
- Also replace (FPC_FULLVERSION >= xxxx) with FPC_HAS_CPSTRING where appropriate.
- Replace the custom HasCP define with built in FPC_HAS_CPSTRING define.

git-svn-id: trunk@50498 -
2015-11-24 16:23:18 +00:00
mattias
c8e7c3acb5 lazutils: lconvencoding: fixed using tables for lossless conversion back and forth
git-svn-id: trunk@50157 -
2015-10-24 21:46:16 +00:00
juha
5fc7132693 Use the new UTF-8 system by default. Can be disabled by define DisableUTF8RTL. EnableUTF8RTL is removed.
git-svn-id: trunk@50129 -
2015-10-20 17:20:11 +00:00
mattias
43bbbdf2d0 lazutils: fixed compialtion EnableUTF8RTL
git-svn-id: trunk@49866 -
2015-09-21 18:18:12 +00:00
mattias
9c680beb48 lazutils: lconvencoding: using system conversion only if available, extened ConvertEncodingFromUTF8 with parameter SetTargetCodePage, default is false for compatibility with code using 1.4 and below, bug #28485
git-svn-id: trunk@49859 -
2015-09-21 10:50:54 +00:00
juha
4285b7380f LazUtils: Use SetCodePage() from FPC 3.x for UTF8ToXXX() functions in lconvencoding.
git-svn-id: trunk@49503 -
2015-07-07 11:43:23 +00:00
juha
9c161101bc LazUtils: Add missing ISO-8859-15 entry to LConvEncoding. Issue #28209, patch from Alexey Torgashin.
git-svn-id: trunk@49232 -
2015-05-31 13:45:25 +00:00
zeljko
42e04b941f lconvencoding: added missing chars in utf8tocp437 for translation from croatian utf8 to cp437.
git-svn-id: trunk@49116 -
2015-05-20 08:40:01 +00:00
juha
749442f5a7 LazUtils: LConvEncoding refactoring, separate UTF-8 specific conversion functions. Issue #28093, patch from Alexey Torgashin.
git-svn-id: trunk@49059 -
2015-05-17 10:43:06 +00:00
juha
ed5a6cac42 LConvEncoding refactoring. Issue #28093, patch from Alexey Torgashin.
git-svn-id: trunk@49045 -
2015-05-16 11:09:15 +00:00
mattias
0769a21e22 lconvencoding: added Macintosh
git-svn-id: trunk@48295 -
2015-03-12 12:29:02 +00:00
mattias
9538b7bb59 lazutils: fixed empty result, issue #26835
git-svn-id: trunk@46480 -
2014-10-08 20:19:46 +00:00
maxim
6ece18cb3f Components, LazUtils and LeakView: fixed typos in comments
git-svn-id: trunk@45908 -
2014-07-18 00:09:34 +00:00
mattias
960e0f96d9 lazutils: added conversion KOI8U and KOI8RU
git-svn-id: trunk@43453 -
2013-11-17 21:12:10 +00:00
mattias
d814f77dcf lazutils: comment
git-svn-id: trunk@42294 -
2013-08-03 19:15:36 +00:00
mattias
49c1e4f62c lazutils: made codepage conversion 852,874,1257,1258 to UTF8 and back is lossless
git-svn-id: trunk@42029 -
2013-07-08 17:58:22 +00:00
mattias
0745efd94a lazutils: made codepage conversion 1255 to UTF8 and back to 1255 lossless
git-svn-id: trunk@42022 -
2013-07-08 17:34:44 +00:00
mattias
2fa21ad006 lazutils: made codepage conversion 1254 to UTF8 and back to 1254 lossless
git-svn-id: trunk@42020 -
2013-07-08 17:24:24 +00:00
mattias
b3d1d85a4b lazutils: made codepage conversion 1253 to UTF8 and back to 1253 lossless
git-svn-id: trunk@42018 -
2013-07-08 17:03:48 +00:00
mattias
300123e075 lazutils: made codepage conversion 1252 to UTF8 and back to 1252 lossless
git-svn-id: trunk@42016 -
2013-07-08 16:54:28 +00:00
mattias
5956369187 lazutils: made codepage conversion 1251 to UTF8 and back to 1251 lossless
git-svn-id: trunk@42013 -
2013-07-08 16:51:54 +00:00