当前位置: 首页>>代码示例>>C#>>正文


C# VTDNav.getEncoding方法代码示例

本文整理汇总了C#中com.ximpleware.VTDNav.getEncoding方法的典型用法代码示例。如果您正苦于以下问题:C# VTDNav.getEncoding方法的具体用法?C# VTDNav.getEncoding怎么用?C# VTDNav.getEncoding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.ximpleware.VTDNav的用法示例。


在下文中一共展示了VTDNav.getEncoding方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: bind

        /// <summary> Attach master document to this instance of XMLModifier</summary>
        /// <param name="masterDocument">*
        /// </param>
        public void bind(VTDNav masterDocument)
        {
            if (masterDocument == null)
                throw new System.ArgumentException("MasterDocument can't be null");
            md = masterDocument;
            flb = new FastLongBuffer();
            fob = new FastObjectBuffer();
            int i = intHash.determineHashWidth(md.vtdSize);
            insertHash = new intHash(i);
            deleteHash = new intHash(i);
            //determine encoding charset string here
            encoding = md.getEncoding();
            switch (encoding)
            {

                case VTDNav.FORMAT_ASCII:
                    charSet = "ascii";
                    break;

                case VTDNav.FORMAT_ISO_8859_1:
                    charSet = "iso-8859-1";
                    break;

                case VTDNav.FORMAT_UTF8:
                    charSet = "utf-8";
                    break;

                case VTDNav.FORMAT_UTF_16BE:
                    charSet = "utf-16be";
                    break;

                case VTDNav.FORMAT_UTF_16LE:
                    charSet = "utf-16le";
                    break;
                case VTDNav.FORMAT_ISO_8859_2:
                    charSet = "iso-8859-2";
                    break;
                case VTDNav.FORMAT_ISO_8859_3:
                    charSet = "iso-8859-3";
                    break;
                case VTDNav.FORMAT_ISO_8859_4:
                    charSet = "iso-8859-4";
                    break;
                case VTDNav.FORMAT_ISO_8859_5:
                    charSet = "iso-8859-5";
                    break;
                case VTDNav.FORMAT_ISO_8859_6:
                    charSet = "iso-8859-6";
                    break;
                case VTDNav.FORMAT_ISO_8859_7:
                    charSet = "iso-8859-7";
                    break;
                case VTDNav.FORMAT_ISO_8859_8:
                    charSet = "iso-8859-8";
                    break;
                case VTDNav.FORMAT_ISO_8859_9:
                    charSet = "iso-8859-9";
                    break;
                case VTDNav.FORMAT_ISO_8859_10:
                    charSet = "iso-8859-10";
                    break;
                case VTDNav.FORMAT_ISO_8859_11:
                    charSet = "iso-8859-11";
                    break;
                case VTDNav.FORMAT_ISO_8859_12:
                    charSet = "iso-8859-12";
                    break;
                case VTDNav.FORMAT_ISO_8859_13:
                    charSet = "iso-8859-13";
                    break;
                case VTDNav.FORMAT_ISO_8859_14:
                    charSet = "iso-8859-14";
                    break;
                case VTDNav.FORMAT_ISO_8859_15:
                    charSet = "iso-8859-15";
                    break;
                case VTDNav.FORMAT_WIN_1250:
                    charSet = "windows-1250";
                    break;
                case VTDNav.FORMAT_WIN_1251:
                    charSet = "windows-1251";
                    break;
                case VTDNav.FORMAT_WIN_1252:
                    charSet = "windows-1252";
                    break;
                case VTDNav.FORMAT_WIN_1253:
                    charSet = "windows-1253";
                    break;
                case VTDNav.FORMAT_WIN_1254:
                    charSet = "windows-1254";
                    break;
                case VTDNav.FORMAT_WIN_1255:
                    charSet = "windows-1255";
                    break;
                case VTDNav.FORMAT_WIN_1256:
                    charSet = "windows-1256";
                    break;
//.........这里部分代码省略.........
开发者ID:IgorBabalich,项目名称:vtd-xml,代码行数:101,代码来源:XMLModifier.cs


注:本文中的com.ximpleware.VTDNav.getEncoding方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。