Commit Graph

30 Commits

Author SHA1 Message Date
mattias
887269a2be lazutils: ExpandFileNameUTF8: fixed HOME with UTF-8
git-svn-id: trunk@53283 -
2016-11-02 11:13:07 +00:00
juha
0973660a48 LazUtils: Unify formatting between FileIsReadable and FileIsWritable + other formatting.
git-svn-id: trunk@53127 -
2016-10-16 20:06:33 +00:00
mattias
d71ed5e522 lazutils: clean up
git-svn-id: trunk@47168 -
2014-12-10 09:55:24 +00:00
bart
3ebbc96fd0 LazFileUtils: implement GetShellLinkTarget function.
git-svn-id: trunk@46434 -
2014-10-04 22:15:41 +00:00
mattias
9f680e7c26 lazutils: use GetPhysicalFilename instead of readalllinks
git-svn-id: trunk@45242 -
2014-05-30 12:40:24 +00:00
mattias
0d7fcf4e66 lazutils: added GetPhysicalFilename
git-svn-id: trunk@45241 -
2014-05-30 12:20:17 +00:00
mattias
f017a11ccc lazutils: ReadAllLinks: do not expand symlink target, only shorten
git-svn-id: trunk@45239 -
2014-05-30 11:40:34 +00:00
mattias
3595a693a9 LazUtils: added GetUnixPhysicalFilename
git-svn-id: trunk@44578 -
2014-04-01 11:10:35 +00:00
mattias
877c4d50b9 LCL: moved ReadAllLinks to LazUtils
git-svn-id: trunk@44577 -
2014-04-01 10:24:50 +00:00
bart
cba214753b LazFileUtils: Fix encoding of locale-specific characters in GetAppConfigDirUtf8 and GetAppConfigFileUtf8 on Windows
Issue #0010850.

git-svn-id: trunk@43495 -
2013-11-28 18:37:44 +00:00
mattias
f5dda02fe9 IDE: renamed DoPathDelims to ForcePathDelims
git-svn-id: trunk@42697 -
2013-09-09 10:18:24 +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
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
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
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
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
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
bart
3b1ac2f83d LazFileUtils: Add function FileSizeUtf8
git-svn-id: trunk@41294 -
2013-05-19 13:11: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
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
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
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
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
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
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
4a483b4187 lazutils: fixed compilation under Linux
git-svn-id: trunk@41086 -
2013-05-09 10:39:11 +00:00
mattias
ece43d9fc5 lazutils: clean up
git-svn-id: trunk@41066 -
2013-05-08 01:40:31 +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