Commit Graph

15 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
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
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
bart
1b9ad85931 LazFileUtils: fix FilenameIsWinAbsolute for WinCE.
git-svn-id: trunk@42566 -
2013-09-02 19:18:31 +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
e5cd031b31 lazutils: clean up
git-svn-id: trunk@41745 -
2013-06-17 14:00:35 +00:00
bart
cbb2c5f5d9 LazFileUtils: Update comments for TryCreateRelativePath.
git-svn-id: trunk@41467 -
2013-05-30 16:33:53 +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
a74716e6aa LazFileUtils: Fix CreateRelativePath function. Better fix for issue #0022603.
git-svn-id: trunk@41449 -
2013-05-29 11:51:48 +00:00
bart
0ce3f9f9f0 LazFileUtils: rename ExpandDots() to ResolveDots()
git-svn-id: trunk@41084 -
2013-05-09 07:37:51 +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