[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Globalization CompareI
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Globalization CompareInfo.cs, 1.15, 1.16 |
Date: |
Fri, 29 Aug 2003 01:41:40 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Globalization
In directory subversions:/tmp/cvs-serv12424/runtime/System/Globalization
Modified Files:
CompareInfo.cs
Log Message:
Implement the "CompareInfo.GetSortKey" method for the invariant culture.
Index: CompareInfo.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Globalization/CompareInfo.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** CompareInfo.cs 29 Aug 2003 04:24:57 -0000 1.15
--- CompareInfo.cs 29 Aug 2003 05:41:38 -0000 1.16
***************
*** 23,26 ****
--- 23,27 ----
{
+ using System.Text;
using System.Reflection;
using System.Runtime.Serialization;
***************
*** 294,298 ****
return GetSortKey(source, CompareOptions.None);
}
- [TODO]
public virtual SortKey GetSortKey(String source, CompareOptions options)
{
--- 295,298 ----
***************
*** 310,315 ****
{
// Return the invariant sort key
information.
! // TODO
! return null;
}
}
--- 310,325 ----
{
// Return the invariant sort key
information.
! if((options &
CompareOptions.IgnoreCase) != 0)
! {
! return new SortKey
! (Encoding.UTF8.GetBytes
!
(CultureInfo.InvariantCulture.TextInfo
!
.ToLower(source)), source);
! }
! else
! {
! return new SortKey
!
(Encoding.UTF8.GetBytes(source), source);
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Globalization CompareInfo.cs, 1.15, 1.16,
Rhys Weatherley <address@hidden> <=