Commit Graph

107 Commits

Author SHA1 Message Date
Juha Manninen
6e6d618513 Merge branch 'lazutils-hints' into 'main'
Suppress compiler hints in LazUtils

See merge request freepascal.org/lazarus/lazarus!35
2021-10-31 07:55:49 +00:00
Juha
cd66ac596b Formatting, minor simplification. 2021-10-31 09:51:28 +02:00
Alexey
6970b3aef1 fix compiler hints in LazUtils 2021-10-29 15:08:50 +03:00
mattias
c54a8fa65a lazutils: less hints
git-svn-id: trunk@65012 -
2021-04-17 11:30:56 +00:00
juha
350c9735d0 LazUtils: Optimize PosI(), the case-insensitive version of Pos().
git-svn-id: trunk@64616 -
2021-02-18 12:28:20 +00:00
juha
3f78f0d62d New optimized functions in LazUtils: FilenameExtIs and FilenameExtIn. Used instead of CompareFileExt and similar.
git-svn-id: trunk@64583 -
2021-02-15 08:43:50 +00:00
juha
c32adb1c7f Instead of UTF8CompareText use AnsiCompareText which uses mostly system libraries.
git-svn-id: trunk@64437 -
2021-01-29 19:58:55 +00:00
juha
4c27531f6f LazUtils: Add function UTF8CompareTextP, use it in CompareFilenamesP.
git-svn-id: trunk@64391 -
2021-01-14 21:54:49 +00:00
juha
5d09547a8f LazUtils: Move related CompareFile... functions together in LazFileUtils. No functional changes.
git-svn-id: trunk@64390 -
2021-01-14 21:54:46 +00:00
juha
751852a44a LazUtils: New function UTF8CompareLatinTextFast. Use in IDE instead of UTF8CompareText.
git-svn-id: trunk@64385 -
2021-01-14 13:52:23 +00:00
juha
3ea7788cbf Optimize CompareFileExt in different ways. Comparison of FPC/Lazarus generated files can be case-sensitive.
git-svn-id: trunk@64374 -
2021-01-10 19:07:52 +00:00
juha
4e587ce8f0 LazUtils: Prevent ForceDirectory trying to create directories with empty name. Issue #37133.
git-svn-id: trunk@63327 -
2020-06-08 10:34:28 +00:00
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