Commit Graph

37 Commits

Author SHA1 Message Date
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
mattias
509620e792 lazutils: made codepage conversion 1250 to UTF8 and back to 1250 lossless
git-svn-id: trunk@42011 -
2013-07-08 16:48:14 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
juha
603426fa54 LazUtils: fix problems in iso8859_15 encoding support. Issue #23874, patch from DCelso
git-svn-id: trunk@40266 -
2013-02-11 18:00:45 +00:00
juha
bee75f597a LazUtils: Support for iso8859_15 character encoding. Issue #23856, patch from DCelso
git-svn-id: trunk@40210 -
2013-02-08 21:11:04 +00:00
sekelsenmat
dac086ca0f Adds more encoding conversion support, patch from bug #23446
git-svn-id: trunk@39536 -
2012-12-14 11:59:46 +00:00
mattias
3f21a3c32a lazutils: renamed functions DBCSToUTF8, UTF8ToDBCS, fixed dbcs last char, using half space for asian tables
git-svn-id: trunk@38241 -
2012-08-14 21:01:39 +00:00
mattias
c93174f462 lazutils: lconvencoding: sorted
git-svn-id: trunk@38228 -
2012-08-12 12:03:32 +00:00
mattias
1bc9682635 codetools: fixed find declaration of a.b
git-svn-id: trunk@38227 -
2012-08-12 08:15:56 +00:00
mattias
9c9f62c013 lazutils: less hints
git-svn-id: trunk@35802 -
2012-03-07 11:55:37 +00:00
mattias
d468336cbb lconvencoding: simplified using iconvenc, define EnableIconvEnc if you want to use iconvenc
git-svn-id: trunk@33916 -
2011-12-02 20:21:18 +00:00
sekelsenmat
4b223aa89d Final fix for 20552
git-svn-id: trunk@33084 -
2011-10-26 02:38:40 +00:00
sekelsenmat
5f53fe15b9 Implements GetConsoleTextEncoding for Windows
git-svn-id: trunk@33079 -
2011-10-25 07:39:48 +00:00
sekelsenmat
9cd742005b Starts GetConsoleTextEncoding
git-svn-id: trunk@33078 -
2011-10-25 07:35:02 +00:00
sekelsenmat
ca38c9ebc5 Documents a routine
git-svn-id: trunk@33076 -
2011-10-25 06:13:19 +00:00
sekelsenmat
3ffd9d2af9 Moves lconvencoding.pas from the LCL to LazUtils
git-svn-id: trunk@32942 -
2011-10-17 11:36:24 +00:00