Commit Graph

1233 Commits

Author SHA1 Message Date
Joost van der Sluis
bbe0b81f62 Lazutils: Fpmake.pp, added conditional dependency on winunits-base 2021-08-27 00:19:05 +02:00
Bart
840389dad3 LazFileUtils: make ResolveDots a little more consitent w.r.t. having the result ending with a PathDelim. Issue #37188. Do not merge to Fixes 2.2. 2021-08-20 18:43:37 +02: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
juha
2255df954a LazUtils: Fix building when directory is a Windows mount point. Issue #39120, patch by Alguien.
git-svn-id: trunk@65383 -
2021-07-06 18:52:45 +00:00
juha
07fbbd53b3 LazUtils: A minor optimization / tweak.
git-svn-id: trunk@65259 -
2021-06-17 22:42:20 +00:00
juha
a312cf8723 LazUtils: Make params of UTF8Process.RunCmdFromPath 'const'. Issue #39005, patch by CudaText man.
git-svn-id: trunk@65251 -
2021-06-16 21:38:36 +00:00
bart
7a69a2a702 LazUtf8: fix FindInvalidUtf8CodePoint for 3-byte encodings that encode for values reserved for UTF-16 surrogate halves.
git-svn-id: trunk@65246 -
2021-06-16 08:25:28 +00:00
mattias
91763f2247 set trunk version to 2.3.0
git-svn-id: trunk@65242 -
2021-06-15 14:00:39 +00:00
maxim
b0c766a26d LazUtils: deprecate UITypes and alias its types only for FPC 3.2.0 and up
git-svn-id: trunk@65235 -
2021-06-14 21:13:09 +00:00
martin
caa6a14163 FpDebug: "waitable section" / Protect some code from being entered twice
git-svn-id: trunk@65229 -
2021-06-14 08:12:49 +00:00
maxim
6c7c5f4911 LazUtils: fixed typos related to 'occur' word
git-svn-id: trunk@65197 -
2021-06-10 22:10:27 +00:00
mattias
8396e2d0e0 lazutils: fixed ConvertUTF8ToUTF16 U+1FFFFF
git-svn-id: trunk@65182 -
2021-06-06 18:12:00 +00:00
mattias
63af733452 lazutils: fixed ConvertUTF8ToUTF16 U+1F600 and added tests
git-svn-id: trunk@65181 -
2021-06-06 17:50:54 +00:00
mattias
43ae6df320 lazutils: ConvertUTF8ToUTF16 and UTF8CodepointToUnicode check $10FFFF
git-svn-id: trunk@65166 -
2021-06-02 08:44:47 +00:00
maxim
f831216af6 LazUtils: UITypes unit is deprecated and all its types are aliased to System.UITypes, which is available in FPC 3.2.0 and up and also includes the "web colors", like Delphi does, bug #38937.
git-svn-id: trunk@65164 -
2021-06-01 22:01:49 +00:00
mattias
6de8b92783 lazutils: UTF8FixBroken: fixing out of range and endless loop, added tests
git-svn-id: trunk@65163 -
2021-06-01 22:01:18 +00:00
mattias
c887c889e3 lazutils: FindInvalidUTF8Codepoint: check if bigger U+10FFFF
git-svn-id: trunk@65162 -
2021-06-01 21:02:23 +00:00
mattias
c54a8fa65a lazutils: less hints
git-svn-id: trunk@65012 -
2021-04-17 11:30:56 +00:00
mattias
4927175872 lazutils: less hints
git-svn-id: trunk@65011 -
2021-04-17 11:28:55 +00:00
martin
a6b862f417 LazLogger: fix missing inherited call / for TRefCountedObject
git-svn-id: trunk@64883 -
2021-03-28 20:26:15 +00:00
juha
60fe218c22 LazUtils: Remove a stray debugging statement. Issue #38649.
git-svn-id: trunk@64851 -
2021-03-21 18:02:28 +00:00
bart
966ee04907 LazUtils: in CopyDirTree() add a PathDelim to both SourceDir and TarGetDir before testing wether TarGetDir is a subdirectory of SourceDir. Issue #0038644.
git-svn-id: trunk@64845 -
2021-03-20 16:55:26 +00:00
juha
9046b533af LazUtils: New LazStartsStr and similar functions. StartsStr etc. in StrUtils return False for empty sub-string, thus Delphi incompatible.
git-svn-id: trunk@64743 -
2021-03-04 08:58:54 +00:00
mattias
efc5ef502b lazutils: UTF8BOMToUTF8: sanity check
git-svn-id: trunk@64700 -
2021-02-28 22:39:58 +00:00
mattias
59447e864b lazutils: less hints
git-svn-id: trunk@64685 -
2021-02-28 08:52:18 +00:00
juha
401d451c71 LazUtils: Revert the big TMask change. It must be worked on later.
git-svn-id: trunk@64675 -
2021-02-27 09:15:16 +00:00
martin
249e2b5f08 Fix Compile
git-svn-id: trunk@64670 -
2021-02-26 20:39:27 +00:00
juha
d82f15fb2b LazUtils: Replace TMask with a faster and better version from José Mejuto.
git-svn-id: trunk@64667 -
2021-02-26 16:17:16 +00:00
juha
b8a5b2df73 LazUtils: Update unit test for Masks.
git-svn-id: trunk@64666 -
2021-02-26 08:25:24 +00:00
juha
4113f5b16f LazUtils: Use a new exception type EMaskError for TMask. Helps testing a new implementation.
git-svn-id: trunk@64665 -
2021-02-25 10:13:11 +00:00
juha
26cd6c23a9 LazUtils: Update unit test for Masks.
git-svn-id: trunk@64661 -
2021-02-24 20:25:02 +00:00
juha
ccc0360221 LazUtils: Add Unicode text to Masks test project. Now fails with mask '[ä]'.
git-svn-id: trunk@64654 -
2021-02-23 17:47:06 +00:00
juha
564ca97446 LazUtils: Move unit test project for Masks from LCL dir to LazUtils dir.
git-svn-id: trunk@64653 -
2021-02-23 14:06:34 +00:00
juha
350c9735d0 LazUtils: Optimize PosI(), the case-insensitive version of Pos().
git-svn-id: trunk@64616 -
2021-02-18 12:28:20 +00:00
juha
3f78f0d62d New optimized functions in LazUtils: FilenameExtIs and FilenameExtIn. Used instead of CompareFileExt and similar.
git-svn-id: trunk@64583 -
2021-02-15 08:43:50 +00:00
mattias
62c37ad72a updated Makefiles
git-svn-id: trunk@64567 -
2021-02-13 13:01:14 +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
martin
54bf4844fc LazDebuggerFp: Improve shutdown of thread queue.
git-svn-id: trunk@64535 -
2021-02-11 22:40:15 +00:00
juha
77e6853ca6 Components: Reduce calls to LowerCase().
git-svn-id: trunk@64515 -
2021-02-10 13:43:15 +00:00
juha
db235fb49a LazUtils: Fix compilation with FPC 3.0.4. Add functions StartsStr and EndsStr.
git-svn-id: trunk@64514 -
2021-02-10 13:43:09 +00:00
juha
bd875ab2f5 LazUtils: Add case-insensitive functions PosI(), LazStartsText() and LazEndsText().
git-svn-id: trunk@64503 -
2021-02-08 19:09:17 +00:00
juha
e6d96156ec BuildIntf, IdeIntf, LazUtils: Use a faster compare method for case-insensitive strings and StringLists.
git-svn-id: trunk@64464 -
2021-02-05 11:28:07 +00:00
juha
de413141bf LazUtils: Fix and improve TLookupStringList and its example project.
git-svn-id: trunk@64460 -
2021-02-05 11:27:59 +00:00
juha
c32adb1c7f Instead of UTF8CompareText use AnsiCompareText which uses mostly system libraries.
git-svn-id: trunk@64437 -
2021-01-29 19:58:55 +00:00
juha
4c27531f6f LazUtils: Add function UTF8CompareTextP, use it in CompareFilenamesP.
git-svn-id: trunk@64391 -
2021-01-14 21:54:49 +00:00
juha
5d09547a8f LazUtils: Move related CompareFile... functions together in LazFileUtils. No functional changes.
git-svn-id: trunk@64390 -
2021-01-14 21:54:46 +00:00
juha
751852a44a LazUtils: New function UTF8CompareLatinTextFast. Use in IDE instead of UTF8CompareText.
git-svn-id: trunk@64385 -
2021-01-14 13:52:23 +00:00
juha
42850cfe4d LazUtils: Deprecate now obsolete unit LazUtf8Classes and remove its references from Lazarus code.
git-svn-id: trunk@64384 -
2021-01-14 12:41:32 +00:00
juha
36968885dd LazUtils: Rename function FilenameIsPascalUnit -> FilenameHasPascalExt. Clashed with a function in Codetools. Update references.
git-svn-id: trunk@64376 -
2021-01-11 16:16:58 +00:00
juha
3ea7788cbf Optimize CompareFileExt in different ways. Comparison of FPC/Lazarus generated files can be case-sensitive.
git-svn-id: trunk@64374 -
2021-01-10 19:07:52 +00:00