Commit Graph

76 Commits

Author SHA1 Message Date
michael
93ec37a4bc Added overloads UintToStr for Delphi compatbibility (bug ID 0034690)
git-svn-id: trunk@40529 -
2018-12-12 08:29:24 +00:00
michael
b5fb706a65 * Fix bug #31176: (Try)StrToBool should accept localized floats
git-svn-id: trunk@35331 -
2017-01-25 21:23:07 +00:00
michael
10360a823e * Fix bug ID #30960
git-svn-id: trunk@34970 -
2016-11-26 17:28:55 +00:00
michael
8e3381b4bc Fix bug #30930
git-svn-id: trunk@34903 -
2016-11-15 20:15:33 +00:00
michael
f648bdecba * Made some additional functions inlined (Bug ID 30909)
git-svn-id: trunk@34874 -
2016-11-11 10:28:19 +00:00
michael
9b21d9a87e * Inline some functions, bug ID #30905
git-svn-id: trunk@34868 -
2016-11-11 09:33:28 +00:00
svenbarth
63f0c7a2c3 Fix for Mantis #30734: Implement Delphi-compatible functions StrToUInt64(), StrToUInt64Def and TryStrToUInt64 as inline forwarders to the existing respective QWord functions
git-svn-id: trunk@34710 -
2016-10-13 17:49:50 +00:00
michael
5810ff8154 * Patch from Maciej Izak for delphi compatible TLocaleOptions (bug ID 30660)
git-svn-id: trunk@34683 -
2016-10-08 22:23:34 +00:00
michael
a5d38c7ba6 * Added TStringBuilder
git-svn-id: trunk@33695 -
2016-05-16 15:23:40 +00:00
michael
2b077f6af3 * Revert Integer -> SizeInt change where appropriate, capping result when needed
git-svn-id: trunk@33327 -
2016-03-26 07:41:34 +00:00
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
michael
5568ee5513 * Bug ID #29779, add DWord versions of StrToInt
git-svn-id: trunk@33153 -
2016-03-05 13:50:59 +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
67d0cd1770 * Fix bug #29273 (extra argument for IsValidIdent)
git-svn-id: trunk@32791 -
2015-12-29 16:55:00 +00:00
michael
a5eb3777de * Fix MaxDateTime constant (bug ID 28282)
git-svn-id: trunk@32775 -
2015-12-28 14:23:23 +00:00
michael
891aaa9732 * Fix bug ID #28737
git-svn-id: trunk@32727 -
2015-12-26 15:15:34 +00:00
svenbarth
2cf8cdd885 Fix for Mantis #28650.
rtl/objpas/sysutils/sysstrh.inc:
  * forward PString to ObjPas.PString to avoid potential type conflicts

+ added test

git-svn-id: trunk@31603 -
2015-09-11 15:38:59 +00:00
florian
c2c87828e9 + slightly modified patch by lelekx to implement plugable file routines for the embedded target, resolves issue #22918
git-svn-id: trunk@30759 -
2015-05-02 08:03:18 +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
ba7fc58bed * declare tsyscharset as a set of ansichar instead of as a set of char
(widechar sets are not (yet?) supported)

git-svn-id: branches/cpstrrtl@24989 -
2013-06-27 21:37:29 +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
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
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
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
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
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
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
joost
f6d66e8cf5 * Changed MinDateTime for FloatToDateTime and VariantToDate to 01/01/0001
git-svn-id: trunk@8534 -
2007-09-17 21:25:51 +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
florian
e1125c3f7f + StrNextChar implemented
git-svn-id: trunk@7803 -
2007-06-24 20:30:55 +00:00
michael
fcce3195b6 * TFormatSettings implementation, stage 3 (final)
git-svn-id: trunk@5899 -
2007-01-11 20:25:18 +00:00
michael
cab9811e02 * TFormatSettings implementation, stage 2
git-svn-id: trunk@5897 -
2007-01-11 20:01:33 +00:00
marco
4264f5d041 * booltostr now D7 compat.
git-svn-id: trunk@5744 -
2006-12-29 21:19:46 +00:00
Jonas Maebe
5133e7161a + newer version of FloatToDecimal
* use more precision for extended (Delphi compatible)

git-svn-id: trunk@5517 -
2006-12-01 18:18:23 +00:00
Jonas Maebe
fb22cb9efc * fixed web bug #7756
git-svn-id: trunk@5516 -
2006-12-01 17:00:03 +00:00
marco
304be38ec1 * datetotime-def functions (but not yet FormatSettings) + ansidequotedstr (turned
out to be extractquotestr wrapper).

git-svn-id: trunk@5032 -
2006-10-27 18:20:02 +00:00
florian
215b870f5e * StrToBool friends, fixes #7222
git-svn-id: trunk@4378 -
2006-08-06 15:38:27 +00:00
florian
0a9a9dd69c - mispelled TryStrQWord removed
git-svn-id: trunk@4143 -
2006-07-11 20:03:21 +00:00
michael
89d52a3be9 + Added StrToQWord
git-svn-id: trunk@4063 -
2006-07-02 09:25:35 +00:00
marco
5d4300fd45 * PSysCharset.
git-svn-id: trunk@3052 -
2006-03-27 09:01:14 +00:00
Jonas Maebe
7338c03fac + comp and int64 overloads for floattostr(f)
git-svn-id: trunk@2403 -
2006-02-02 10:33:12 +00:00
Jonas Maebe
e9a6b3dc10 * fixed some FloatToStrF and FloatToStr precision problems. Still fails
for some corner cases (e.g. 8.502 as double), but that problem is in
    str_real

git-svn-id: trunk@2390 -
2006-02-01 10:22:52 +00:00
florian
f60d89cc75 + StrToQWord patch from Vincent Snijders
git-svn-id: trunk@2148 -
2006-01-03 22:15:22 +00:00
florian
c94849ddb0 * readded overload directive to lowercase
+ lowercase(<variant>);

git-svn-id: trunk@1156 -
2005-09-22 17:18:28 +00:00
florian
6df53bf057 - removed overload directive from LowerCase, UpperCase hasn't one either
git-svn-id: trunk@1151 -
2005-09-20 21:10:24 +00:00