[btls] Free handle returned by EVP_PKEY_get1_RSA
[mono-project.git] / tools / locale-builder / RegionInfoEntry.cs
blob8cfdde5ecb6321122db43249c34876c9974eaeb9
1 //
2 // Mono.Tools.LocaleBuilder.RegionInfoEntry
3 //
4 // Author(s):
5 // Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // (C) 2005, Novell, Inc (http://www.novell.com)
8 //
11 using System;
12 using System.Text;
13 using System.Collections;
15 namespace Mono.Tools.LocaleBuilder
17 public class RegionInfoEntry : Entry
19 public int Index; // Used to link region from culture, it must be 0-based index from region_name_entries
21 public string GeoId;
22 public string TwoLetterISORegionName;
23 public string ThreeLetterISORegionName;
24 public string ThreeLetterWindowsRegionName;
25 public string EnglishName;
26 public string CurrencySymbol;
27 public string ISOCurrencySymbol;
28 public string CurrencyEnglishName;
29 public string Name;
30 public string DisplayName;
31 public string NativeName;
32 public string CurrencyNativeName;
33 public bool IsMetric = true;
35 public void AppendTableRow (StringBuilder builder)
37 builder.Append ("\t{ ");
38 builder.Append (GeoId).Append (',');
39 builder.Append (EncodeStringIdx (TwoLetterISORegionName)).Append (',');
40 builder.Append (EncodeStringIdx (ThreeLetterISORegionName)).Append (',');
41 builder.Append (EncodeStringIdx (ThreeLetterWindowsRegionName)).Append (',');
42 builder.Append (EncodeStringIdx (EnglishName)).Append (',');
43 builder.Append (EncodeStringIdx (NativeName)).Append (',');
44 builder.Append (EncodeStringIdx (CurrencySymbol)).Append (',');
45 builder.Append (EncodeStringIdx (ISOCurrencySymbol)).Append (',');
46 builder.Append (EncodeStringIdx (CurrencyEnglishName)).Append (',');
47 builder.Append (EncodeStringIdx (CurrencyNativeName));
48 builder.Append ('}');
51 public override string ToString ()
53 StringBuilder builder = new StringBuilder ();
54 AppendTableRow (builder);
55 return builder.ToString ();