Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Text/UnicodeEncoding.cs')
-rwxr-xr-xmcs/class/corlib/System.Text/UnicodeEncoding.cs55
1 files changed, 0 insertions, 55 deletions
diff --git a/mcs/class/corlib/System.Text/UnicodeEncoding.cs b/mcs/class/corlib/System.Text/UnicodeEncoding.cs
deleted file mode 100755
index 8758c6b2623..00000000000
--- a/mcs/class/corlib/System.Text/UnicodeEncoding.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-// -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
-//
-// System.Text.UnicodeEncoding.cs
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Dietmar Maurer (dietmar@ximian.com)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
-
-// FIXME: implement byteOrderMark
-
-namespace System.Text {
-
- [MonoTODO]
- [Serializable]
- public class UnicodeEncoding : Encoding
- {
- private bool byteOrderMark;
-
- private void init (bool byteOrderMark)
- {
- this.byteOrderMark = byteOrderMark;
- encoding_name = "Unicode";
- body_name = "utf-16";
- header_name = "utf-16";
- web_name = "utf-16";
- is_browser_display = false;
- is_browser_save = true;
- is_mail_news_display = false;
- is_mail_news_save = false;
- }
-
- public UnicodeEncoding () : base ("UNICODE", false)
- {
- init (false);
- }
-
- public UnicodeEncoding (bool bigEndian, bool byteOrderMark) : base ("UNICODE", bigEndian)
- {
- init (byteOrderMark);
- }
-
- public override int GetMaxByteCount (int charCount)
- {
- return charCount;
- }
-
- public override int GetMaxCharCount (int byteCount)
- {
- return byteCount / 2;
- }
- }
-}