Commit Graph
29 Commits
Author SHA1 Message Date
Zoltan Varga 490c283c1f 2008-01-06 Zoltan Varga <[email protected]>
* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
	sure the components of a read-only culture object are read-only as well.

svn path=/trunk/mcs/; revision=92326
2008-01-06 01:27:44 +00:00
Atsushi Eno b37c03e3ca 2007-07-09 Atsushi Enomoto <[email protected]>
* CompareInfo.cs : Name.
	* PersianCalendar.cs : missing members.
	* NumberFormatInfo.cs HijriCalendar.cs CultureInfo.cs TextInfo.cs
	  HebrewCalendar.cs ThaiBuddhistCalendar.cs GregorianCalendar.cs
	  KoreanCalendar.cs JulianCalendar.cs TaiwanCalendar.cs
	  JapaneseCalendar.cs DaylightTime.cs EastAsianLunisolarCalendar.cs
	  RegionInfo.cs TextElementEnumerator.cs : ComVisible cleanup.


svn path=/trunk/mcs/; revision=81625
2007-07-09 10:10:35 +00:00
Atsushi Eno 50bd3712c1 2007-07-09 Atsushi Enomoto <[email protected]>
* TextInfo.cs : ICloneable.
	* GregorianCalendarTypes.cs CompareOptions.cs CultureTypes.cs
	  CalendarWeekRule.cs UnicodeCategory.cs : [Serializable].
	* ThaiBuddhistCalendar.cs GregorianCalendar.cs KoreanCalendar.cs
	  TaiwanCalendar.cs JapaneseCalendar.cs :
	  GetWeekOfYear() (base could be simply used). Removed unused code.


svn path=/trunk/mcs/; revision=81623
2007-07-09 09:36:24 +00:00
Marek Habersack b1c94520b8 One more occurrence of the unused field removed
svn path=/trunk/mcs/; revision=67637
2006-11-09 20:25:36 +00:00
Marek Safar 6a6ad9d1c8 2006-11-09 Marek Safar <[email protected]>
* CompareInfo.cs: Cache full UseManagedCollation value;
	* CultureInfo.cs (Parent): Add caching to avoid re-creating culture info
	  every time when the property is used.
	* TextInfo.cs: Removed unused field.

svn path=/trunk/mcs/; revision=67623
2006-11-09 18:29:51 +00:00
Atsushi Eno 0389315d70 2006-03-16 Atsushi Enomoto <[email protected]>
* TextInfo.cs : (ToUpper/ToLower) use InternalAllocateStr() and
	  pointers rather than StringBuilder.


svn path=/trunk/mcs/; revision=58089
2006-03-16 22:45:30 +00:00
Peter Dennis Bartok eb1c36e677 2006-03-02 Peter Dennis Bartok <[email protected]>
* DateTimeFormatInfo.cs: Switched (where possible) our internal
	  field names to match MS names. Added fields that MS has and we
	  don't. Fixes serialization issues with MS.
	* CultureInfo.cs, Calendar.cs, TextInfo.cs, 
	  GregorianCalenda.cs: Hiding internal attributes from serialization


svn path=/trunk/mcs/; revision=57532
2006-03-03 05:47:10 +00:00
Sebastien Pouliot adb85e71d2 2005-12-06 Sebastien Pouliot <[email protected]>
* DateTimeStyles.cs: ComVisible is only needed in 2.0.
	* TextInfo.cs: Added some 2.0 features that were needed (e.g. LCID)
	to implement serialization for another class. Added TODO on class for 
	deserialization (so it shows up in the status page).


svn path=/trunk/mcs/; revision=54014
2005-12-07 01:56:25 +00:00
Gert Driesen 1c338a4d8a * TextInfoTest.cs: Added ListSeparator test.
* TextInfo.cs: For invariant culture, ListSeparator is a comma.

svn path=/trunk/mcs/; revision=48373
2005-08-14 21:10:31 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Atsushi Eno b38fc1e455 2005-04-27 Atsushi Enomoto <[email protected]>
* TextInfo.cs : Some performance fixes. Avoid delegate.
	  Compute parent culture only once. Quick ASCII range check.


svn path=/trunk/mcs/; revision=43637
2005-04-27 02:47:16 +00:00
Atsushi Eno c4271bf881 2005-04-17 Atsushi Enomoto <[email protected]>
* TextInfo.cs : extremely strict null check (which should not happen).


svn path=/trunk/mcs/; revision=43147
2005-04-17 16:38:21 +00:00
Atsushi Eno bbca306f66 2005-04-17 Atsushi Enomoto <[email protected]>
* TextInfo.cs : Additional null check for Parent CultureInfo.


svn path=/trunk/mcs/; revision=43138
2005-04-17 04:57:40 +00:00
Atsushi Eno 4dbce32075 2005-04-06 Atsushi Enomoto <[email protected]>
* Char.cs : ToUpper()/ToLower() comparison ranges were incorrect.

	* TextInfo.cs : To make new CultureInfo (127) as invariant, it should
	  not compare object Equals() against InvariantCulture.


