Commit Graph

290 Commits

Author SHA1 Message Date
joost
4fc5d5dbef * Show provided invalid date in StroToDate error messages
* Show a proper error-message if an empty string is supplied to StrToDate

git-svn-id: trunk@12452 -
2008-12-28 22:37:59 +00:00
yury
5ffec2d876 * Fixed notes: Virtual method X has a lower visibility (protected) than parent class (public).
git-svn-id: trunk@12353 -
2008-12-12 15:07:05 +00:00
michael
a469e84820 * And yet another extra test plus fix
git-svn-id: trunk@12335 -
2008-12-11 09:04:48 +00:00
michael
6d93a762fd * And once more fixed formatfloat. All results consistent with Delphi now
git-svn-id: trunk@12323 -
2008-12-10 20:39:16 +00:00
michael
87a6193f4f * Hopefully fixed formatfloat negative value bugs once and for all
git-svn-id: trunk@12303 -
2008-12-05 10:54:22 +00:00
michael
f64ec1faa6 * removed debug statement
git-svn-id: trunk@12088 -
2008-11-14 13:06:45 +00:00
michael
0d53564797 * Fixed bug #12385
git-svn-id: trunk@12087 -
2008-11-14 13:04:51 +00:00
Jonas Maebe
dbbd75ca47 * fixed setting EInoutError.ErrorCode (mantis #12575, thanks to
Bart Broersma for the analysis)

git-svn-id: trunk@12037 -
2008-11-09 09:46:47 +00:00
michael
65637e301f * Fixed strtotime. Last character was never taken into account
git-svn-id: trunk@12005 -
2008-11-01 11:05:21 +00:00
florian
20fd2d692f o patch by Markus Beth
* improves ReadInteger speed
  * unified ChPos variable casing

git-svn-id: trunk@11746 -
2008-09-11 13:41:54 +00:00
florian
b178b08ba7 Merged revisions 11665-11738 via svnmerge from
http://svn.freepascal.org/svn/fpc/branches/unicodestring

........
  r11665 | florian | 2008-08-30 13:30:17 +0200 (Sat, 30 Aug 2008) | 1 line
  
  * continued to work on unicodestring type support
........
  r11666 | florian | 2008-08-30 19:02:26 +0200 (Sat, 30 Aug 2008) | 2 lines
  
  * expectloc for wide/ansi/unicode strings is LOC_CONSTANT or LOC_REGISTER now
........
  r11667 | florian | 2008-08-30 20:42:37 +0200 (Sat, 30 Aug 2008) | 1 line
  
  * more unicodestring stuff fixed, test results on win32 are already good
........
  r11670 | florian | 2008-08-30 23:21:48 +0200 (Sat, 30 Aug 2008) | 2 lines
  
  * first fixes for unix bootstrapping
........
  r11683 | ivost | 2008-09-01 12:46:39 +0200 (Mon, 01 Sep 2008) | 2 lines
  
      * fixed 64bit bug in iconvenc.pas
........
  r11689 | florian | 2008-09-01 23:12:34 +0200 (Mon, 01 Sep 2008) | 1 line
  
  * fixed several errors when building on unix
........
  r11694 | florian | 2008-09-03 20:32:43 +0200 (Wed, 03 Sep 2008) | 1 line
  
  * fixed unix compilation
........
  r11695 | florian | 2008-09-03 21:01:04 +0200 (Wed, 03 Sep 2008) | 1 line
  
  * bootstrapping fix
........
  r11696 | florian | 2008-09-03 21:07:18 +0200 (Wed, 03 Sep 2008) | 1 line
  
  * more bootstrapping fixed
........
  r11698 | florian | 2008-09-03 22:47:54 +0200 (Wed, 03 Sep 2008) | 1 line
  
  + two missing compiler procs exported
........
  r11701 | florian | 2008-09-04 16:42:34 +0200 (Thu, 04 Sep 2008) | 2 lines
  
  + lazarus project for the linux rtl
........
  r11702 | florian | 2008-09-04 16:43:27 +0200 (Thu, 04 Sep 2008) | 2 lines
  
  + set unicode string procedures
........
  r11707 | florian | 2008-09-04 23:23:02 +0200 (Thu, 04 Sep 2008) | 2 lines
  
  * fixed several type casting stuff
........
  r11712 | florian | 2008-09-05 22:46:03 +0200 (Fri, 05 Sep 2008) | 1 line
  
  * fixed unicodestring compilation on windows after recent unix changes
........
  r11713 | florian | 2008-09-05 23:35:12 +0200 (Fri, 05 Sep 2008) | 1 line
  
  + UnicodeString support for Variants
