Commit Graph

264 Commits

Author SHA1 Message Date
mattias
c80c2dfecc lazutils: added ReplaceSubString
git-svn-id: trunk@35499 -
2012-02-20 02:18:56 +00:00
mattias
b1eb78dbdf lazlogger: added dbgstr for pchars
git-svn-id: trunk@35488 -
2012-02-19 16:18:16 +00:00
mattias
0dd3daffcc lazutils: dbgmemrange: pointer to avoid typecasts
git-svn-id: trunk@35484 -
2012-02-19 14:40:45 +00:00
mattias
44740de026 lazutils: added StrToXMLValue
git-svn-id: trunk@35468 -
2012-02-18 21:09:48 +00:00
mattias
75e607c431 lazutils: TDOMNode.GetLevel
git-svn-id: trunk@35467 -
2012-02-18 20:57:36 +00:00
mattias
65812100c1 lazutils: fixed dbgstr to workaround auto string repair of fpc
git-svn-id: trunk@35437 -
2012-02-18 13:25:24 +00:00
mattias
1a57c31210 lazutils: revert
git-svn-id: trunk@35425 -
2012-02-17 15:40:12 +00:00
mattias
4fdb9ca1a2 lazutils: merged some duplicates
git-svn-id: trunk@35424 -
2012-02-17 15:22:24 +00:00
mattias
587a1ef0fd lazutils: fixed NeedRTLAnsi under non Windows
git-svn-id: trunk@35423 -
2012-02-17 15:10:57 +00:00
mattias
17e624f523 lazutf8: added UTF8Trim
git-svn-id: trunk@35420 -
2012-02-17 14:53:48 +00:00
paul
2ed303eb5a lazutils: fix TDOMElement.SetAttribute - the elemented was searched in the SortedList but set into PosList => as result attributes were set to wrong values (part of bug #0021270)
git-svn-id: trunk@35409 -
2012-02-17 09:21:02 +00:00
paul
76b34a64d8 lazutf8: prevent string codepage change
git-svn-id: trunk@35408 -
2012-02-17 06:14:40 +00:00
mattias
f1f99b4a6e LCL: added TLazAccessibleObject enumerator
git-svn-id: trunk@35394 -
2012-02-16 09:17:30 +00:00
mattias
f7827d2275 lazutils: added TAvgLvlTree enumerator
git-svn-id: trunk@35393 -
2012-02-16 09:09:22 +00:00
mattias
0bd7bee51b laz2_xmlwrite: added flags for WriteXML
git-svn-id: trunk@35373 -
2012-02-15 14:16:40 +00:00
vincents
fb6169ac46 lazlogger: fixed compilation with wince.
git-svn-id: trunk@35369 -
2012-02-15 07:17:09 +00:00
martin
369017a0c5 DBG: move same debugln to LazLogger cmd-line config
git-svn-id: trunk@35339 -
2012-02-12 22:59:28 +00:00
martin
2d5748afd7 LazLogger: Keep user-set logfilename
git-svn-id: trunk@35333 -
2012-02-12 18:45:12 +00:00
martin
998b336ccb LazLogger: tests / fix parsing enabled groups
git-svn-id: trunk@35329 -
2012-02-12 16:44:13 +00:00
martin
c5624ffcb1 LazLogger: Fixed indent for event
git-svn-id: trunk@35326 -
2012-02-12 15:13:15 +00:00
martin
20f0d2d151 LazLogger: renamed events to On....
git-svn-id: trunk@35325 -
2012-02-12 14:42:12 +00:00
martin
59b13f50b1 LazLogger: add groups that can be enabled via commandline
git-svn-id: trunk@35319 -
2012-02-12 12:15:58 +00:00
martin
2ce509ce97 Clean up: warnings (new debugln)
git-svn-id: trunk@35269 -
2012-02-09 13:31:28 +00:00
mattias
820c8c29bb laz2_dom: fixed range check
git-svn-id: trunk@35266 -
2012-02-09 12:19:05 +00:00
vincents
1cbef20c34 lazutils: fixed another compilation for debug log with wince.
git-svn-id: trunk@35262 -
2012-02-09 08:59:40 +00:00
vincents
951fdc2310 lazutils: fixed compilation with wince.
git-svn-id: trunk@35259 -
2012-02-09 08:34:34 +00:00
mattias
9a1c0d2141 laz2_write: option to preserve whitespace
git-svn-id: trunk@35252 -
2012-02-08 23:47:53 +00:00
mattias
ffd6e0f8b5 laz2_read: keep attribute order
git-svn-id: trunk@35251 -
2012-02-08 23:27:48 +00:00
mattias
52b3608f2e laz2_xmlread: added flag preserverwhitespace
git-svn-id: trunk@35250 -
2012-02-08 22:52:56 +00:00
mattias
895280ea4a laz2_dom: fixed enumerator
git-svn-id: trunk@35249 -
2012-02-08 22:52:23 +00:00
mattias
12f6b0c40c laz2_dom: added enumerators for TDOMNode
git-svn-id: trunk@35247 -
2012-02-08 22:16:01 +00:00
martin
ffacfde753 new Debugln via LazLogger (ifdef WithLazLogger)
git-svn-id: trunk@35190 -
2012-02-06 19:05:00 +00:00
martin
71814e408a new Debugln via LazLogger (ifdef WithLazLogger)
git-svn-id: trunk@35187 -
2012-02-06 18:43:49 +00:00
mattias
7f5a352702 lazutils: added CreateAbsoluteSearchPath, CreateRelativeSearchPath, MinimizeSearchPath, FindPathInSearchPath
git-svn-id: trunk@35159 -
2012-02-05 14:19:40 +00:00
mattias
9985ff718d LCL: added inline version of UnicodeToUTF8
git-svn-id: trunk@35109 -
2012-02-02 23:01:03 +00:00
mattias
380da77e72 lazutils: fixed compilation
git-svn-id: trunk@35088 -
2012-02-02 15:28:10 +00:00
mattias
971b471ca4 IDE: catch wrong dates
git-svn-id: trunk@35086 -
2012-02-02 15:09:48 +00:00
mattias
64e2cd6b98 lazutils: UTF8CharacterToUnicode: check for intersecting ranges
git-svn-id: trunk@35038 -
2012-01-30 10:46:07 +00:00
mattias
28fbd2b34c lazutils: UTF8FixBroken: check for ascci as multi byte
git-svn-id: trunk@35036 -
2012-01-30 09:34:18 +00:00
mattias
3c0edd81fd lazutils: UTF8CharacterToUnicode: check for invalid ascii as multi byte chars, bug #21186
git-svn-id: trunk@35031 -
2012-01-30 09:22:29 +00:00
mattias
c4046b45fa lazutils: fixed fpdoc path
git-svn-id: trunk@34838 -
2012-01-21 13:52:34 +00:00
juha
03d1306b86 Codetools & LazUtils: Replace const string arrays with RTTI value and WriteStr()
git-svn-id: trunk@34757 -
2012-01-15 23:50:39 +00:00
martin
8fd4128a31 Fix ChompLath for windows C:\
git-svn-id: trunk@34716 -
2012-01-12 17:35:57 +00:00
sekelsenmat
b106f80cb9 Android: Starts improving the key input. Now it gets real unicode chars instead of the key name
git-svn-id: trunk@34509 -
2011-12-29 23:12:21 +00:00
maxim
38263f7b6b Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #20957
git-svn-id: trunk@34375 -
2011-12-23 21:39:33 +00:00
mattias
77c557782e lazutils: ChompPathDelim: under windows: do not chomp UNC base path double slash
git-svn-id: trunk@34374 -
2011-12-23 19:19:59 +00:00
mattias
4f552aff1b lazutils: defaults for filecache
git-svn-id: trunk@34351 -
2011-12-21 13:57:43 +00:00
sekelsenmat
bf64f7b1f8 Fix for bug #20804
git-svn-id: trunk@34321 -
2011-12-20 10:49:05 +00:00
mattias
ce22bc9ad1 lazutils: fixed TStringToStringTree.FindNode
git-svn-id: trunk@34245 -
2011-12-17 14:02:35 +00:00
mattias
9b7fc82827 codetools: replaced PAnsiString with AnsiString
git-svn-id: trunk@34234 -
2011-12-17 00:52:45 +00:00
mattias
c9cb54bcab lazutils: started new TStringToPointerTree
git-svn-id: trunk@34233 -
2011-12-17 00:09:41 +00:00
mattias
ce9ccb1092 lazutils: started new TStringToStringTree
git-svn-id: trunk@34232 -
2011-12-16 23:20:34 +00:00
mattias
b7e59c0f5b lazutils: optimized UTF8CStringToUTF8String
git-svn-id: trunk@34218 -
2011-12-16 01:16:04 +00:00
mattias
4b8a579110 lazutils: optimized UTF8CStringToUTF8String
git-svn-id: trunk@34216 -
2011-12-16 00:59:31 +00:00
mattias
e60e7e00f7 lazutils: deprecate TStringToStringTree.AddValues
git-svn-id: trunk@34144 -
2011-12-13 03:44:23 +00:00
mattias
20fa5ad2ef lazutils: renamed TStringToStringTree AddValues to AddNames
git-svn-id: trunk@34141 -
2011-12-13 02:06:28 +00:00
maxim
5a44369375 LazUtils: updated Russian translation
git-svn-id: trunk@34072 -
2011-12-09 17:56:31 +00:00
maxim
acbfd586b8 Translations: German translation update by Swen Heinig
git-svn-id: trunk@34071 -
2011-12-09 17:50:52 +00:00
sekelsenmat
83a07cc9cd Removes adding the timezone information in NowUTC
git-svn-id: trunk@34070 -
2011-12-09 15:55:47 +00:00
mattias
ade0ad1b9e lazutils: avglvltree: fixed FindPointer on last node
git-svn-id: trunk@33923 -
2011-12-02 23:17:18 +00:00
mattias
4ba447b3b4 LCL+LazUtils: moved unit avglvltree to lazutils
git-svn-id: trunk@33922 -
2011-12-02 23:16:27 +00:00
mattias
d468336cbb lconvencoding: simplified using iconvenc, define EnableIconvEnc if you want to use iconvenc
git-svn-id: trunk@33916 -
2011-12-02 20:21:18 +00:00
sekelsenmat
027d11ac6a Rewrites the GetTickCount interfaces to preserve backwards compatibility, to more closely resamble the WinAPI and also avoid confusion
git-svn-id: trunk@33563 -
2011-11-16 12:35:55 +00:00
mattias
8ee87295fc lcl+lazutils: moved TMethodList to lazutils
git-svn-id: trunk@33551 -
2011-11-16 05:51:31 +00:00
sekelsenmat
6c181cc045 paswstring fix from bug #20668
git-svn-id: trunk@33538 -
2011-11-15 09:15:41 +00:00
sekelsenmat
eca7c0b024 from patch #20657 removes some compiler warnings
git-svn-id: trunk@33437 -
2011-11-09 15:23:10 +00:00
mattias
afb21705e9 lazutils: fixed uninitialized access
git-svn-id: trunk@33415 -
2011-11-08 11:53:09 +00:00
sekelsenmat
6282148a84 GetTickCount: A fix which was recommended by the compiler
git-svn-id: trunk@33387 -
2011-11-07 07:42:00 +00:00
paul
d9a1e19722 lazutils: fix use of ut8string
git-svn-id: trunk@33383 -
2011-11-07 05:44:16 +00:00
sekelsenmat
4600e3eb2f Moves GetTickCount to LazUtils and adds NowUTC to LazUtils
git-svn-id: trunk@33381 -
2011-11-06 19:31:31 +00:00
sekelsenmat
121b0d4e52 Renames some utf8strings to strings as a temporary workaround for fpc 2.7 until the Unicode RTL encoding is decided
git-svn-id: trunk@33288 -
2011-11-04 10:26:09 +00:00
mattias
099bf2898b lazutils+codetools: fixed FindDiskFilename
git-svn-id: trunk@33219 -
2011-11-02 13:51:26 +00:00
mattias
dc4d739171 IDE: toggle form: when on include serach unit
git-svn-id: trunk@33148 -
2011-10-29 11:15:47 +00:00
sekelsenmat
ba49416b3b Disables lconvencoding from paswstring by default
git-svn-id: trunk@33116 -
2011-10-27 18:40:33 +00:00
sekelsenmat
4b223aa89d Final fix for 20552
git-svn-id: trunk@33084 -
2011-10-26 02:38:40 +00:00
sekelsenmat
5f53fe15b9 Implements GetConsoleTextEncoding for Windows
git-svn-id: trunk@33079 -
2011-10-25 07:39:48 +00:00
sekelsenmat
9cd742005b Starts GetConsoleTextEncoding
git-svn-id: trunk@33078 -
2011-10-25 07:35:02 +00:00
sekelsenmat
ca38c9ebc5 Documents a routine
git-svn-id: trunk@33076 -
2011-10-25 06:13:19 +00:00
sekelsenmat
f1698fd921 Fixes compiling lazutils for wince
git-svn-id: trunk@33002 -
2011-10-21 10:02:11 +00:00
sekelsenmat
8b380e202e Fixes bug #20229: ExpandFileNameUTF8, ExpandUNCFileNameUTF8 or other UTF8 functions in FileUtil
git-svn-id: trunk@33000 -
2011-10-20 20:43:24 +00:00
juha
dc810cd394 LazUtils: Add SearchSubDirs parameter to FindAllDirectories.
git-svn-id: trunk@32989 -
2011-10-19 21:20:26 +00:00
sekelsenmat
b3f587b60f First steps of a major move of code from lclproc to lazutf8
git-svn-id: trunk@32986 -
2011-10-19 19:16:31 +00:00
sekelsenmat
29e7449f18 Disables the new widestring manager for fpc 2.7 and moves some comented routines to proper place
git-svn-id: trunk@32982 -
2011-10-19 14:44:14 +00:00
sekelsenmat
172b031906 Adds a new unit to hold eventually utf16-based routines. Might be useful to speed up WideLowerCase for example in the future.
git-svn-id: trunk@32980 -
2011-10-19 12:14:14 +00:00
sekelsenmat
4d936c5608 Tunes the ansi conversion to really target ansi, not utf-8 as previously
git-svn-id: trunk@32978 -
2011-10-19 08:57:31 +00:00
sekelsenmat
5b05dc0fdd Removes unnecessary code to set the string terminators
git-svn-id: trunk@32977 -
2011-10-19 08:19:32 +00:00
sekelsenmat
e960bd6462 Fixes a stack corruption in Unicode2Ansi
git-svn-id: trunk@32975 -
2011-10-19 07:05:50 +00:00
sekelsenmat
a6ce630bcc Fixes string length and other errors in paswstring
git-svn-id: trunk@32972 -
2011-10-19 06:53:52 +00:00
sekelsenmat
397f343a4f Adds some missing widestring manager routines
git-svn-id: trunk@32967 -
2011-10-19 06:10:57 +00:00
juha
3604a5e097 LazUtils: Fix FindAllDirectories to find subdirs, too.
git-svn-id: trunk@32954 -
2011-10-18 11:26:23 +00:00
sekelsenmat
e4f88c9b1c Corrects the visibility of methods in TStringListUTF8
git-svn-id: trunk@32949 -
2011-10-17 18:11:56 +00:00
sekelsenmat
31b61b8ad5 Fixes fileutil compilation in unix
git-svn-id: trunk@32945 -
2011-10-17 12:13:17 +00:00
sekelsenmat
3ffd9d2af9 Moves lconvencoding.pas from the LCL to LazUtils
git-svn-id: trunk@32942 -
2011-10-17 11:36:24 +00:00
sekelsenmat
13daaaa219 Makes LazUtils a base package for the LCL and moves FileUtil, Masks and lazutf8classes to it. Updates the Makefile structure to reflect this.
git-svn-id: trunk@32936 -
2011-10-17 09:24:01 +00:00
blikblum
33e31be624 lazxml: fix writing file path with non ansi characters
git-svn-id: trunk@32928 -
2011-10-16 20:43:40 +00:00
sekelsenmat
810795ad1f Adds more uppercase support and tests, removes lowercase2
git-svn-id: trunk@32924 -
2011-10-16 15:18:12 +00:00
sekelsenmat
45ad603666 More tests and more lower/uppercase support
git-svn-id: trunk@32915 -
2011-10-15 21:20:11 +00:00
sekelsenmat
a8bff35bc7 More tests and more uppercase support
git-svn-id: trunk@32912 -
2011-10-15 18:38:52 +00:00
sekelsenmat
99b3c0f6bb New lower/upper tests, implements uppercase till 01FF, improves the description of the routines and fixes the identifier for Turkish and adds Azeri support
git-svn-id: trunk@32910 -
2011-10-15 17:48:16 +00:00
sekelsenmat
d0231069b3 More uppercase fixes
git-svn-id: trunk@32898 -
2011-10-15 06:11:17 +00:00
sekelsenmat
42fd5872b6 UpperCase fixes
git-svn-id: trunk@32896 -
2011-10-15 05:45:32 +00:00
sekelsenmat
7e93706129 Some fixes for paswstrings
git-svn-id: trunk@32893 -
2011-10-14 20:47:34 +00:00
sekelsenmat
26e38aa25c Adds paswstring to lazutils, it is feature complete now, although parts might need rethinking specially for fpc 2.7
git-svn-id: trunk@32889 -
2011-10-14 19:09:04 +00:00
sekelsenmat
8672da1501 Minor UpperCase fix and more UpperCase tests
git-svn-id: trunk@32885 -
2011-10-14 16:22:39 +00:00
sekelsenmat
eb9d587fcf Minor comment
git-svn-id: trunk@32884 -
2011-10-14 13:07:05 +00:00
sekelsenmat
1aa512e535 Finishes all characters for LowerCase
git-svn-id: trunk@32883 -
2011-10-14 12:34:48 +00:00
sekelsenmat
947c02677b Adds more unicode tests
git-svn-id: trunk@32882 -
2011-10-14 11:22:43 +00:00
sekelsenmat
d6cddfc645 Completes lowercase up to codepoint 1EFF and adds many tests
git-svn-id: trunk@32880 -
2011-10-14 09:53:23 +00:00
sekelsenmat
d7e57fa8ee More lowercase tests and fixes
git-svn-id: trunk@32871 -
2011-10-13 15:41:29 +00:00
sekelsenmat
7ee3255580 Lowercase: Adds large new tests and reworks parts of the latin lowercase implementation
git-svn-id: trunk@32870 -
2011-10-13 15:23:26 +00:00
martin
3be1e68746 LazUtf8: clean up unused var
git-svn-id: trunk@32869 -
2011-10-13 10:05:58 +00:00
sekelsenmat
7d8796f113 Adds a further performance optimization to lowercase by moving the new_c1 to only where needed
git-svn-id: trunk@32865 -
2011-10-13 06:22:44 +00:00
sekelsenmat
0071c56828 Enhances the fast initial parse of lowercase
git-svn-id: trunk@32864 -
2011-10-12 19:23:46 +00:00
martin
524c46d2cc LazUtf8: fix 2nd loop
git-svn-id: trunk@32863 -
2011-10-12 17:00:14 +00:00
sekelsenmat
50f1667209 Some more attempted changes
git-svn-id: trunk@32862 -
2011-10-12 16:57:28 +00:00
sekelsenmat
7914ea9804 Large overhaul to simplify the lowercase1 code
git-svn-id: trunk@32861 -
2011-10-12 16:38:56 +00:00
martin
443e4b5478 LazUtf8: clean up
git-svn-id: trunk@32860 -
2011-10-12 15:23:34 +00:00
martin
ee9c29ab04 LazUtf8: georgian
git-svn-id: trunk@32859 -
2011-10-12 15:00:48 +00:00
martin
c36cc8f766 LazUtf8: attempt to fix the last merge.
git-svn-id: trunk@32856 -
2011-10-12 14:39:07 +00:00
martin
fffd54b8bd another utf8lower
git-svn-id: trunk@32855 -
2011-10-12 14:17:28 +00:00
sekelsenmat
5d79eb6782 Lowercase: Adds Georgian support
git-svn-id: trunk@32854 -
2011-10-12 13:51:33 +00:00
sekelsenmat
dc435d6380 lowercase: Fixes disalligned chars for
git-svn-id: trunk@32852 -
2011-10-12 12:50:38 +00:00
sekelsenmat
2640733df3 Goes back to a new martin2 based LowerCase to avoid code duplication
git-svn-id: trunk@32851 -
2011-10-12 12:33:55 +00:00
martin
d708813957 Fixed new utf8lower
git-svn-id: trunk@32845 -
2011-10-12 11:27:28 +00:00
sekelsenmat
21f584b765 Adds initial support in utf8lowercase for archaic and non-slavic cyrillic
git-svn-id: trunk@32837 -
2011-10-12 06:57:15 +00:00
sekelsenmat
dd582c9852 Removes my original LowerCase and now uses Martins version as the default one
git-svn-id: trunk@32836 -
2011-10-12 06:30:35 +00:00
sekelsenmat
2371688c04 Kills martin 2, adds more commenting to martin 1, removes the table usage from martin 1
git-svn-id: trunk@32834 -
2011-10-12 06:21:49 +00:00
sekelsenmat
3208d981ee Fixes a bug in cyrillic conversion from martin lowercase
git-svn-id: trunk@32833 -
2011-10-12 05:55:07 +00:00
sekelsenmat
36e4b9b936 Adds more comments for martin utf-8 lowercase
git-svn-id: trunk@32832 -
2011-10-12 05:54:38 +00:00
maxim
8037b4c8c1 Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #20465
git-svn-id: trunk@32828 -
2011-10-11 22:53:27 +00:00
mattias
00ebb16e0b lazutils: clean up
git-svn-id: trunk@32826 -
2011-10-11 21:02:40 +00:00
mattias
4dcc3116ea codetools: show backtrace on consistency exceptions in linkscanner
git-svn-id: trunk@32775 -
2011-10-09 06:51:01 +00:00
blikblum
3c0fbef25c lazxml: fix reading file path with non ansi characters
git-svn-id: trunk@32773 -
2011-10-09 00:33:26 +00:00
mattias
33120cb167 laz2_xmlread: fixed reading text ending with space
git-svn-id: trunk@32772 -
2011-10-08 21:08:49 +00:00
maxim
2234283a97 regenerated translations; updated Russian translation
git-svn-id: trunk@32769 -
2011-10-08 16:18:51 +00:00
martin
910873ae42 LazUtf8, another candidate for lower-casing
git-svn-id: trunk@32765 -
2011-10-08 09:54:55 +00:00
martin
5a9700b57c LazUtf8, another candidate for lower-casing
git-svn-id: trunk@32764 -
2011-10-08 09:39:26 +00:00
martin
6132be7d61 LazUtf8, another candidate for lower-casing
git-svn-id: trunk@32763 -
2011-10-08 08:46:27 +00:00
mattias
2453363069 codetools: parse method specifier assembler, bug #20437
git-svn-id: trunk@32762 -
2011-10-08 07:48:31 +00:00
martin
7802657a97 LazUtf8, another candidate for lower-casing
git-svn-id: trunk@32760 -
2011-10-07 21:58:21 +00:00
sekelsenmat
dfcfb425d4 Speed optimization for lowercase ASCII
git-svn-id: trunk@32757 -
2011-10-07 14:52:07 +00:00
mattias
1e24d21f65 lazutf8: some optimizations for UTF8LowerCaseMattias
git-svn-id: trunk@32756 -
2011-10-07 14:49:27 +00:00
sekelsenmat
ad5324754e Extends the speed improvements to UpperCase
git-svn-id: trunk@32754 -
2011-10-07 14:40:17 +00:00
sekelsenmat
e1b8857eae Fixes pointer error for turkish
git-svn-id: trunk@32753 -
2011-10-07 14:20:38 +00:00
sekelsenmat
62b7fa90b6 Simplifies a bit the variable names, adds more cyrillic
git-svn-id: trunk@32752 -
2011-10-07 14:14:57 +00:00
sekelsenmat
8f32884124 Corrects the counter for the new PChars
git-svn-id: trunk@32750 -
2011-10-07 13:31:34 +00:00
sekelsenmat
1b5cf72575 Improves performance of LowerCase by adding one UniqueString and supressing its usage by the compiler in all other assignments
git-svn-id: trunk@32749 -
2011-10-07 13:24:27 +00:00
sekelsenmat
f1952adbd6 More turkish utf8 fixes
git-svn-id: trunk@32748 -
2011-10-07 12:05:45 +00:00
sekelsenmat
18e81edc2f Improves turkish lowercase
git-svn-id: trunk@32747 -
2011-10-07 11:55:17 +00:00
sekelsenmat
d750060cf4 Reactivates the tables with ifdefs
git-svn-id: trunk@32743 -
2011-10-07 11:16:48 +00:00