[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Globalization TextInfo
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Globalization TextInfo.cs, 1.6, 1.7 |
Date: |
Fri, 29 Aug 2003 00:56:48 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Globalization
In directory subversions:/tmp/cvs-serv29781/runtime/System/Globalization
Modified Files:
TextInfo.cs
Log Message:
Add internalcalls for the ToLower/ToUpper methods in TextInfo.
Index: TextInfo.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Globalization/TextInfo.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** TextInfo.cs 24 Apr 2003 00:50:35 -0000 1.6
--- TextInfo.cs 29 Aug 2003 04:56:46 -0000 1.7
***************
*** 24,27 ****
--- 24,28 ----
using System;
using System.Runtime.Serialization;
+ using System.Runtime.CompilerServices;
using System.Text;
***************
*** 112,169 ****
// Convert characters or strings to lower case.
! public virtual char ToLower(char c)
! {
! // Perform the invariant case. Subclasses
implement
! // culture-specific conversions.
! if(c >= 'A' && c <= 'Z')
! {
! return (char)(c - 'A' + 'a');
! }
! else
! {
! return c;
! }
! }
! public virtual String ToLower(String str)
! {
! if(str == null)
! {
! throw new ArgumentNullException("str");
! }
! StringBuilder builder = new StringBuilder();
! foreach(char ch in str)
! {
! builder.Append(ToLower(ch));
! }
! return builder.ToString();
! }
// Convert characters or strings to upper case.
! public virtual char ToUpper(char c)
! {
! // Perform the invariant case. Subclasses
implement
! // culture-specific conversions.
! if(c >= 'a' && c <= 'z')
! {
! return (char)(c - 'a' + 'A');
! }
! else
! {
! return c;
! }
! }
! public virtual String ToUpper(String str)
! {
! if(str == null)
! {
! throw new ArgumentNullException("str");
! }
! StringBuilder builder = new StringBuilder();
! foreach(char ch in str)
! {
! builder.Append(ToUpper(ch));
! }
! return builder.ToString();
! }
// Convert a string to title case.
--- 113,128 ----
// Convert characters or strings to lower case.
! [MethodImpl(MethodImplOptions.InternalCall)]
! extern public virtual char ToLower(char c);
!
! [MethodImpl(MethodImplOptions.InternalCall)]
! extern public virtual String ToLower(String str);
// Convert characters or strings to upper case.
! [MethodImpl(MethodImplOptions.InternalCall)]
! extern public virtual char ToUpper(char c);
!
! [MethodImpl(MethodImplOptions.InternalCall)]
! extern public virtual String ToUpper(String str);
// Convert a string to title case.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Globalization TextInfo.cs, 1.6, 1.7,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h, 1.81, 1.82 int_table.c, 1.84, 1.85 lib_string.c, 1.34, 1.35
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/include il_utils.h,1.23,1.24
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h, 1.81, 1.82 int_table.c, 1.84, 1.85 lib_string.c, 1.34, 1.35
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/include il_utils.h,1.23,1.24
- Index(es):