Commit Graph

149 Commits

Author SHA1 Message Date
michael
416151a335 * Adapted string routines so they use sizeint instead of integer (bug ID 29814)
git-svn-id: trunk@33246 -
2016-03-13 18:59:21 +00:00
michael
671416959d * Added SameStr, for symmetry and consistency with SameText (bug ID 29821)
git-svn-id: trunk@33238 -
2016-03-13 16:31:41 +00:00
florian
8b81ce7e25 * use PtrUInt instead of Cardinal in GenericAnsiStrLComp and GenericAnsiStrLIComp, resolves #29815
git-svn-id: trunk@33218 -
2016-03-11 20:38:48 +00:00
michael
5568ee5513 * Bug ID #29779, add DWord versions of StrToInt
git-svn-id: trunk@33153 -
2016-03-05 13:50:59 +00:00
michael
cf530f117e * Faster stringreplace (bug ID 26864)
git-svn-id: trunk@33055 -
2016-02-06 10:19:56 +00:00
michael
8544b8a500 * Patch from Anthony Walter to make IsValidIdent more strict in case of dotted identifiers (bug ID 29364)
git-svn-id: trunk@32920 -
2016-01-10 22:57:19 +00:00
michael
244be4f4c2 * Added UnicodeStringReplace WideStringReplace (bug ID 28396)
git-svn-id: trunk@32815 -
2015-12-31 16:09:05 +00:00
michael
67d0cd1770 * Fix bug #29273 (extra argument for IsValidIdent)
git-svn-id: trunk@32791 -
2015-12-29 16:55:00 +00:00
yury
e1a0b1204a * Removed unused vars in RTL.
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
Jonas Maebe
2afd8eb802 - removed FPC_HAS_STR_CURRENCY-related code, FPC 2.6.4 has it
git-svn-id: trunk@31692 -
2015-09-15 11:51:48 +00:00
florian
4d5f1f04fe * solution in r29126 was brute force, fixed
git-svn-id: trunk@29128 -
2014-11-23 20:37:20 +00:00
florian
9a31cba3d3 * do not blindly insert decimal seperators in StrToFloat, resolves #27029
git-svn-id: trunk@29126 -
2014-11-23 20:18:19 +00:00
michael
a45890443b * Fix for regression in 12385
git-svn-id: trunk@28741 -
2014-10-04 15:59:37 +00:00
michael
2a4019b012 * Fix tw13076, broken by previous commit 28660
git-svn-id: trunk@28680 -
2014-09-16 14:00:41 +00:00
michael
4c86a68345 * Fix bug #23954
git-svn-id: trunk@28660 -
2014-09-14 15:58:07 +00:00
nickysn
afea0739c6 * fixed StrToInt, IntToStr and friends for objpas.integer=smallint
git-svn-id: trunk@27067 -
2014-03-10 00:33:53 +00:00
Jonas Maebe
5ed4e99dc1 + uppercase/lowercase(unicodestring) (fixes a warning in fina.inc when
compiled with unicodestring)
  * changed uppercase/lowercase(ansistring) to use the same logic as the
    new unicode versions (unify code for lower/upper, only make result
    unique if necessary)
  + test for all four routines

git-svn-id: branches/cpstrrtl@25006 -
2013-06-28 12:46:25 +00:00
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