Commit Graph

676 Commits

Author SHA1 Message Date
bart
3afb18b37f LazFileUtils: ResolveDots: respect AllowDirectorySeparators.
git-svn-id: trunk@42700 -
2013-09-09 11:50:06 +00:00
mattias
f66fa252fc IDE: renamed SetPathDelims to GetForcedPathDelims
git-svn-id: trunk@42698 -
2013-09-09 10:28:10 +00:00
mattias
f5dda02fe9 IDE: renamed DoPathDelims to ForcePathDelims
git-svn-id: trunk@42697 -
2013-09-09 10:18:24 +00:00
mattias
ac4996ff62 replaced SetDirSeparators with SetPathDelims
git-svn-id: trunk@42685 -
2013-09-08 20:58:12 +00:00
martin
49cd2ecb33 LazUtils: fixed string[0] runtime error
git-svn-id: trunk@42675 -
2013-09-08 09:54:59 +00:00
mattias
773f710bde IDE, codetools, lazutils: Changed DoDirSeparators calls with DoPathDelims calls
git-svn-id: trunk@42674 -
2013-09-08 07:40:06 +00:00
bart
82d7e00939 LazFileUtils: use AllowDirectorySeparators instead of hardcode '\' in FilenameIsWinAbsolute().
git-svn-id: trunk@42663 -
2013-09-07 11:26:20 +00:00
bart
2139b17c5c LazFileUtils: ExpandFilenameUTF8: return unaltered Filename if Filename uses ExtendedLengthPath naming scheme
on Windows.

git-svn-id: trunk@42662 -
2013-09-07 11:20:24 +00:00
bart
f10b9abc94 LazUtils: Use ResolveDots in FindDiskFilename(CaseInSensitive) to sanitize Filename.
git-svn-id: trunk@42660 -
2013-09-07 10:13:14 +00:00
martin
8aa8775ac4 Auto-generated changes to PO files
git-svn-id: trunk@42652 -
2013-09-06 23:01:30 +00:00
juha
79ad84f848 LazUtils: Remove test version of overridden InsertItem from TDictionaryStringList. It is called from FPC > 2.7.1. Solves issue #24964 although not the way it suggested.
git-svn-id: trunk@42649 -
2013-09-06 22:05:41 +00:00
bart
eab977d2b3 LazUtils: AllowDirectorySeparators instead of PathDelim in FindDiskFilename.
git-svn-id: trunk@42648 -
2013-09-06 18:15:16 +00:00
paul
f3358d8050 lazutils: fix compilation after cpstrrtl merge
git-svn-id: trunk@42642 -
2013-09-06 14:56:35 +00:00
bart
78fe9ed6eb LazUtils: when seraching for PathDelimiters use AllowDirectorySeparators instead of PathDelim.
Reason: compatibility with fpc RTL.

git-svn-id: trunk@42622 -
2013-09-05 17:55:50 +00:00
bart
25e6f7d70d LazUtils: in ResolveDots() don't convert anything if AFilename starts with \\?\
Follow up of r42602 #bdaf2d9c6e.

git-svn-id: trunk@42603 -
2013-09-04 22:42:15 +00:00
bart
bdaf2d9c6e LazUtils: in ResolveDots() don't convert \\ or / if AFilename starts with \\?\
(As per MS Specs anything after that must be takne literally?)

