Jonas Maebe
25ebb36103
* catch invalid floating point operations in TextToFloat (mantis #24197 )
...
git-svn-id: trunk@24105 -
2013-04-01 11:50:49 +00:00
Jonas Maebe
7dfe1301c3
* fixed type in FloatToStrFIntl introduced in r23311 (mantis #24131 )
...
git-svn-id: trunk@24013 -
2013-03-26 18:53:37 +00:00
florian
6363567fba
* FloatToStrFIntl is used only internally so we can assume that Value is aligned
...
git-svn-id: trunk@23311 -
2013-01-04 19:13:28 +00:00
Jonas Maebe
9804fd527b
* don't add a thousands separator in FormatFloat if there are no digits
...
before it because the value is too small, regardless of what the format
pattern sepcifies (patch by Bart Broersma, mantis #13076 )
git-svn-id: trunk@23095 -
2012-12-02 16:57:41 +00:00
Jonas Maebe
b4971c72d3
* partial fix for mantis #22912 (waiting on clarification from Unicode
...
consortium for the character.pas unit)
git-svn-id: trunk@22494 -
2012-09-28 07:57:45 +00:00
Jonas Maebe
349a682596
* corrected license header from GPL to LGPL + static linking exception like
...
the rest of the FPC RTL, after confirming with the original author that
this is ok (mantis #22879 )
git-svn-id: trunk@22413 -
2012-09-17 12:12:42 +00:00
Jonas Maebe
193c7af57f
* print literal e/E in formatfloat if not followed by +/- (remaining part of
...
mantis #22290 )
git-svn-id: trunk@22248 -
2012-08-26 14:51:32 +00:00
Jonas Maebe
a4804a3c25
* let FloatToStr output the correct number of decimals in case the
...
first significant digit is preceded by several zeroes (patch by
C. Western, mantis #16907 )
git-svn-id: trunk@19738 -
2011-12-03 22:34:00 +00:00
marco
7c1f4b8f20
* pass format string to doformaterror procedure. Mantis 16253
...
git-svn-id: trunk@17080 -
2011-03-05 17:02:43 +00:00
sergei
131b7fcdb2
* RTL: Replaced deprecated formatting symbols with their up-to-date counterparts, reduces compiler noise.
...
* Also removed some unused variables.
git-svn-id: trunk@16744 -
2011-01-09 15:27:05 +00:00
michael
b93ab63038
* Fixed IntToHex in case of (0,0)
...
git-svn-id: trunk@16026 -
2010-09-20 07:46:04 +00:00
michael
154c6ec4d2
* Implementation of values 11..15 of negcurrentformat from Zeljan Rikalo
...
git-svn-id: trunk@15982 -
2010-09-14 11:23:41 +00:00
michael
f7b268713d
* Patch from Zeljan Rikalo to fix issue #13722 (FloatToStrF negative 0)
...
git-svn-id: trunk@15945 -
2010-09-06 11:09:39 +00:00
Jonas Maebe
89be8d45e3
* use TrueBoolStrs/FalseBoolStrs for *StrToBool* (mantis #16848 )
...
git-svn-id: trunk@15764 -
2010-08-10 13:06:22 +00:00
Jonas Maebe
a18f2594e2
* fixed FloatToStr for ffGeneral when dealing with numbers whose number of
...
significant digits before the decimal points matches the precision
parameter exactly (mantis #16188 )
* round instead of cut off digits in FloatToStr with ffGeneral
* take into account the minus sign when determining whether a number needs
to be represented using ffExponent instead of ffGeneral because it has
too many digits
git-svn-id: trunk@15114 -
2010-04-05 14:54:24 +00:00
paul
5cc182ac07
rtl: fix FormatFloat to skip first spaces
...
git-svn-id: trunk@14490 -
2009-12-28 15:53:35 +00:00
florian
230142f08b
* change length parameter of CompareMem/CompareMemRange into PtrUInt, resolves #15190
...
* use CompareByte inside these routines instead of simple handmade code
git-svn-id: trunk@14435 -
2009-12-13 11:42:05 +00:00
marco
5163b44ac6
* Patch for "formatsettings" overloads of currency functions, mantis 15067
...
git-svn-id: trunk@14162 -
2009-11-13 09:10:24 +00:00
florian
44f588b7ad
* fixed nested comment warning
...
git-svn-id: trunk@13450 -
2009-07-26 12:55:01 +00:00
florian
ee49e8acb6
* SScanf uses StrToFloat to convert the string to a float so it has to use DecimalSeparator to parse the string
...
* test adapted to use DecimalSeparator to create the test string
git-svn-id: trunk@13399 -
2009-07-16 21:12:45 +00:00
florian
87df99a53d
* reverted partially r11598 because it breaks delphi compatibility and e.g. tw3721.pp
...
git-svn-id: trunk@13398 -
2009-07-16 21:01:27 +00:00
Jonas Maebe
55578e8226
* fixed FloatToDecimal() for inf/nan (mantis #14143 , thanks to
...
Sergei Gorelkin for the test program)
git-svn-id: trunk@13394 -
2009-07-16 13:11:36 +00:00
Jonas Maebe
8cae53bb18
* fixed errors with parsing negative, >$99 and invalid BCD numbers in
...
BCDToInt() (patch from Milla, mantis #13512 )
git-svn-id: trunk@13052 -
2009-04-27 16:46:42 +00:00
Jonas Maebe
e8edc31a89
* don't insert thousandseparator if it is #0 (mantis #13552 , patch by
...
Jesus Reyes)
git-svn-id: trunk@13028 -
2009-04-23 19:16:49 +00:00
Jonas Maebe
8d2f3946e0
* fixed TextToFloat() in case ThousandSeparator = DecimalSeparator, based
...
on patch by Bart Broersma (mantis #13307 )
git-svn-id: trunk@12885 -
2009-03-14 15:20:46 +00:00
Jonas Maebe
f13006c7f2
* changed the output parameters of a bunch of *tofloat() and
...
trystrtocurr() from var to out (mantis #13289 )
git-svn-id: trunk@12862 -
2009-03-07 15:17:58 +00:00
Jonas Maebe
dc2d1c6926
* fixed (harmless) range check errors
...
* fixed indentation
git-svn-id: trunk@12709 -
2009-02-07 22:25:07 +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
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
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
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
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
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
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
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
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
yury
220a37b443
* Do not fill generic upcase and lowcase conversion tables for windows targets, because generic ANSI routines are not used here.
...
git-svn-id: trunk@9049 -
2007-11-01 16:15:29 +00:00
yury
7240f723ef
* Fixed warnings.
...
git-svn-id: trunk@9048 -
2007-11-01 16:05:46 +00:00
marco
827d380691
* pchar(pointer()) isms that were safe.
...
git-svn-id: trunk@8672 -
2007-09-28 21:57:45 +00:00
Jonas Maebe
a57f9e0672
+ added QWord overloads for IntToHex, hexStr, OctStr, binStr
...
git-svn-id: trunk@8332 -
2007-08-29 12:06:54 +00:00
Jonas Maebe
49a545aef2
* fixed FormatFloat for non-x86 (mantis 9384)
...
git-svn-id: trunk@8220 -
2007-08-04 17:38:48 +00:00
florian
e1125c3f7f
+ StrNextChar implemented
...
git-svn-id: trunk@7803 -
2007-06-24 20:30:55 +00:00
Jonas Maebe
d3736f563f
* fixed several range errors
...
git-svn-id: trunk@6857 -
2007-03-14 19:47:53 +00:00