........
  r11715 | florian | 2008-09-06 20:59:54 +0200 (Sat, 06 Sep 2008) | 1 line
  
  * patch by Martin Schreiber for UnicodeString streaming
........
  r11716 | florian | 2008-09-06 22:22:55 +0200 (Sat, 06 Sep 2008) | 2 lines
  
  * fixed test
........
  r11717 | florian | 2008-09-07 10:25:51 +0200 (Sun, 07 Sep 2008) | 1 line
  
  * fixed typo when converting tunicodestring to punicodechar
........
  r11718 | florian | 2008-09-07 11:29:52 +0200 (Sun, 07 Sep 2008) | 3 lines
  
  * fixed writing of UnicodeString properties
  * moved some helper routines to unicode headers
........
  r11734 | florian | 2008-09-09 22:38:55 +0200 (Tue, 09 Sep 2008) | 1 line
  
  * fixed bootstrapping
........
  r11735 | florian | 2008-09-10 11:25:28 +0200 (Wed, 10 Sep 2008) | 2 lines
  
  * first fixes for persisten unicodestrings
........
  r11736 | florian | 2008-09-10 14:31:00 +0200 (Wed, 10 Sep 2008) | 3 lines
  
  Initialized merge tracking via "svnmerge" with revisions "1-11663" from 
  http://svn.freepascal.org/svn/fpc/trunk
........
  r11737 | florian | 2008-09-10 21:06:57 +0200 (Wed, 10 Sep 2008) | 3 lines
  
  * fixed unicodestring <-> variant handling
  * fixed unicodestring property reading
........

git-svn-id: trunk@11739 -
2008-09-10 20:14:31 +00:00
michael
ca4fa01f8f * Fixed formaatfloat for negative numbers (Bug ID 11711) objpas/sysutils/sysstr.inc
git-svn-id: trunk@11680 -
2008-08-31 22:25:19 +00:00
marco
03fd61b68d * booltostr overload
git-svn-id: trunk@11600 -
2008-08-17 13:26:02 +00:00
marco
24d8341ed6 * (IDE-sysutils) dateutil has now unpacktime/packtime alike to Delphi dt.
* newstr and disposestr for pshortstring in sysutils. Avoids import order
     problems because of duplicate definitions of pstring between objects
     and sysutils

git-svn-id: trunk@11598 -
2008-08-17 12:10:35 +00:00
marco
bcfb545837 * deprecation of tsearchrec.pathonly, under ifndef ver2_2 as per 11579
git-svn-id: trunk@11402 -
2008-07-18 20:05:32 +00:00
michael
1ea2129c0d * Changed var to out parameters for strtoint*
git-svn-id: trunk@11314 -
2008-07-02 18:00:07 +00:00
giulio
cc08543f57 Patch from Petr Kristan for AnsiStrComp/AnsiStrIComp to fix comparison
when both strings are empty and differ after the null character + test.

