1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 namespace System.Globalization
7 internal class CodePageDataItem
9 private readonly int _codePage;
10 private readonly int _uiFamilyCodePage;
11 private readonly string _webName;
12 private readonly uint _flags;
13 private string _displayNameResourceKey;
15 internal CodePageDataItem(int codePage, int uiFamilyCodePage, string webName, uint flags)
18 _uiFamilyCodePage = uiFamilyCodePage;
25 get { return _codePage; }
28 public int UIFamilyCodePage
30 get { return _uiFamilyCodePage; }
35 get { return _webName; }
38 public String HeaderName
40 get { return _webName; } // all the code pages used on unix only have a single name
43 public String BodyName
45 get { return _webName; } // all the code pages used on unix only have a single name
50 get { return _flags; }
55 public string DisplayNameResourceKey
59 if (_displayNameResourceKey == null)
61 _displayNameResourceKey = "Globalization_cp_" + CodePage;
64 return _displayNameResourceKey;