2 // Mono.Tools.LocaleBuilder.RegionInfoEntry
5 // Atsushi Enomoto <atsushi@ximian.com>
7 // (C) 2005, Novell, Inc (http://www.novell.com)
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
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
;
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
));
51 public override string ToString ()
53 StringBuilder builder
= new StringBuilder ();
54 AppendTableRow (builder
);
55 return builder
.ToString ();