Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.EncodingTable Class Reference

Static Package Functions

static int GetCodePageFromName (string name)
 
static EncodingInfo[] GetEncodings ()
 
static EncodingInfo[] GetEncodings (Dictionary< int, EncodingInfo > encodingInfoList)
 
static CodePageDataItem GetCodePageDataItem (int codePage)
 
static int GetCodePageFromName (string name)
 
static string GetWebNameFromCodePage (int codePage)
 
static string GetEnglishNameFromCodePage (int codePage)
 

Static Private Member Functions

static int InternalGetCodePageFromName (string name)
 
static CodePageDataItem InternalGetCodePageDataItem (int codePage, int index)
 
static string GetDisplayName (int codePage, int englishNameIndex)
 
static int InternalGetCodePageFromName (string name)
 
static int CompareOrdinal (string s1, string s2, int index, int length)
 
static string GetNameFromCodePage (int codePage, string names, int[] indices, Dictionary< int, string > cache)
 

Static Private Attributes

static readonly int[] s_encodingNameIndices
 
static readonly ushort[] s_codePagesByName
 
static readonly ushort[] s_mappedCodePages = new ushort[8] { 1200, 1201, 12000, 12001, 20127, 28591, 65000, 65001 }
 
static readonly int[] s_uiFamilyCodePages = new int[8] { 1200, 1200, 1200, 1200, 1252, 1252, 1200, 1200 }
 
static readonly int[] s_webNameIndices = new int[9] { 0, 6, 14, 20, 28, 36, 46, 51, 56 }
 
static readonly int[] s_englishNameIndices = new int[9] { 0, 7, 27, 43, 70, 78, 100, 115, 130 }
 
static readonly uint[] s_flags = new uint[8] { 512u, 0u, 0u, 0u, 257u, 771u, 257u, 771u }
 
static readonly Hashtable s_nameToCodePage = Hashtable.Synchronized(new Hashtable(StringComparer.OrdinalIgnoreCase))
 
static CodePageDataItem[] s_codePageToCodePageData
 
static readonly Dictionary< string, int > s_nameToCodePageCache = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase)
 
static readonly Dictionary< int, strings_codePageToWebNameCache = new Dictionary<int, string>()
 
static readonly Dictionary< int, strings_codePageToEnglishNameCache = new Dictionary<int, string>()
 
static readonly ReaderWriterLockSlim s_cacheLock = new ReaderWriterLockSlim()
 

Detailed Description

Definition at line 7 of file EncodingTable.cs.


The documentation for this class was generated from the following files: