Atsushi Eno
88c6254f34
Extend supported XmlDateTimeSerialization formats. Fixed bug #690475 .
2011-04-28 17:35:38 +09:00
Rolf Bjarne Kvinge
f64261401d
Fix many corcompare issues for moonlight
2011-03-31 16:05:03 +02:00
Marek Habersack
ec3fd3ea70
[xml] Out of range errors should be swallowed when doing string -> datetime conversion
2011-01-06 10:37:49 +01:00
Atsushi Eno
8fd76fb60d
Fix ToDateTime() with serialization mode to not mess hour based on timezone.
...
Fixed bug #661787 .
2011-01-05 17:00:58 +09:00
Atsushi Eno
f166d738ba
Do not add 'zzz' to all DateTime formats blindly. Fixed bug #655089 .
2010-11-26 14:36:31 +09:00
Atsushi Eno
e1cad400ae
2010-01-25 Atsushi Enomoto <[email protected] >
...
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.
svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno
e013411012
2010-01-15 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : Do not ignore ticks which are less than a
millisecond. Remove trailing zeros for milliseconds and ticks.
* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
ticks.
svn path=/trunk/mcs/; revision=149618
2010-01-15 10:49:03 +00:00
Atsushi Eno
4079df7702
2010-01-15 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : trim spaces when parsing TimeSpan.
* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.
svn path=/trunk/mcs/; revision=149617
2010-01-15 10:21:16 +00:00
Atsushi Eno
4678757465
2010-01-15 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : shorten format string patterns.
svn path=/trunk/mcs/; revision=149612
2010-01-15 09:52:46 +00:00
Atsushi Eno
a2eea4d7e5
2010-01-15 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : DateTimeOffset parse is sloppy.
* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
string with spaces.
svn path=/trunk/mcs/; revision=149609
2010-01-15 08:58:42 +00:00
Atsushi Eno
e48ffb5e67
2010-01-12 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : handle Infinity and -Infinity here due to the
commented reason.
svn path=/trunk/mcs/; revision=149387
2010-01-12 08:54:06 +00:00
Atsushi Eno
c16c7121b1
2010-01-12 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
* XmlConvertTests.cs : float parse should do the same. Fix NaN test.
svn path=/trunk/mcs/; revision=149386
2010-01-12 08:48:17 +00:00
Atsushi Eno
6d97ab5da5
2010-01-12 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
with whitespace allowed.
* XmlConvertTests.cs : another double parse test for string with
spaces, for string constants such as NaN.
svn path=/trunk/mcs/; revision=149385
2010-01-12 08:38:04 +00:00
Atsushi Eno
91f7cf5926
2010-01-12 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
whitespaces.
* XUtil.cs : to create an XNode from an object, do not use ToString()
directly. Handle TimeSpan in xsd manner.
svn path=/trunk/mcs/; revision=149382
2010-01-12 07:40:31 +00:00
Atsushi Eno
74a5119351
2010-01-12 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToString(DateTimeOffset) does not emit extra
fraction numbers.
svn path=/trunk/mcs/; revision=149377
2010-01-12 06:46:38 +00:00
Atsushi Eno
e73ff21907
2010-01-12 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : fix some cosmetic compatibility bugs:
ArgumentException -> FormatException.
svn path=/trunk/mcs/; revision=149375
2010-01-12 05:43:23 +00:00
Atsushi Eno
3e8c163580
2009-11-17 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : fix DateTimeOffset roundtrip by giving format
strings in refined order. Patch by Santa Marta, at:
http://irc.gimite.net/channel/mono-jp/archive/20091105
( http://smdn.invisiblefulmoon.net/misc/forum/programming/#n10 )
* XmlConvertTests.cs : add test for DateTimeOffset roundtrip.
svn path=/trunk/mcs/; revision=146324
2009-11-17 08:48:40 +00:00
Andreia Gaita
45aaadc71d
* XmlConvert.cs: make ToUri static, fixes #548918 (moon)
...
2009-10-23 Andreia Gaita <[email protected] >
svn path=/trunk/mcs/; revision=144712
2009-10-23 04:11:19 +00:00
Atsushi Eno
aa2dc8a038
2009-10-05 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : fix wrong ToDateTimeOffset loop, based on the
patch by David Mitchell.
svn path=/trunk/mcs/; revision=143367
2009-10-05 05:35:35 +00:00
Atsushi Eno
1716177eb5
2009-05-19 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : no reason not to report invalid input string for
ToGuid().
svn path=/trunk/mcs/; revision=134369
2009-05-19 06:25:43 +00:00
Atsushi Eno
8c18de8f16
2009-03-13 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
2.1 S.X.Serialization.dll in MS SDK).
svn path=/trunk/mcs/; revision=129244
2009-03-13 07:05:06 +00:00
Marek Safar
2be4aa8ed9
Warnings cleanup
...
svn path=/trunk/mcs/; revision=111842
2008-08-28 17:11:51 +00:00
Marek Safar
95a6e77b85
Warnings cleanup
...
svn path=/trunk/mcs/; revision=111839
2008-08-28 16:53:31 +00:00
Jb Evain
344b9a67c0
2008-08-05 Jb Evain <[email protected] >
...
* XmlConvert.cs (ToChar): add a specific SL2 version.
svn path=/trunk/mcs/; revision=109658
2008-08-05 10:37:12 +00:00
Jb Evain
799d8f9653
use SL friendly Parse methods
...
svn path=/trunk/mcs/; revision=109575
2008-08-04 14:34:15 +00:00
Atsushi Eno
a4075531b5
2008-06-11 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : fixed bug #397934 . Utc mode accepts more formats.
* XmlConvertTests.cs : added test for bug #397934
svn path=/trunk/mcs/; revision=105562
2008-06-11 11:27:45 +00:00
Atsushi Eno
20aff136fb
2008-06-11 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : no need for TARGET_JVM.
* XmlConvertTests.cs : no need for TARGET_JVM. Fix wrong comparison.
svn path=/trunk/mcs/; revision=105558
2008-06-11 10:57:03 +00:00
Atsushi Eno
3ef5ecc28d
2008-06-05 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : now we can use roundtrip format for float/double.
Fixed bug #320424 .
* XmlConvertTests.cs : added test for bug #320424 .
svn path=/trunk/mcs/; revision=104961
2008-06-05 07:55:34 +00:00
Roei Erez
9526d33973
fix xml convert regarding roundtrip formatting
...
svn path=/trunk/mcs/; revision=96776
2008-02-27 14:46:20 +00:00
Konstantin Triger
e175c2c052
TARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works
...
svn path=/trunk/mcs/; revision=92606
2008-01-10 17:56:47 +00:00
Noam Lampert
4608f9902b
Allow compilation in Java
...
svn path=/trunk/mcs/; revision=91824
2007-12-23 10:43:31 +00:00
Atsushi Eno
9b1d414235
2007-12-17 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : added NET_3_5 members.
svn path=/trunk/mcs/; revision=91429
2007-12-17 10:39:16 +00:00
Atsushi Eno
a477ee03e7
revert the broken change that even fails on .NET 2.0.
...
svn path=/trunk/mcs/; revision=90445
2007-11-29 17:23:23 +00:00
Konstantin Triger
ae40414c3e
fix ToDateTime(XmlDateTimeSerializationMode.Unspecified)/ToString(DateTime) for local time
...
svn path=/trunk/mcs/; revision=90413
2007-11-29 07:57:02 +00:00
Atsushi Eno
0274fff8a3
2007-11-09 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
allow more strings than existing one. Fixed bug #339004 .
* XmlConvertTests.cs : added test for #339004 and more.
svn path=/trunk/mcs/; revision=89305
2007-11-09 08:48:09 +00:00
Atsushi Eno
756ab6c79b
2007-10-30 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
not Parse(). Use 'K' for roundtrip format.
* XmlCustomFormatter.cs : use RoundtripKind when converting to and
from DateTime.
* XmlConvertTest.cs : added test for DateTime roundtrip.
* XmlSerializerTests.cs : added test for bug #337729 .
svn path=/trunk/mcs/; revision=88448
2007-10-30 12:33:34 +00:00
Jb Evain
9fac96317b
2007-08-04 Jb Evain <[email protected] >
...
* XmlConvert.cs: use 2.1 available overloads of Parse.
svn path=/trunk/mcs/; revision=83747
2007-08-09 13:19:22 +00:00
Jb Evain
fa9980ab68
2007-08-04 Jb Evain <[email protected] >
...
* XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
Use the available constructor for the 2.1 profile.
svn path=/trunk/mcs/; revision=83488
2007-08-04 20:28:33 +00:00
Atsushi Eno
d059df767a
2007-04-25 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().
svn path=/trunk/mcs/; revision=76276
2007-04-25 19:37:49 +00:00
Atsushi Eno
044e2c1ec4
2007-04-25 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : MinValue and MaxValue are unchanged by the
serialization mode (unlike DateTime.ToString()).
* XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
* XmlConvertTests.cs : added test for MaxValue serialization with
every XmlDateTimeSerializationMode.
svn path=/trunk/mcs/; revision=76275
2007-04-25 19:31:47 +00:00
Atsushi Eno
a1cc211652
2007-04-25 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
* XmlCustomFormatter.cs :
in 2.0, use F instead of f for dateTime formatting.
* XmlSerializationWriterTests.cs, XmlSerializerTests.cs :
fixed wrong dateTime formatting tests.
svn path=/trunk/mcs/; revision=76268
2007-04-25 18:22:32 +00:00
Konstantin Triger
be86198543
TARGET_JVM: remove #ifdefs
...
svn path=/trunk/mcs/; revision=73608
2007-03-01 16:40:15 +00:00
Atsushi Eno
2e8e4e6a2f
2006-07-25 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
failing.
* XmlConvertTest.cs :
Added TimeSpan conversion test for min/max values.
svn path=/trunk/mcs/; revision=62944
2006-07-25 08:42:59 +00:00
Atsushi Eno
1c8a5029e0
2006-01-25 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToString(TimeSpan) should return valid duration
for TimeSpan.Zero, rather than "P". Fixed bug #77350
* XmlConvertTests.cs : added test for bug #77350 .
svn path=/trunk/mcs/; revision=56026
2006-01-25 03:36:13 +00:00
Atsushi Eno
ee9d802656
2006-01-16 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : handle Ticks. Fixed bug #77252 .
* XmlConvertTests.cs : added test for bug #77252 .
svn path=/trunk/mcs/; revision=55620
2006-01-16 06:06:54 +00:00
Atsushi Eno
8a668546b1
2005-11-09 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : implemented VerifyTOKEN().
* XmlConvertTests.cs : tests for ToUInt16/32/64() and VerifyTOKEN().
svn path=/trunk/mcs/; revision=52870
2005-11-10 17:44:03 +00:00
Atsushi Eno
84269d9282
2005-11-09 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : VerifyNCName() and VerifyName() throws
ArgumentNullException for "".
* XmlConvertTests.cs : some tests for ToInt16(), ToInt32(),
VerifyName() and VerifyNCName().
svn path=/trunk/mcs/; revision=52857
2005-11-10 16:55:55 +00:00
Atsushi Eno
6b340411a9
2005-10-04 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
digits for "second" were not exactly 3. Fixed bug #76328 .
* XmlConvertTests.cs : added test for bug #76328 .
svn path=/trunk/mcs/; revision=51188
2005-10-04 18:08:14 +00:00
Gert Driesen
b6157808b4
* XmlSchemaInference.cs: Is sealed in Beta 2.
...
* XmlSchemaInfo.cs: Added ContentType property.
* XmlSchemaObjectEnumerator.cs: No longer sealed in Beta 2.
* XmlSchemaSet.cs: No longer sealed in Beta 2. XmlResolver property
is now CLSCompliant.
* XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
* XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to RoundtripKind
to match .NET 2.0 Beta 2.
* XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2, and is explicit interface implementation.
* XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlValidatingReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlNamespaceManager.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic IDictionary in
.NET 2.0 Beta 2.
* DTDValidatingReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsltArgumentList.cs: No longer sealed in .NET 2.0.
* XsltException.cs: Message override is back in .NET 2.0 Beta 2.
* XmlMapping.cs: API compatibility fixes. Ctor is not protected in .NET 1.1.
SetKey is not obsolete in .NET 2.0 Beta 2.
* XPathNavigator.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsdValidationReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlSchemaValidatingReader.cs: GetNamespacesInScope returns generic
IDictionary in .NET 2.0 Beta 2.
* SubtreeXmlReader.cs: GetNamespacesInScope now returns generic IDictionary.
svn path=/trunk/mcs/; revision=47974
2005-08-03 17:39:08 +00:00
Atsushi Eno
512ed7121f
2005-06-29 Atsushi Enomoto <[email protected] >
...
* XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
to ISO 8601 and XSD datatypes 3.2.6.1).
* XmlConvertTests.cs : added timespan milliseconds testcase.
svn path=/trunk/mcs/; revision=46727
2005-06-29 17:35:43 +00:00