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

UTF7Encoding.cs « System.Text « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 91fd3604236c3a8d9d10f4cf5b0b1e81a2270f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// System.Text.UTF7Encoding.cs
//
// Author:
//   Sean MacIsaac (macisaac@ximian.com)
//   Dietmar Maurer (dietmar@ximian.com)
//
// (C) Ximian, Inc.  http://www.ximian.com
//


namespace System.Text {

	public class UTF7Encoding : Encoding
	{
		public UTF7Encoding () : base ("UTF-7", false)
		{
			encoding_name = "Unicode (UTF-7)";
			body_name = "utf-7";
			header_name = "utf-7";
			web_name = "utf-7";
			is_browser_display = false;
			is_browser_save = false;
			is_mail_news_display = true;
			is_mail_news_save = true;

		}

		[MonoTODO]
		public override int GetMaxByteCount (int charCount)
		{
			// FIXME: dont know if this is right
			return charCount*6;
		}

		public override int GetMaxCharCount (int byteCount)
		{
			return byteCount;
		}
	}
}