Author: atsushi
Date: 2005-11-28 07:55:44 -0500 (Mon, 28 Nov 2005)
New Revision: 53551

Modified:
   trunk/mcs/class/I18N/Common/ByteEncoding.cs
   trunk/mcs/class/I18N/Common/ChangeLog
   trunk/mcs/class/corlib/System.Text/ASCIIEncoding.cs
   trunk/mcs/class/corlib/System.Text/ChangeLog
   trunk/mcs/class/corlib/System.Text/Encoding.cs
   trunk/mcs/class/corlib/System.Text/Latin1Encoding.cs
Log:
2005-11-28  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * Encoding.cs, ASCIIEncoding.cs, Latin1Encoding.cs :
          Added IsSingleByte.

        * ByteEncoding.cs : added IsSingleByte.



Modified: trunk/mcs/class/I18N/Common/ByteEncoding.cs
===================================================================
--- trunk/mcs/class/I18N/Common/ByteEncoding.cs 2005-11-28 12:34:17 UTC (rev 
53550)
+++ trunk/mcs/class/I18N/Common/ByteEncoding.cs 2005-11-28 12:55:44 UTC (rev 
53551)
@@ -68,6 +68,12 @@
                                this.windowsCodePage = windowsCodePage;
                        }
 
+#if NET_2_0
+       public override bool IsSingleByte {
+               get { return true; }
+       }
+#endif
+
        // Get the number of bytes needed to encode a character buffer.
        public override int GetByteCount(char[] chars, int index, int count)
                        {

Modified: trunk/mcs/class/I18N/Common/ChangeLog
===================================================================
--- trunk/mcs/class/I18N/Common/ChangeLog       2005-11-28 12:34:17 UTC (rev 
53550)
+++ trunk/mcs/class/I18N/Common/ChangeLog       2005-11-28 12:55:44 UTC (rev 
53551)
@@ -1,3 +1,7 @@
+2005-11-28  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * ByteEncoding.cs : added IsSingleByte.
+
 2005-11-01  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * Handler.cs : added 51949 (true euc-kr).

Modified: trunk/mcs/class/corlib/System.Text/ASCIIEncoding.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/ASCIIEncoding.cs 2005-11-28 12:34:17 UTC 
(rev 53550)
+++ trunk/mcs/class/corlib/System.Text/ASCIIEncoding.cs 2005-11-28 12:55:44 UTC 
(rev 53551)
@@ -44,6 +44,12 @@
                is_mail_news_save = true;
        }
 
+#if NET_2_0
+       public override bool IsSingleByte {
+               get { return true; }
+       }
+#endif
+
        // Get the number of bytes needed to encode a character buffer.
        public override int GetByteCount (char[] chars, int index, int count)
        {

Modified: trunk/mcs/class/corlib/System.Text/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Text/ChangeLog        2005-11-28 12:34:17 UTC 
(rev 53550)
+++ trunk/mcs/class/corlib/System.Text/ChangeLog        2005-11-28 12:55:44 UTC 
(rev 53551)
@@ -1,5 +1,10 @@
 2005-11-28  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * Encoding.cs, ASCIIEncoding.cs, Latin1Encoding.cs :
+         Added IsSingleByte.
+
+2005-11-28  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * Encoder.cs : added new GetByteCount()/GetBytes() overloads.
          Added FallbackBuffer.
        * Decoder.cs : added new GetCharCount()/GetChars() overloads.

Modified: trunk/mcs/class/corlib/System.Text/Encoding.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/Encoding.cs      2005-11-28 12:34:17 UTC 
(rev 53550)
+++ trunk/mcs/class/corlib/System.Text/Encoding.cs      2005-11-28 12:55:44 UTC 
(rev 53551)
@@ -99,6 +99,10 @@
                get { return is_readonly; }
        }
 
+       public virtual bool IsSingleByte {
+               get { return false; }
+       }
+
        [MonoTODO ("not used yet")]
        [ComVisible (false)]
        public DecoderFallback DecoderFallback {

Modified: trunk/mcs/class/corlib/System.Text/Latin1Encoding.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/Latin1Encoding.cs        2005-11-28 
12:34:17 UTC (rev 53550)
+++ trunk/mcs/class/corlib/System.Text/Latin1Encoding.cs        2005-11-28 
12:55:44 UTC (rev 53551)
@@ -40,6 +40,12 @@
                // Nothing to do here.
        }
 
+#if NET_2_0
+       public override bool IsSingleByte {
+               get { return true; }
+       }
+#endif
+
        // Get the number of bytes needed to encode a character buffer.
        public override int GetByteCount (char[] chars, int index, int count)
        {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to