Commit Graph

86 Commits

Author SHA1 Message Date
marcus
d9f917f93e Amiga: ExtractFilenameOnly/ExtractFileRoot for amiga systems
git-svn-id: trunk@53971 -
2017-01-18 19:43:14 +00:00
juha
39fe54c5f6 Make LCL and LazUtils compile for Amiga systems (NoGUI). Issue #31186, patch from Marcus Sackrow.
git-svn-id: trunk@53853 -
2017-01-03 12:01:49 +00:00
mattias
88c8a65391 lazutils: ResolveDots: fixed a/../b
git-svn-id: trunk@53275 -
2016-11-01 19:55:25 +00:00
juha
8cfa96523a Packager: formatting
git-svn-id: trunk@53083 -
2016-10-09 13:12:08 +00:00
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
5d6e5012ea LazFileUtils: fix uninitialized result in ChompPathDelim. Issue #0029866.
git-svn-id: trunk@52004 -
2016-03-20 22:08:06 +00:00
mattias
69de6012ba lazfileutils: added windows function SHGetFolderPathUTF8
git-svn-id: trunk@51881 -
2016-03-09 13:15:53 +00:00
juha
800d968b77 LazUtils: Suppress some hints when compiling LazUtils. Issue #27961.
git-svn-id: trunk@51053 -
2015-12-27 15:04:41 +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
fb15809cef lazutils: DirectoryIsWritable: check if directory exists
git-svn-id: trunk@50170 -
2015-10-26 09:26:44 +00:00
mattias
ccdf8a27f9 lazutils: clean up
git-svn-id: trunk@49648 -
2015-08-11 12:47:25 +00:00
juha
08c9621520 Change order of used units so that "deprecated" warnings are not triggered.
git-svn-id: trunk@49612 -
2015-08-07 17:20:40 +00:00
mattias
02e2574269 codetools: added FindPathInSearchPath
git-svn-id: trunk@48993 -
2015-05-12 10:22:59 +00:00
jesus
967e0663ad LazUtils: added function for getting normalized filename (darwin)
git-svn-id: trunk@48828 -
2015-04-24 06:28:20 +00:00
bart
b83671949f LazFileUtils: implement DbgSFileAttr() function.
git-svn-id: trunk@48154 -
2015-03-06 22:02:59 +00:00
bart
3ebbc96fd0 LazFileUtils: implement GetShellLinkTarget function.
git-svn-id: trunk@46434 -
2014-10-04 22:15:41 +00:00
mattias
0d7fcf4e66 lazutils: added GetPhysicalFilename
git-svn-id: trunk@45241 -
2014-05-30 12:20:17 +00:00
mattias
e530415577 IDE: msg window: hint why a package was compiled
git-svn-id: trunk@45142 -
2014-05-21 19:16:18 +00:00
mattias
22443c165c lazutils: FileIsInPath: use ResolveDots instead of TrimFilename
git-svn-id: trunk@44835 -
2014-04-28 14:30:33 +00:00
mattias
d56c52805f lazutils: fixed TrimFilename, bug #25965
git-svn-id: trunk@44591 -
2014-04-03 10:20:35 +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
martin
5fcf1178ec Fixed compile on wince. Broken by r43495 #cba214753b (localize special dir)
git-svn-id: trunk@43689 -
2014-01-10 18:21:39 +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
987732d77c lazutils: TrimFilename: normalize pathdelims
git-svn-id: trunk@43404 -
2013-11-09 13:23:22 +00:00
mattias
b4a999be14 lazutils: TrimFilename: optimized
git-svn-id: trunk@43403 -
2013-11-09 13:16:33 +00:00
mattias
3c92d686f3 lazutils: FileNameIsTrimmed: check for slashes on Windows
git-svn-id: trunk@42704 -
2013-09-09 13:44:08 +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
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
mattias
283ae2bad5 lazutils: merged code
git-svn-id: trunk@42360 -
2013-08-05 19:24:41 +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
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
04ad21f805 lazutils: notes about thread safety
git-svn-id: trunk@41945 -
2013-06-29 17:12:53 +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
mattias
e5cd031b31 lazutils: clean up
git-svn-id: trunk@41745 -
2013-06-17 14:00:35 +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
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
30f58114b0 lazutils: fixed compilation under darwin
git-svn-id: trunk@41479 -
2013-05-31 21:50:47 +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
bart
e1c3aed986 LazFileUtils: cleanup.
git-svn-id: trunk@41375 -
2013-05-23 17:29:09 +00:00