public static bool TryGetCharset(Encoding encoding, out Charset charset) { return(Charset.TryGetCharset(encoding.CodePage, out charset)); }
// Token: 0x06000B18 RID: 2840 RVA: 0x00067EFC File Offset: 0x000660FC public static bool IsSupportedFarEastCharset(Charset charset) { int codePage = charset.CodePage; if (codePage <= 20936) { if (codePage <= 950) { if (codePage != 932 && codePage != 936) { switch (codePage) { case 949: case 950: break; default: return(false); } } } else if (codePage != 1361 && codePage != 20932 && codePage != 20936) { return(false); } } else if (codePage <= 51932) { if (codePage != 20949) { switch (codePage) { case 50220: case 50221: case 50222: case 50225: case 50227: break; case 50223: case 50224: case 50226: return(false); default: if (codePage != 51932) { return(false); } break; } } } else if (codePage <= 51949) { if (codePage != 51936 && codePage != 51949) { return(false); } } else if (codePage != 52936 && codePage != 54936) { return(false); } return(true); }
public static Encoding GetEncoding(int codePage) { Charset charset = Charset.GetCharset(codePage); return(charset.GetEncoding()); }
public static Encoding GetEncoding(string name) { Charset charset = Charset.GetCharset(name); return(charset.GetEncoding()); }
public static bool TryGetCharset(int codePage, out Charset charset) { return(CultureCharsetDatabase.Data.CodePageToCharset.TryGetValue(codePage, out charset)); }
public static Charset GetCharset(Encoding encoding) { int num = CodePageMap.GetCodePage(encoding); return(Charset.GetCharset(num)); }
// Token: 0x06000ACB RID: 2763 RVA: 0x0005F4CA File Offset: 0x0005D6CA internal void SetWebCharset(Charset webCharset) { this.webCharset = webCharset; }
// Token: 0x06000ACA RID: 2762 RVA: 0x0005F4C1 File Offset: 0x0005D6C1 internal void SetMimeCharset(Charset mimeCharset) { this.mimeCharset = mimeCharset; }
// Token: 0x06000AC9 RID: 2761 RVA: 0x0005F4B8 File Offset: 0x0005D6B8 internal void SetWindowsCharset(Charset windowsCharset) { this.windowsCharset = windowsCharset; }