git-svn-id: trunk@11277 -
2008-06-25 07:07:54 +00:00
michael
767e3fee62 * Patch from Joao Morais to fix the case where only a time is provided
git-svn-id: trunk@11199 -
2008-06-05 07:06:47 +00:00
michael
d419c1078a * GetRandomBytes calls randomize only once, now thread safe too
git-svn-id: trunk@11125 -
2008-05-29 13:31:32 +00:00
michael
fb53b5e9f6 * GetRandomBytes calls random only once
git-svn-id: trunk@11123 -
2008-05-29 13:16:07 +00:00
michael
26575472b6 * Added GetUSerDir function (ID 11338)
git-svn-id: trunk@11074 -
2008-05-24 11:50:26 +00:00
Jonas Maebe
e60e078eb5 * only allow decimalseparator to be used as decimal separator in
texttofloat() and friends, rather than both '.' and decimalseparator
    (mantis #9126)

git-svn-id: trunk@11069 -
2008-05-24 08:49:34 +00:00
marco
e57c36eaba * patch for #11110, unc drives and forcedirectories from Bart.
git-svn-id: trunk@10855 -
2008-05-01 15:41:36 +00:00
Jonas Maebe
2067da9a62 * patch from Giulio Bernardi to fix the generic AnsiStrIComp,
AnsiStrLComp and AnsiStrLIComp (mantis #11235):
   * fixed wrong equality result in case one of the strings
     was shorter than the other but matched the start
   * AnsiStrLComp and AnsiStrLIComp should ignore embedded #0
     characters

git-svn-id: trunk@10846 -
2008-04-30 19:02:01 +00:00
yury
62e616cae0 * Fixed warnings. rtl is warnings and notes free for wince and win32 again.
git-svn-id: trunk@10632 -
2008-04-12 13:34:26 +00:00
joost
1a4ee73146 * Added NoWideStringSupport runtime error
git-svn-id: trunk@10618 -
2008-04-08 21:19:52 +00:00
michael
d20636a319 * Fix from Petr Kristan to remofe timereformat (kills AM/PM)
git-svn-id: trunk@10616 -
2008-04-08 17:37:05 +00:00
marco
99c4e92735 * fix for 11099
git-svn-id: trunk@10605 -
2008-04-06 11:14:06 +00:00
michael
33cb576bba * Patch for arithmetic overflow from Petr Kristan
git-svn-id: trunk@10566 -
2008-03-26 15:33:24 +00:00
marco
c8da24f732 * comment fix #10781
git-svn-id: trunk@10435 -
2008-03-03 08:28:26 +00:00
micha
83b7f81f81 + add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone)
git-svn-id: trunk@10422 -
2008-03-02 12:59:02 +00:00
florian
c424f27291 * patch by C Western for #10883
git-svn-id: trunk@10385 -
2008-02-24 20:00:08 +00:00
peter
3ffcb2244e * FileSearch needs to check first the file in the
current dir

git-svn-id: trunk@10128 -
2008-02-01 07:03:30 +00:00
peter
e08570573f * fix and cleanup FileSearch
git-svn-id: trunk@10115 -
2008-01-30 11:57:23 +00:00
peter
8c0adc7f3d * fixed also ExtractFileName
git-svn-id: trunk@10108 -
2008-01-29 23:30:30 +00:00
peter
496212d5c4 * fixed ExtractFileExt broken after previous commit
git-svn-id: trunk@10107 -
2008-01-29 23:23:25 +00:00
peter
f4f3ae84d0 * AllowDirectorySeparators and AllowDriveSeparators typed constants
added to allow customization of path and directory parsing in the rtl
  * Use the new sets instead of the hardcoded / and \

git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
peter
3d319a99b8 * made forcedirectories consistent with other file handling
to accept both / and \ as spearators

git-svn-id: trunk@10104 -
2008-01-29 22:14:53 +00:00
marco
d7c9bb88d2 * remove some redundant pbyte definitions.
git-svn-id: trunk@10097 -
2008-01-29 19:37:41 +00:00
peter
95d0ce1270 * VendorName function added to allow an extra subdirectory
to group multiple products
  * OnGetVendorName hook, like OnGetApplicationName
  * use COMMON_APPPATH for global config files under windows

git-svn-id: trunk@10072 -
2008-01-27 21:40:55 +00:00
Jonas Maebe
200f1e5643 * fixed webtbs/tw10519.pp for CPUs which don't support extended
git-svn-id: trunk@9893 -
2008-01-24 10:33:14 +00:00
mazen
7c19e36595 * Added implementation for Julian date computaton.
git-svn-id: trunk@9604 -
2007-12-31 16:34:45 +00:00
michael
8793de3166 * Applied patch from Sergei Gorelkin for ComposeDateTime and IncAMonth
git-svn-id: trunk@9600 -
2007-12-30 22:20:11 +00:00
michael
d7f94a8282 * Added GetModuleName
git-svn-id: trunk@9596 -
2007-12-30 21:50:40 +00:00
michael
eec321b2f8 * Implemented ExtractShortPathName
git-svn-id: trunk@9595 -
2007-12-30 21:45:48 +00:00
Jonas Maebe
997d7b33db * don't override routines hooked by a real widestring manager before
sysutils initialised

git-svn-id: trunk@9392 -
2007-12-05 14:28:11 +00:00
peter
6ed3d91989 * CompareText for shortstrings added
* optimize CompareText
  * use CompareText for case-insenstive compares in the RTL
  patches from Sergei Gorelkin

git-svn-id: trunk@9384 -
2007-12-02 18:36:20 +00:00
peter
544cf539e1 * fix for relativepath, fixes #10224
git-svn-id: trunk@9312 -
2007-11-21 21:51:42 +00:00
yury
d568718cb0 * Removed UpperCaseTable and LowerCaseTable variables and TCaseTranslationTable type from interface part. These variables are used only by generic upper/lower case conversion routines. They are not used on Windows targets and it is bad idea to let users use these variables. Users must use AnsiLowerCase and AnsiUpperCase routines.
git-svn-id: trunk@9301 -
2007-11-20 10:45:50 +00:00
peter
732abba1f2 * all functions use DirSeparators. This is required to be able to have consistent
result values that can be used as input values. A problem with inconsitency was
    in ForceDirectories where excludetrailingpathdelimiter did not remove a / under win32
    and ExtractFilePath found the / as a separator. With the end result an infinite loop.

git-svn-id: trunk@9290 -
2007-11-18 21:40:17 +00:00