// Token: 0x060018FE RID: 6398 RVA: 0x000C7A24 File Offset: 0x000C5C24 public static RtfSupport.CharRep CharRepFromLanguage(int langid) { short num = (short)(langid & 1023); if (num >= 26) { if (langid == 3098 || langid == 2092 || langid == 2115 || langid == 1104) { return(RtfSupport.CharRep.RUSSIAN_INDEX); } if ((int)num >= RtfSupport.CharRepFromLID.Length) { return(RtfSupport.CharRep.ANSI_INDEX); } } RtfSupport.CharRep charRep = RtfSupport.CharRepFromLID[(int)num]; if (!RtfSupport.IsFECharRep(charRep)) { return(charRep); } if (charRep == RtfSupport.CharRep.GB2312_INDEX && langid != 2052 && langid != 4100) { charRep = RtfSupport.CharRep.BIG5_INDEX; } return(charRep); }
// Token: 0x060018FD RID: 6397 RVA: 0x000C7A0D File Offset: 0x000C5C0D public static ushort CodePageFromCharRep(RtfSupport.CharRep charRep) { if ((int)charRep >= RtfSupport.CodePage.Length) { return(0); } return(RtfSupport.CodePage[(int)charRep]); }
// Token: 0x06001902 RID: 6402 RVA: 0x000C7B3B File Offset: 0x000C5D3B public static bool IsBiDiCharRep(RtfSupport.CharRep charRep) { return((RtfSupport.CharRep.HEBREW_INDEX <= charRep && charRep <= RtfSupport.CharRep.ARABIC_INDEX) || (RtfSupport.CharRep.SYRIAC_INDEX <= charRep && charRep <= RtfSupport.CharRep.THAANA_INDEX)); }
// Token: 0x06001908 RID: 6408 RVA: 0x000C7C0F File Offset: 0x000C5E0F public static bool IsFECharRep(RtfSupport.CharRep charRep) { return(RtfSupport.CharRep.SHIFTJIS_INDEX <= charRep && charRep <= RtfSupport.CharRep.BIG5_INDEX); }