Commit Graph

95 Commits

Author SHA1 Message Date
bart
4ff199e1d7 FileIsText: only exit False if an "illegal" char is found, don't require a NewLine char being present. Resolves #0036679.
git-svn-id: trunk@62787 -
2020-03-21 12:40:35 +00:00
juha
d0ca74aa06 Move functions from IDEProcs to LazFileUtils. Remove unused function MiniMizeName.
git-svn-id: trunk@62444 -
2019-12-25 11:26:25 +00:00
mattias
f117e5216d lazutils: StrToCmdLineParam: use " as default quote under Windows
git-svn-id: trunk@61912 -
2019-09-23 09:42:25 +00:00
mattias
d4a8763c35 lazutils: fixed SplitCmdLine escape chars
git-svn-id: trunk@60544 -
2019-02-28 20:52:48 +00:00
mattias
adc7b0575c lazutils: fixed PrepareCmdLineOption quote if needed
git-svn-id: trunk@60540 -
2019-02-28 18:24:22 +00:00
juha
75d1f28106 LazUtils: Move more functions from FileUtils to LazFileUtilities, deprecate the old ones.
git-svn-id: trunk@59177 -
2018-09-28 12:25:39 +00:00
juha
571647e302 LazUtils: Move ExtractFileNameWithoutExt to LazFileUtils. Rhymes with ExtractFileNameOnly.
git-svn-id: trunk@59169 -
2018-09-26 17:49:27 +00:00
juha
a20ec2d6bc Move functions dealing with command line from IDEProcs to LazFileUtils.
git-svn-id: trunk@58621 -
2018-07-24 17:49:16 +00:00
juha
620bba736b Move functions dealing with path delimiters from IDEProcs to LazFileUtils.
git-svn-id: trunk@58620 -
2018-07-24 17:49:15 +00:00
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