Exemplo n.º 1
0
 public static bool smethod_0(DrawingCodePage codePage)
 {
     if (codePage != DrawingCodePage.Gb2312 && codePage != DrawingCodePage.Ansi950 && (codePage != DrawingCodePage.Johab && codePage != DrawingCodePage.Ansi950) && (codePage != DrawingCodePage.Johab && codePage != DrawingCodePage.Gb2312 && codePage != DrawingCodePage.Ksc5601))
     {
         return(codePage == DrawingCodePage.Dos932);
     }
     return(true);
 }
Exemplo n.º 2
0
        private double method_14(string s, DrawingCodePage drawingCodePage)
        {
            byte[] bytes = Encoding.GetEncoding((int)drawingCodePage).GetBytes(s);
            double num   = 0.0;

            for (int index = 0; index < bytes.Length; ++index)
            {
                num += (double)((int)bytes[index] * (index + 1));
            }
            return(num);
        }
Exemplo n.º 3
0
 public static ushort smethod_1(DrawingCodePage drawingCodePage)
 {
     foreach (Class952.Class953 class953 in Class952.class953_0)
     {
         if (class953.DrawingCodePage == drawingCodePage)
         {
             return(class953.DwgCodePage);
         }
     }
     return(0);
 }
Exemplo n.º 4
0
        internal static Encoding smethod_1(string filename, DrawingCodePage defaultCodepage)
        {
            string   key = ShxFile.smethod_4(filename);
            Encoding encoding;

            lock (ShxFile.dictionary_1)
            {
                if (!ShxFile.dictionary_1.TryGetValue(key, out encoding))
                {
                    encoding = Encodings.GetEncoding((int)defaultCodepage);
                }
            }
            return(encoding);
        }
Exemplo n.º 5
0
 public Class953(ushort dwgCodePage, DrawingCodePage drawingCodePage)
 {
     this.ushort_0          = dwgCodePage;
     this.drawingCodePage_0 = drawingCodePage;
     this.encoding_0        = Encodings.GetEncoding((int)drawingCodePage);
 }