Commit Graph

20 Commits

Author SHA1 Message Date
Juha
de4f724924 Revert checking for Pascal keywords in LazIsValidIdent which is used also for unit names etc. Prevent illegal name by other means. 2021-09-28 14:33:36 +03:00
Juha
5a1abf733a LazUtils: Check for Pascal keywords in LazIsValidIdent. Must be prepended with '&'. Merge request 11 by Abdullahi Usman. 2021-09-26 01:18:05 +03:00
mattias
4927175872 lazutils: less hints
git-svn-id: trunk@65011 -
2021-04-17 11:28:55 +00:00
juha
9046b533af LazUtils: New LazStartsStr and similar functions. StartsStr etc. in StrUtils return False for empty sub-string, thus Delphi incompatible.
git-svn-id: trunk@64743 -
2021-03-04 08:58:54 +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
db235fb49a LazUtils: Fix compilation with FPC 3.0.4. Add functions StartsStr and EndsStr.
git-svn-id: trunk@64514 -
2021-02-10 13:43:09 +00:00
juha
bd875ab2f5 LazUtils: Add case-insensitive functions PosI(), LazStartsText() and LazEndsText().
git-svn-id: trunk@64503 -
2021-02-08 19:09:17 +00:00
juha
039687aae1 LazUtils: Deprecate SpecialCharsToHex. Use LazUtf8.Utf8EscapeControlChars instead. Issue #38029.
git-svn-id: trunk@64103 -
2020-11-04 17:31:46 +00:00
juha
5d89968871 LazUtils: Fix SpecialCharsToHex output to actual hex. Move code to reusable functions ShortDotsLine and BeautifyLineXY. Issue #38029.
git-svn-id: trunk@64102 -
2020-11-03 18:52:30 +00:00
juha
4321fbf6e5 LazUtils: move procedure ReplaceSubstring from LazUTF8 to LazStringUtils.
git-svn-id: trunk@64081 -
2020-10-29 15:45:34 +00:00
juha
63cc527b35 LCL: Simplify code dealing with ampersands (&). Remove duplicate code.
git-svn-id: trunk@62493 -
2020-01-04 19:30:01 +00:00
juha
ec99bd95e2 LCL-GTK2: Move function ComparePChar to LazStringUtils as SamePChar.
git-svn-id: trunk@62464 -
2019-12-29 23:18:51 +00:00
juha
490804cee4 LazUtils: Move function LazIsValidIdent from PackageDependencyIntf (IdeIntf) to LazStringUtils.
git-svn-id: trunk@62133 -
2019-10-27 15:46:04 +00:00
juha
3df7d8afe5 LCL, LazUtils: Move string manipulation functions from LCLProc to LazStringUtils.
git-svn-id: trunk@61038 -
2019-04-22 09:00:32 +00:00
juha
0487347061 IDE: Allow only valid revision numbers to show in IDE title.
git-svn-id: trunk@61030 -
2019-04-21 14:27:53 +00:00
mattias
1f64e2b29d lazutils: deprecated ConvertLineEndings in favor of LineBreaksToSystemLineBreaks
git-svn-id: trunk@59144 -
2018-09-23 10:33:52 +00:00
mattias
f14e40c50d lazutils: removed duplicate code, issue #34320
git-svn-id: trunk@59142 -
2018-09-23 06:42:21 +00:00
juha
41dc46374f LazUtils: Move string manipulation functions from LazUtilities to LazStringUtils.
git-svn-id: trunk@58634 -
2018-07-25 23:44:54 +00:00
juha
6d3f9bd7a7 LazUtils: Move string manipulation functions from IDEProcs to LazStringUtils.
git-svn-id: trunk@58632 -
2018-07-25 13:39:06 +00:00
juha
5c561fabd8 LazUtils: Add a new unit LazStringUtils. Move 2 functions from Codetools' SourceLog there.
git-svn-id: trunk@58631 -
2018-07-25 13:39:01 +00:00