svn path=/trunk/mcs/; revision=42597
2005-04-06 08:46:21 +00:00
Atsushi Eno d7617995b3 2005-04-05 Atsushi Enomoto <[email protected]>
* TextInfo.cs : Fixed ToTitleCase() so that
	  - handle some titlecase characters in Latin ang Greek.
	  - it keeps "all title case" word as is ("ABC" does not become "Abc").
	  - it can handle such string like "1ABc".

	* TextInfoTest.cs : added further ToTitleCase() tests.


svn path=/trunk/mcs/; revision=42580
2005-04-05 19:57:20 +00:00
Atsushi Eno c6e2d11387 2005-04-04 Atsushi Enomoto <[email protected]>
* String.cs,
	  Char.cs : use TextInfo for ToLower() and ToUpper().

	* TextInfo.cs : implemented culture sensitive ToLower() and ToUpper()
	  which behaves exactly the same as MS.NET does.


svn path=/trunk/mcs/; revision=42511
2005-04-04 12:07:51 +00:00
Ben Maurer 7f575fb7cb less unsafe code
svn path=/trunk/mcs/; revision=37761
2004-12-14 21:45:35 +00:00
Ben Maurer 5528ddcc41 2004-12-13 Ben Maurer <[email protected]>
* CultureInfo.cs: Store TextInfo data. Hand it over to TextInfo.
	* TextInfo.cs: Rewrote props to use the textinfo data stored in
	unmanaged code.


svn path=/trunk/mcs/; revision=37712
2004-12-14 03:14:58 +00:00
Jackson Harper d595fdef32 * CultureInfo.cs: When creating the invariant culture's TextInfo
object pass it this. Fixes bug #69106.
	* TextInfo.cs: Remove unused constructor


svn path=/trunk/mcs/; revision=37418
2004-12-08 20:40:05 +00:00
Miguel de Icaza f7174b7c0e Removed two TODOs
svn path=/trunk/mcs/; revision=35013
2004-10-14 20:15:31 +00:00
Miguel de Icaza 623b6de855 2004-10-14 Miguel de Icaza <[email protected]>
* TextInfo.cs (ToString) Fix the return value for ToString.

	(Add a new parameter: the CultureInfo, since we implemented things
	in terms of the CultureInfo in our runtime, and not the
	TextInfo).

svn path=/trunk/mcs/; revision=35012
2004-10-14 20:14:03 +00:00
Miguel de Icaza 079d260700 2004-10-14 Miguel de Icaza <[email protected]>
* TextInfo.cs: Fix ToTitleCase to do title case for each word on
	the string per the spec.

svn path=/trunk/mcs/; revision=35008
2004-10-14 19:48:15 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Lluis Sanchez 1940817233 * CompareInfo.cs, CultureInfo.cs, NumberFormatInfo.cs, TextInfo.cs:
Made those serializable-compatible with MS.NET: modified fields names to
	match MS.NET ones, and in CultureInfo added a flag to control when a
	deserialized instance need to be initialized.

svn path=/trunk/mcs/; revision=25218
2004-04-08 14:10:11 +00:00
Miguel de Icaza 02a6a72410 Signature fixes for .NET 1.1
svn path=/trunk/mcs/; revision=20138
2003-11-17 21:31:56 +00:00
Dick Porter 706d2ef028 2003-10-21 Dick Porter <[email protected]>
* TextInfo.cs:
	* CultureInfo.cs: Implement TextInfo.GetHashCode().  Fixes bug
	49923.

svn path=/trunk/mcs/; revision=19268
2003-10-21 13:10:26 +00:00
Duncan Mak a457b961bb 2002-10-17 Duncan Mak <[email protected]>
* CultureInfo.cs (TextInfo): return a TextInfo in the property.

	* TextInfo.cs (ToLower):
	(ToTitleCase): Implemented.

svn path=/trunk/mcs/; revision=8356
2002-10-17 22:04:40 +00:00
Dick Porter 93aff8c4da 2002-09-12 Dick Porter <[email protected]>
* unix.args: Add System.Globalization.SortKey,
	System.Globalization.StringInfo and
	System.Globalizaton.TextElementEnumerator

2002-09-12  Dick Porter  <[email protected]>

	* ThaiBuddhistCalendar.cs:
	* TextInfo.cs:
	* TaiwanCalendar.cs:
	* RegionInfo.cs:
	* KoreanCalendar.cs:
	* JulianCalendar.cs:
	* JapaneseCalendar.cs:
	* HijriCalendar.cs:
	* HebrewCalendar.cs:
	* GregorianCalendar.cs:
	* CultureInfo.cs:
	* CompareInfo.cs: Stub out missing methods

svn path=/trunk/mcs/; revision=7407
2002-09-12 18:34:38 +00:00
Dick Porter ce0b941981 2002-08-14 Dick Porter <[email protected]>
* CultureInfo.cs: Implement Name, stub out all the other missing
	methods.

	* TextInfo.cs: Stubbed out this class

svn path=/trunk/mcs/; revision=6624
2002-08-14 10:04:03 +00:00