git-svn-id: trunk@42602 -
2013-09-04 21:57:26 +00:00
bart
f05ba71d75 LazUtils: in ResolveDots() convert '/'to '\' on Windows.
This allows for better removing of double path delimiters.
(WinApi accepts '//' and treats it as '\' , bot not so for '/\')

git-svn-id: trunk@42599 -
2013-09-04 19:16:08 +00:00
mattias
63ec3d92ee lazutils: clean up
git-svn-id: trunk@42589 -
2013-09-04 09:19:37 +00:00
martin
2d4a9df1ad LazUtils: Lazlogger prioritize last entry/param on command line
git-svn-id: trunk@42583 -
2013-09-04 09:14:20 +00:00
bart
276a50bbd4 LazUtf8: Utf8StringOfChar: fix compilation error on Darwin.
git-svn-id: trunk@42577 -
2013-09-03 15:18:19 +00:00
bart
eebd3d2f93 LazUtf8: Add routines for padding UTF8 strings:
- Utf8StringOfChar
- Utf8AddChar
- Utf8AddCharR
- Utf8PadLeft
- Utf8PadRight
- Utf8PadCenter

Issue #0024319

git-svn-id: trunk@42575 -
2013-09-03 12:10:41 +00:00
bart
1b9ad85931 LazFileUtils: fix FilenameIsWinAbsolute for WinCE.
git-svn-id: trunk@42566 -
2013-09-02 19:18:31 +00:00
mattias
98ea2c18a5 lazutils: fixed compilation darwin
git-svn-id: trunk@42372 -
2013-08-09 08:30:52 +00:00
mattias
8fb042dba7 lazutils: FindDefaultExecutablePath: added default param BaseDir
git-svn-id: trunk@42361 -
2013-08-05 19:33:31 +00:00
mattias
283ae2bad5 lazutils: merged code
git-svn-id: trunk@42360 -
2013-08-05 19:24:41 +00:00
mattias
d46e886263 lazutils: clean up
git-svn-id: trunk@42359 -
2013-08-05 19:19:30 +00:00
mattias
d814f77dcf lazutils: comment
git-svn-id: trunk@42294 -
2013-08-03 19:15:36 +00:00
mattias
de4ccacf56 lazutils: TMask.InitMaskString: use CaseSensitive
git-svn-id: trunk@42274 -
2013-08-03 11:41:21 +00:00
bart
19f20c96f5 TMaskList: Don't split masks on space (unless specified as separator in the constructor).
Issue #0024771.

git-svn-id: trunk@42268 -
2013-08-02 20:44:27 +00:00
mattias
09df703c97 lazutils: comments
git-svn-id: trunk@42251 -
2013-07-31 18:34:37 +00:00
mattias
60daa3a85d lazlogger: comments, patch #24808
git-svn-id: trunk@42248 -
2013-07-31 13:55:23 +00:00
mattias
45db0258ac lazutils: added MergeCmdLineParams
git-svn-id: trunk@42244 -
2013-07-30 15:37:48 +00:00
mattias
930a73f41a IDE: further migrated external tools
git-svn-id: trunk@42241 -
2013-07-30 14:36:34 +00:00
mattias
da82a33fdf IDE: fixed Makefile.compiled to contain inherited custom options
git-svn-id: trunk@42227 -
2013-07-29 10:48:35 +00:00
mattias
733b4108c6 lazutils: comment
git-svn-id: trunk@42211 -
2013-07-26 20:21:17 +00:00
mattias
d88afd8de1 lazutils: TPointerToPointerTree enumerators
git-svn-id: trunk@42200 -
2013-07-25 11:09:15 +00:00
mattias
b0d883f915 lazutils: xmlread: preserve whitespace between attributes
git-svn-id: trunk@42167 -
2013-07-21 08:21:39 +00:00
bart
05baacd6f0 LazFileUtils: No need for specific FindCloseUtf8 implementation: just use SysUtils.FindClose.
git-svn-id: trunk@42125 -
2013-07-17 21:50:02 +00:00
mattias
e3926122ff lazutils: laz2_write: write encoding UTF-8
git-svn-id: trunk@42110 -
2013-07-16 12:33:08 +00:00
mattias
3bef6f6695 lazutils: nicer unit name
git-svn-id: trunk@42108 -
2013-07-16 09:42:56 +00:00
mattias
24db82d4ba translations: German: updates from Swen Heinig
git-svn-id: trunk@42089 -
2013-07-14 21:51:15 +00:00
juha
ebf3655d31 Formatting
git-svn-id: trunk@42067 -
2013-07-12 14:57:30 +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
mattias
699c0cbfe6 lazutils: comments
git-svn-id: trunk@42003 -
2013-07-06 05:22:37 +00:00
mattias
7fe318a1a3 lazutils: inlined
git-svn-id: trunk@41953 -
2013-07-01 12:58:11 +00:00
mattias
69ae98e681 lazutils: TPointerToPointerTree.ClearWithFree
git-svn-id: trunk@41951 -
2013-07-01 11:14:38 +00:00
juha
bdc7156f0f Converter: backup also include files + minor refactoring.
git-svn-id: trunk@41946 -
2013-06-30 06:43:29 +00:00
mattias
04ad21f805 lazutils: notes about thread safety
git-svn-id: trunk@41945 -
2013-06-29 17:12:53 +00:00
mattias
4cbfb35970 lazutils: clean up
git-svn-id: trunk@41942 -
2013-06-29 13:37:54 +00:00
juha
eaef69c3e5 LazUtils: Create destination dirs in CopyDirTree(). Fixes a regression.
git-svn-id: trunk@41939 -
2013-06-29 13:14:51 +00:00
bart
347f0c2afe LazUtils: move GetFileDescription from FileUtil to LazFileUtils.
Part of moving all UTF8 related filefunctions to LazFileUtils.

git-svn-id: trunk@41903 -
2013-06-26 09:43:12 +00:00
mattias
f6a38d98ef lazutils: reduced dependencies of LazFileUtils
git-svn-id: trunk@41851 -
2013-06-23 19:18:10 +00:00
paul
77686a4dbc components, lcl: replace FileIsWritable by DirectoryIsWritable when we check a directory
git-svn-id: trunk@41832 -
2013-06-23 15:31:33 +00:00
paul
556f193194 components: cleanup
git-svn-id: trunk@41809 -
2013-06-23 10:24:38 +00:00
mattias
e5cd031b31 lazutils: clean up
git-svn-id: trunk@41745 -
2013-06-17 14:00:35 +00:00
bart
51a7ea5e7a LazUtf8: Next attempt to fix compilation with 2.6.0 on Windows.
git-svn-id: trunk@41729 -
2013-06-16 13:04:53 +00:00
bart
2aa7ae79c9 LazUtf8: Fix compiling Windows implementation of ParamStrUtf8 for fpc 2.6.0.
git-svn-id: trunk@41724 -
2013-06-16 11:55:10 +00:00
bart
7ac6639fb4 LazUtils: Move GetAppConfigDirUTF8 and GetAppConfigFileUTF8 to LazFileUtils (and inline them in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41589 -
2013-06-08 15:00:18 +00:00
bart
555ede86aa LazUtils: Move SysErrorMessageUTF8 to LazUtf8 (and inline it in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41588 -
2013-06-08 14:54:15 +00:00
bart
bcea8662ff LazUtils: Move ConsoleToUTF8, UTF8ToConsole, ParamStrUTF8,
GetEnvironmentStringUTF8 and GetEnvironmentVariableUTF8 to LazUtf8 (and inline them in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41587 -
2013-06-08 14:41:16 +00:00
bart
8df292bbb6 LazUtils: Move FileSearchUtf8 to LazFileUtils (and inline it in FileUtil).
Part of the ongoing restructuring of LazFileUtils/FileUtil.

git-svn-id: trunk@41568 -
2013-06-06 21:29:50 +00:00
bart
9cab951c18 LazUtils: Move FileIsReadOnly to LazFileUtils (and inline it in FileUtil).
Part of the ongoing restructuring of LazFileUtils/FileUtil.

git-svn-id: trunk@41566 -
2013-06-06 21:22:21 +00:00
mattias
822ca4c2e1 LCL: changed INVALID_HANDLE_VALUE from 0 to LCLType.Handle(-1), -1 is the Windows value
git-svn-id: trunk@41517 -
2013-06-03 17:40:58 +00:00
mattias
641ea1824b IDE: rename build modes, update shared and session matrix options
git-svn-id: trunk@41508 -
2013-06-03 10:40:18 +00:00
mattias
4e6e36dc04 lazutils: sort uses clause
git-svn-id: trunk@41488 -
2013-06-02 08:32:06 +00:00
bart
27e955ca5c FileUtil: Implement WideString API based version of ParamStrUtf8 on Windows.
git-svn-id: trunk@41486 -
2013-06-01 18:01:02 +00:00
mattias
30f58114b0 lazutils: fixed compilation under darwin
git-svn-id: trunk@41479 -
2013-05-31 21:50:47 +00:00
bart
cbb2c5f5d9 LazFileUtils: Update comments for TryCreateRelativePath.
git-svn-id: trunk@41467 -
2013-05-30 16:33:53 +00:00
juha
fe7df06037 LazUtils: Optimize TXMLConfig.InternalFindNode, call virtual NodeName getter only once.
git-svn-id: trunk@41456 -
2013-05-30 09:52:37 +00:00
bart
1d2d0b6a26 LazFileUtils: (Try)CreateRelativePath: implement option to control wether Dest and Source
must always share a common base folder (being not the root directory).
For CreateRelativePath it defaults to True for backwards compatibility.

git-svn-id: trunk@41452 -
2013-05-29 19:01:13 +00:00
bart
47f5c33813 LazFileUtils: Split some implementations into Windows and Unix specific include files.
git-svn-id: trunk@41451 -
2013-05-29 13:05:12 +00:00
bart
a74716e6aa LazFileUtils: Fix CreateRelativePath function. Better fix for issue #0022603.
git-svn-id: trunk@41449 -
2013-05-29 11:51:48 +00:00
juha
a8684998b7 Formatting and comments
git-svn-id: trunk@41442 -
2013-05-28 15:59:52 +00:00
mattias
3a9e8d9e0c lazutils: clean up
git-svn-id: trunk@41439 -
2013-05-28 08:09:50 +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
mattias
fe0b0eb344 lazutils: removed obsolete luresstrings
git-svn-id: trunk@41379 -
2013-05-24 07:28:13 +00:00
bart
e1c3aed986 LazFileUtils: cleanup.
git-svn-id: trunk@41375 -
2013-05-23 17:29:09 +00:00
bart
42315809a3 LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
ForceDirectoriesUTF8.

git-svn-id: trunk@41374 -
2013-05-23 17:26:47 +00:00
mattias
a6bb37ad88 lazutils: clean up
git-svn-id: trunk@41363 -
2013-05-23 07:01:36 +00:00
mattias
f83f463aa6 lazutils: fixed compialtion under Linux
git-svn-id: trunk@41362 -
2013-05-23 06:54:39 +00:00
bart
b9a543d619 LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
CompareFileExt, FileIsExecutable, CheckIfFileIsExecutable, FileIsSymlink, CheckIfFileIsSymlink,
FileIsHardLink, FileIsReadable, FileIsWritable.

git-svn-id: trunk@41358 -
2013-05-22 16:36:57 +00:00
bart
46d203865a LazFileUtils: ComapareFileExt for CaseInsensitive comparing when Ext contains lowercase unicode charaters.
git-svn-id: trunk@41357 -
2013-05-22 15:45:19 +00:00
bart
cb33ec967a LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
ForceDirectory, DirectoryIsWritable.

git-svn-id: trunk@41356 -
2013-05-22 15:38:48 +00:00
bart
ba38848714 LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
DirPathExists, CompareFilenames, CompareFilenamesIgnoreCase.

git-svn-id: trunk@41354 -
2013-05-22 15:14:35 +00:00
bart
ecc0103303 winlazfileutils.inc: refactoring and adjusting some layout.
git-svn-id: trunk@41349 -
2013-05-22 10:50:29 +00:00
bart
b59ec93c89 LazUtils: move the more UTF8 file routines to LazFileUtils (and inline them in FileUtil):
FindFirstUTF8, FindNextUTF8, FindCloseUTF8, DeleteFileUTF8, RenameFileUTF8,
GetCurrentDirUTF8, SetCurrentDirUTF8, CreateDirUTF8, RemoveDirUTF8,
FilenameIsAbsolute, FilenameIsWinAbsolute and FilenameIsUnixAbsolute.

git-svn-id: trunk@41348 -
2013-05-22 10:24:41 +00:00
maxim
a8a031a612 Translations: reverted Arabic translation to r37531 #c73fdaff8b by request of Mazen Neifer (current Arabic translation maintainer). Reason is poor quality/machine translation, which makes hard to use translated IDE.
git-svn-id: trunk@41340 -
2013-05-21 19:34:39 +00:00
bart
b759d82dab TFileStreamUTF8.Create: fix error when mode = fmCreate or fmSomeShareMode.
Respect mode parameter when creating a file.

git-svn-id: trunk@41331 -
2013-05-20 16:47:52 +00:00
bart
a9b26cc418 FileUtil: inline ChompPathDelim to LazFileUtils.ChompPathDelim.
git-svn-id: trunk@41324 -
2013-05-20 13:24:19 +00:00
bart
c990f3d7c8 FileUtil: inline AppendPathDelim, TrimFilename, CleanAndExpandFilename and CleanAndExpandDirectory
to their LazFileUtils couterparts.

git-svn-id: trunk@41297 -
2013-05-19 14:08:07 +00:00
bart
d79f871ec1 FileUtil: add some comment to point out we are in the transition of moving stuff to LazFileUtils.
git-svn-id: trunk@41296 -
2013-05-19 13:42:46 +00:00
bart
ef3320295a FileUtil: inline FileSize to LazFileUtils.FileSizeUtf8.
git-svn-id: trunk@41295 -
2013-05-19 13:15:30 +00:00
bart
3b1ac2f83d LazFileUtils: Add function FileSizeUtf8
git-svn-id: trunk@41294 -
2013-05-19 13:11:41 +00:00
bart
bdec439cd2 FileUtil: inline FileSetDateUTF8 to use LazFileUtils.FileSetDateUTF8.
git-svn-id: trunk@41290 -
2013-05-19 12:56:41 +00:00
bart
280b9f2060 LazFileUtils: fix FileSetDateUTF8 on Windows when FileName contains unicode
characters outside current codepage.

git-svn-id: trunk@41289 -
2013-05-19 12:52:48 +00:00
bart
d1e6e77a05 LazFileUtils: inline FileAgeUTF8 to LazFileUtils.FileAgeUTF8
git-svn-id: trunk@41288 -
2013-05-19 12:43:01 +00:00
bart
486d00d68c LazFileUtils: fix FileAgeUTF8 on Windows when FileName contains unicode
characters outside current codepage.

git-svn-id: trunk@41287 -
2013-05-19 12:37:47 +00:00
bart
946e76d280 FileUtil: inline DirectoryExistsUTF8 to LazFileutils.DirectoryExistsUTF8.
git-svn-id: trunk@41286 -
2013-05-19 12:28:41 +00:00
bart
43c5ac5e1a LazFileUtils: Fix DirectoryExistsUTF8 on Windows when Directory contains
unicode characters outside current codepage.

git-svn-id: trunk@41285 -
2013-05-19 12:25:06 +00:00
bart
f813d88848 FileUtil: inline FileExistsUTF8 to use LazFileUtils.FileExistsUTF8.
git-svn-id: trunk@41284 -
2013-05-19 12:21:16 +00:00
bart
0986ec79fe LazFileUtils: Fix FileExistsUTF8 on Windows when FileName contains uncode
characters outside current codepage.

git-svn-id: trunk@41283 -
2013-05-19 12:17:03 +00:00
bart
0a3ee817e7 FileUtil: inline FileGetAttrUTF8 and FileSetAttrUTF8 to their LazFileUtils counterparts.
git-svn-id: trunk@41282 -
2013-05-19 12:11:27 +00:00
bart
503626439e LazFileUtils: fix Windows implementation of FileGetAttrUTF8 and FileSetAttrUTF8 when
filename contains unicode characters outside current codepage.

git-svn-id: trunk@41281 -
2013-05-19 12:03:33 +00:00
bart
da816b1721 FileUtil: inline NeedRTLAnsi, SetNeedRTLAnsi, UTF8ToSys ans UTF8ToAnsi to use their LazuUtf8 counterparts.
git-svn-id: trunk@41280 -
2013-05-19 11:43:06 +00:00
bart
39903ad024 LazFileUtils: use Utf8ToSys in the unix implementation of FileOpenUtf8.
git-svn-id: trunk@41278 -
2013-05-19 11:12:52 +00:00
bart
1b61e2844c LazFileUtils: Add FileCreateUtf8(Const FileName : String; ShareMode : Integer; Rights : Cardinal) : THandle;
- Refactor code in winlazfileutils for FileCreateUtf8 to remove duplicate code.
- Use Utf8ToSys in the unix implementation.

git-svn-id: trunk@41277 -
2013-05-19 11:11:23 +00:00
bart
cba0395125 FileUtil: inline FileOpenUTF8, FileCreateUTF8 and FileCreateUTF8 to their LazFileUtils counterparts.
Next step in moving UTF8 file routines to LazFileUtils.

git-svn-id: trunk@41211 -
2013-05-15 17:14:24 +00:00
bart
f77efa70a9 FileUtil: inline FileIsText to LazFileUtils.FileIsText.
Next step in moving UTF8 file routines to LazFileUtils.

git-svn-id: trunk@41210 -
2013-05-15 17:03:11 +00:00
bart
bf3f2431f6 LazUtils: fix LazFileUtils.FileIsText when filename has unicode characters outside currrent codepage on Windows.
Needs refactoring of LazUtf8Classes (use LazFileUtils instead of FileUtil).
Next step in moving UTF89 file routines to LazFileUil.

git-svn-id: trunk@41209 -
2013-05-15 16:52:42 +00:00
mattias
5878ba9053 lazutils: less warnings
git-svn-id: trunk@41184 -
2013-05-14 09:30:45 +00:00
maxim
20a03cef69 Translations: updated Spanish translation by Lucas Martín, bug #24424
git-svn-id: trunk@41181 -
2013-05-13 21:59:25 +00:00
mattias
8e652015ad lazutils; fixed compilation under unix
git-svn-id: trunk@41160 -
2013-05-12 18:20:15 +00:00
bart
d219baae5f FileUtil: DeleteDirectory: also delete symlinks in a directory on *nix (don't follow them). Issue #0024415.
git-svn-id: trunk@41159 -
2013-05-12 18:15:48 +00:00
juha
bdba8f2a01 One more "inherited Create;" to be sure.
git-svn-id: trunk@41097 -
2013-05-09 15:37:10 +00:00
juha
8ddfe52d9b Add "inherited Create;" to constructors for classes derived from TFileSearcher.
git-svn-id: trunk@41089 -
2013-05-09 11:52:17 +00:00
mattias
4a483b4187 lazutils: fixed compilation under Linux
git-svn-id: trunk@41086 -
2013-05-09 10:39:11 +00:00
bart
0ce3f9f9f0 LazFileUtils: rename ExpandDots() to ResolveDots()
git-svn-id: trunk@41084 -
2013-05-09 07:37:51 +00:00
mattias
ece43d9fc5 lazutils: clean up
git-svn-id: trunk@41066 -
2013-05-08 01:40:31 +00:00
mattias
fd461b8b5b docs: CreateRelativePath does not support D:test for thread safety
git-svn-id: trunk@41065 -
2013-05-08 01:26:06 +00:00
mattias
363854a331 lazutils: restored old CreateRelativePath, added doc
git-svn-id: trunk@41064 -
2013-05-08 01:18:11 +00:00
juha
62668a0d48 LazUtils: Add support for the CapHeight to LazFreeType. Issue #23968, patch from Andrey Zubarev
git-svn-id: trunk@41043 -
2013-05-05 17:56:23 +00:00
bart
a031882b1a FileUtil: inline ExpandFileNameUTF8 as LazFileUtils.ExpandFileNameUTF8,
which has better handling of unicode characters on Windows.
(One step in the moving of UTF8 related filefunctions to LazFileUtils)

git-svn-id: trunk@41038 -
2013-05-05 11:40:45 +00:00
bart
d9e1aa876f Lazfileutils.pas: fix incorrect indentation from r41036 #0baf6d6df0
git-svn-id: trunk@41037 -
2013-05-05 11:28:29 +00:00
bart
0baf6d6df0 CreateRelativePath (FileUtil and LazFileUtils): use SysUtilsExtractRelativePath inernally.
Fixes issue #0022603.

git-svn-id: trunk@41036 -
2013-05-05 11:20:44 +00:00
bart
fb55facdaa ExpandFileNameUtf8: expand current drive if FileName = '\' (Windows)
git-svn-id: trunk@41035 -
2013-05-05 11:04:09 +00:00
bart
0631e9d7d1 TFileSearcher: Implement OnDirectoryEnter event.
git-svn-id: trunk@41032 -
2013-05-04 21:52:55 +00:00
bart
f84bed8662 TFileSearcher: Implement FileAttribute and DirectoryAttribute properties to let user control
what files and directories are searched. Fixes issue #0024369.

git-svn-id: trunk@41031 -
2013-05-04 21:41:00 +00:00
mattias
33e67992e5 lazutils: fixed TListFileSearcher.Create
git-svn-id: trunk@40996 -
2013-05-02 11:23:26 +00:00
bart
5fcdbd6c7d TFileSearcher.Search: use Windows specific file pattern matching on Windows.
Fixes issue #0024306

git-svn-id: trunk@40973 -
2013-05-01 11:03:12 +00:00
bart
fe79a8fdff Masks: implement specific matching for Windows filemasks like foo*.* and other Windows oddities.
git-svn-id: trunk@40970 -
2013-05-01 10:53:23 +00:00
juha
48f88c37ef Revert "Use AllFilesMask everywhere instead of GetAllFilesMask, mask must be fixed in FPC libs"
git-svn-id: trunk@40957 -
2013-04-30 16:35:02 +00:00
bart
d479775c9d TFileSearcher: allow case-sensitive file searching (defaults to false).
git-svn-id: trunk@40902 -
2013-04-27 17:22:51 +00:00
juha
518250f92c LazUtils: Test for '*.*' instead of AllFilesMask in TFileSearcher
git-svn-id: trunk@40877 -
2013-04-22 10:09:43 +00:00
juha
248927b6c5 LazUtils: Improvements for DictionaryStringList demo project by Antônio Galvão. Issue #24290
git-svn-id: trunk@40876 -
2013-04-22 09:05:01 +00:00
juha
cd3b3a4463 delete test
git-svn-id: trunk@40875 -
2013-04-22 08:28:04 +00:00
juha
9ac01bb636 test
git-svn-id: trunk@40874 -
2013-04-22 08:27:14 +00:00
juha
07d79d2536 LazUtils: Make TFileSearcher match all files with *.* on Windows like FindFirst + FindNext do. Issue #24306
git-svn-id: trunk@40873 -
2013-04-22 07:59:02 +00:00
juha
f125213df5 removing test
git-svn-id: trunk@40872 -
2013-04-22 06:15:02 +00:00
juha
692ebb8bff testing Capitals in file name
git-svn-id: trunk@40871 -
2013-04-22 06:14:31 +00:00
juha
cd6f5fecad removing test
git-svn-id: trunk@40870 -
2013-04-22 05:59:13 +00:00
juha
54f906a74d testing commit access
git-svn-id: trunk@40869 -
2013-04-22 05:57:41 +00:00
mattias
55b523ce84 lazutils: added example for TDictionaryStringList
git-svn-id: trunk@40868 -
2013-04-21 21:49:09 +00:00
juha
140ce5d69d LazUtils: move GetAllFilesMask's deprecated note to correct place.
git-svn-id: trunk@40850 -
2013-04-19 08:36:40 +00:00
juha
73fb9ab0e2 Use AllFilesMask everywhere instead of GetAllFilesMask
git-svn-id: trunk@40849 -
2013-04-19 07:08:03 +00:00
juha
bb419695bb LazUtils: Add FollowSymLink property to TFileSearcher. Issue #24291, modified from Mario Bonati's patch
git-svn-id: trunk@40848 -
2013-04-19 07:05:25 +00:00
bart
a53520295e LazUtils: Fix ExpandFileNameUTF8 for directories with Unicode characters outside
current codepage on Windows.
Also do not remove trailing and leading spaces, it is inconsistent with
SysUtils.ExpandFileName.
Start splitting implementation in general, unix and windows specific includefiles.

git-svn-id: trunk@40842 -
2013-04-18 18:23:02 +00:00
juha
378844986e LazUtils: Handle a temporarily non-accessible file in CopyFile function. Issue #24162, patch from Cyrax
git-svn-id: trunk@40828 -
2013-04-16 07:50:07 +00:00
mattias
db550fef45 fileutils: fixed header
git-svn-id: trunk@40800 -
2013-04-12 22:35:39 +00:00
mattias
cf877df3c4 updated lpk makefiles
git-svn-id: trunk@40698 -
2013-04-02 10:37:47 +00:00
mattias
6b9529ec0a lazutf8: faster FindInvalidUTF8Character
git-svn-id: trunk@40673 -
2013-03-31 17:19:46 +00:00
juha
460f108b68 LazUtils: Make FileSize function overload. Issue #24155, patch from ocean
git-svn-id: trunk@40664 -
2013-03-29 17:55:34 +00:00
maxim
7df1120d89 LazFreeType: allow other processes read opened font file too, bug #23887
git-svn-id: trunk@40591 -
2013-03-19 20:55:59 +00:00
juha
c0878f5175 LazUtils: Remove useless code in TDictionaryStringList.Assign. The test "if Source is TStrings" is done in inherited method.
git-svn-id: trunk@40556 -
2013-03-15 16:27:26 +00:00
juha
eb91fbf509 LazUtils, DictionaryStringList: cleanup
git-svn-id: trunk@40547 -
2013-03-14 08:20:08 +00:00
juha
939420b860 Lazautils, DictionaryStringList: add Antonio Galvao as a co-author
git-svn-id: trunk@40544 -
2013-03-13 14:42:43 +00:00
mattias
60d065f8a9 lazutils: less hints
git-svn-id: trunk@40542 -
2013-03-13 13:44:10 +00:00
juha
afb022bcb4 LazUtils: "Add" and "AddObject" methods are needed in TDictionaryStringList after all. Patch from Antônio Galvão
git-svn-id: trunk@40539 -
2013-03-13 00:01:54 +00:00
juha
58b6eb6943 LazUtils, a small fix in TDictionaryStringList.InsertItem
git-svn-id: trunk@40538 -
2013-03-12 15:41:54 +00:00
juha
aeba11b9c8 LazUtils: change DictionaryStringList to support duplicates. It does not store indexes in the map any more.
git-svn-id: trunk@40537 -
2013-03-12 14:42:16 +00:00
juha
d3515b51b0 LazUtils: improve TDictionaryStringList
git-svn-id: trunk@40525 -
2013-03-10 10:33:49 +00:00
juha
c9725d844b LazUtils: add new container TDictionaryStringList
git-svn-id: trunk@40518 -
2013-03-09 14:41:49 +00:00
juha
ac9594df43 LazUtils: formatting
git-svn-id: trunk@40517 -
2013-03-09 14:41:44 +00:00
juha
a9239ca17d New container class TDictionaryStringList for LazUtils
git-svn-id: trunk@40516 -
2013-03-09 14:37:53 +00:00
mattias
01f2e05923 laztuils: comment
git-svn-id: trunk@40432 -
2013-02-27 14:26:10 +00:00
juha
0986431fcd LazUtils: improvements for ttfile.pas. Patch from circular
git-svn-id: trunk@40429 -
2013-02-27 10:51:33 +00:00
juha
c7765210d6 LazUtils: improvements for TTInterp. Patch from circular
git-svn-id: trunk@40428 -
2013-02-27 10:51:27 +00:00
juha
faea508795 LazUtils: fix for TFreeTypeFont.SetPointSize. Patch from circular
git-svn-id: trunk@40427 -
2013-02-27 10:51:20 +00:00
maxim
92bb4c705f LazUtils: moved XPath translations to lazutilsstrconsts.*.po
git-svn-id: trunk@40309 -
2013-02-13 20:29:24 +00:00
mattias
ce437916b5 lazutils: moved resourcestrings xpath to lazutilsstrconsts
git-svn-id: trunk@40290 -
2013-02-13 09:58:09 +00:00
maxim
e473991184 Components, LazUtils: regenerated XPath translations
git-svn-id: trunk@40279 -
2013-02-12 20:03:18 +00:00
mattias
51e06df26e lazutils: xpath: renamed resourcestrings
git-svn-id: trunk@40277 -
2013-02-12 10:35:46 +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
mattias
001b0ed1f6 lazutils: disabled workaround for fpc 2.7.1
git-svn-id: trunk@40264 -
2013-02-11 17:09:17 +00:00
mattias
8bca6ba724 lazutils: disabled workaround for fpc 2.7.1
git-svn-id: trunk@40263 -
2013-02-11 17:06:59 +00:00
ask
f088d7b509 LazFreeType: Support font loading from a stream. Patch by "circular".
git-svn-id: trunk@40260 -
2013-02-11 07:09:52 +00:00
mattias
f4df84419a lazutils: no workaround for fpc 2.7.1
git-svn-id: trunk@40259 -
2013-02-10 21:44:36 +00:00
maxim
ec68f971b1 Components, LazUtils: Russian translation for XPath
git-svn-id: trunk@40254 -
2013-02-10 16:28:59 +00:00
mattias
b4a29891b3 lazutils: clean up
git-svn-id: trunk@40238 -
2013-02-10 12:06:24 +00:00
mattias
60d3756a53 lazutils: added workaround for compiler bug, see bug #23868
git-svn-id: trunk@40237 -
2013-02-10 10:46:56 +00:00
mattias
f48c70a01c lazutils: comments
git-svn-id: trunk@40236 -
2013-02-10 10:41:03 +00:00
mattias
043dd66828 lazutils: added UTF8CompareStrCollated
git-svn-id: trunk@40228 -
2013-02-09 20:45:24 +00:00
mattias
5d4b0a28da lazutils: clean up
git-svn-id: trunk@40220 -
2013-02-09 10:29:55 +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
ask
5456be4d59 LazFreeType: Fixup for r40207 #7aff56c144
git-svn-id: trunk@40208 -
2013-02-08 15:00:55 +00:00
ask
7aff56c144 LazFreeType: Add TFreeTypeStream class, allow fonts to be loaded from streams. Patch by "circular"
git-svn-id: trunk@40207 -
2013-02-08 12:35:14 +00:00
mattias
247bb4784b lazutils: fixed reading xml with BOM, bug #23852
git-svn-id: trunk@40206 -
2013-02-08 09:37:10 +00:00
ask
7745a4f174 LazFreeType: Move strike-out and underline decoration to TFreeTypeRenderableFont. Based on patch by "circular"
git-svn-id: trunk@40147 -
2013-02-03 10:43:22 +00:00
ask
4694ce68f5 LazFreeType: Move OnRenderText event to TFreeTypeRenderableFont. Patch by "circular".
git-svn-id: trunk@40134 -
2013-02-03 00:09:36 +00:00
ask
f62e7a3b8d LazFreeType: Call WordBreakHandler only when splitting lines on maximum width
git-svn-id: trunk@40133 -
2013-02-03 00:05:35 +00:00
ask
d863aa74b1 LazFreeType: Split text on a new line before reaching maximum width
git-svn-id: trunk@40131 -
2013-02-02 23:51:31 +00:00
ask
3c8243bd4c LazFreeType: Move Hinted property to the TFreeTypeRenderableFont. Implement hinting for centered text.
Based on patch by "circular".

git-svn-id: trunk@40130 -
2013-02-02 23:14:39 +00:00
ask
632d1dc771 LazFreeType: Add TFreeTypeFont.OnRenderText event. Based on patch by "circular".
git-svn-id: trunk@40120 -
2013-02-02 12:39:39 +00:00
mattias
f99975aab9 lazutils: added ComparePointer
git-svn-id: trunk@40105 -
2013-01-31 23:37:35 +00:00
ask
80f6addec6 LazFreeType: Patch by "circular":
- extended characters handled correctly
- bug fix in case freetype font collection is freed before the drawer (added listeners when font collection item is destroyed)
- SetDefaultFreeTypeFontCollection in LazFreeTypeFontCollection unit, so it is not necessary to mention EasyLazFreeType in uses clause if font collection is used
- textrect and wordwrap for freetype

git-svn-id: trunk@40104 -
2013-01-31 22:33:25 +00:00