• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Xml.PrefixHandle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Xml.PrefixHandle的典型用法代码示例。如果您正苦于以下问题:C# PrefixHandle类的具体用法?C# PrefixHandle怎么用?C# PrefixHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PrefixHandle类属于System.Xml命名空间,在下文中一共展示了PrefixHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Equals2

 private bool Equals2(PrefixHandle prefix2)
 {
     PrefixHandleType type = this.type;
     PrefixHandleType type2 = prefix2.type;
     if (type != type2)
     {
         return false;
     }
     if (type != PrefixHandleType.Buffer)
     {
         return true;
     }
     if (this.bufferReader == prefix2.bufferReader)
     {
         return this.bufferReader.Equals2(this.offset, this.length, prefix2.offset, prefix2.length);
     }
     return this.bufferReader.Equals2(this.offset, this.length, prefix2.bufferReader, prefix2.offset, prefix2.length);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:18,代码来源:PrefixHandle.cs


示例2: ReadQualifiedName

        private void ReadQualifiedName(PrefixHandle prefix, StringHandle localName)
        {
            int offset;
            int offsetMax;
            byte[] buffer = BufferReader.GetBuffer(out offset, out offsetMax);

            int ch = 0;
            int anyChar = 0;
            int prefixChar = 0;
            int prefixOffset = offset;
            if (offset < offsetMax)
            {
                ch = buffer[offset];
                prefixChar = ch;
                if ((s_charType[ch] & CharType.FirstName) == 0)
                    anyChar |= 0x80;
                anyChar |= ch;
                offset++;
                while (offset < offsetMax)
                {
                    ch = buffer[offset];
                    if ((s_charType[ch] & CharType.Name) == 0)
                        break;
                    anyChar |= ch;
                    offset++;
                }
            }
            else
            {
                anyChar |= 0x80;
                ch = 0;
            }
            if (ch == ':')
            {
                int prefixLength = offset - prefixOffset;
                if (prefixLength == 1 && prefixChar >= 'a' && prefixChar <= 'z')
                    prefix.SetValue(PrefixHandle.GetAlphaPrefix(prefixChar - 'a'));
                else
                    prefix.SetValue(prefixOffset, prefixLength);

                offset++;
                int localNameOffset = offset;
                if (offset < offsetMax)
                {
                    ch = buffer[offset];
                    if ((s_charType[ch] & CharType.FirstName) == 0)
                        anyChar |= 0x80;
                    anyChar |= ch;
                    offset++;
                    while (offset < offsetMax)
                    {
                        ch = buffer[offset];
                        if ((s_charType[ch] & CharType.Name) == 0)
                            break;
                        anyChar |= ch;
                        offset++;
                    }
                }
                else
                {
                    anyChar |= 0x80;
                    ch = 0;
                }
                localName.SetValue(localNameOffset, offset - localNameOffset);
                if (anyChar >= 0x80)
                {
                    VerifyNCName(prefix.GetString());
                    VerifyNCName(localName.GetString());
                }
            }
            else
            {
                prefix.SetValue(PrefixHandleType.Empty);
                localName.SetValue(prefixOffset, offset - prefixOffset);
                if (anyChar >= 0x80)
                {
                    VerifyNCName(localName.GetString());
                }
            }
            BufferReader.Advance(offset - prefixOffset);
        }
开发者ID:ChuangYang,项目名称:corefx,代码行数:81,代码来源:XmlUTF8TextReader.cs


示例3: XmlUTF8TextReader

 public XmlUTF8TextReader()
 {
     _prefix = new PrefixHandle(BufferReader);
     _localName = new StringHandle(BufferReader);
 }
开发者ID:ChuangYang,项目名称:corefx,代码行数:5,代码来源:XmlUTF8TextReader.cs


示例4: SetValue

 public void SetValue(PrefixHandle prefix)
 {
     _type = prefix._type;
     _offset = prefix._offset;
     _length = prefix._length;
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:6,代码来源:PrefixHandle.cs


示例5: LookupNamespace

 protected Namespace LookupNamespace(PrefixHandle prefix)
 {
     Namespace ns = _nsMgr.LookupNamespace(prefix);
     if (ns == null)
         XmlExceptionHelper.ThrowUndefinedPrefix(this, prefix.GetString());
     return ns;
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:7,代码来源:XmlBaseReader.cs


示例6: XmlTextNode

 protected XmlTextNode(XmlNodeType nodeType,
                   PrefixHandle prefix,
                   StringHandle localName,
                   ValueHandle value,
                   XmlNodeFlags nodeFlags,
                   ReadState readState,
                   XmlAttributeTextNode attributeTextNode,
                   int depthDelta)
     :
     base(nodeType, prefix, localName, value, nodeFlags, readState, attributeTextNode, depthDelta)
 {
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:12,代码来源:XmlBaseReader.cs


示例7: XmlAttributeNode

 private XmlAttributeNode(PrefixHandle prefix, StringHandle localName, ValueHandle value)
     : base(XmlNodeType.Attribute,
            prefix,
            localName,
            value,
            XmlNodeFlags.CanGetAttribute | XmlNodeFlags.CanMoveToElement | XmlNodeFlags.HasValue | XmlNodeFlags.AtomicValue,
            ReadState.Interactive,
            new XmlAttributeTextNode(prefix, localName, value),
            0)
 {
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:11,代码来源:XmlBaseReader.cs


示例8: ToPrefixHandle

 public void ToPrefixHandle(PrefixHandle prefix)
 {
     DiagnosticUtility.DebugAssert(_type == StringHandleType.UTF8, "");
     prefix.SetValue(_offset, _length);
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:StringHandle.cs


示例9: Namespace

 public Namespace(XmlBufferReader bufferReader)
 {
     this.prefix = new PrefixHandle(bufferReader);
     this.uri = new StringHandle(bufferReader);
     this.outerUri = null;
     this.uriString = null;
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:7,代码来源:XmlBaseReader.cs


示例10: XmlUTF8TextReader

        public XmlUTF8TextReader()
        {
            this.prefix = new PrefixHandle(BufferReader);
            this.localName = new StringHandle(BufferReader);
#if GENERATE_CHARTYPE
            CharType.Generate();
#endif
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:8,代码来源:XmlUTF8TextReader.cs


示例11: ToPrefixHandle

 public void ToPrefixHandle(PrefixHandle prefix)
 {
     prefix.SetValue(this.offset, this.length);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:4,代码来源:StringHandle.cs


示例12: ReadQualifiedName

 private void ReadQualifiedName(PrefixHandle prefix, StringHandle localName)
 {
     int num;
     int num2;
     byte[] buffer = base.BufferReader.GetBuffer(out num, out num2);
     int index = 0;
     int num4 = 0;
     int num5 = 0;
     int offset = num;
     if (num < num2)
     {
         index = buffer[num];
         num5 = index;
         if ((charType[index] & 1) == 0)
         {
             num4 |= 0x80;
         }
         num4 |= index;
         num++;
         while (num < num2)
         {
             index = buffer[num];
             if ((charType[index] & 2) == 0)
             {
                 break;
             }
             num4 |= index;
             num++;
         }
     }
     else
     {
         num4 |= 0x80;
         index = 0;
     }
     if (index != 0x3a)
     {
         prefix.SetValue(PrefixHandleType.Empty);
         localName.SetValue(offset, num - offset);
         if (num4 >= 0x80)
         {
             this.VerifyNCName(localName.GetString());
         }
     }
     else
     {
         int length = num - offset;
         if (((length == 1) && (num5 >= 0x61)) && (num5 <= 0x7a))
         {
             prefix.SetValue(PrefixHandle.GetAlphaPrefix(num5 - 0x61));
         }
         else
         {
             prefix.SetValue(offset, length);
         }
         num++;
         int num8 = num;
         if (num < num2)
         {
             index = buffer[num];
             if ((charType[index] & 1) == 0)
             {
                 num4 |= 0x80;
             }
             num4 |= index;
             num++;
             while (num < num2)
             {
                 index = buffer[num];
                 if ((charType[index] & 2) == 0)
                 {
                     break;
                 }
                 num4 |= index;
                 num++;
             }
         }
         else
         {
             num4 |= 0x80;
             index = 0;
         }
         localName.SetValue(num8, num - num8);
         if (num4 >= 0x80)
         {
             this.VerifyNCName(prefix.GetString());
             this.VerifyNCName(localName.GetString());
         }
     }
     base.BufferReader.Advance(num - offset);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:91,代码来源:XmlUTF8TextReader.cs


示例13: XmlUTF8TextReader

 public XmlUTF8TextReader()
 {
     this.prefix = new PrefixHandle(base.BufferReader);
     this.localName = new StringHandle(base.BufferReader);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:5,代码来源:XmlUTF8TextReader.cs


示例14: XmlNode

            protected XmlNode(XmlNodeType nodeType,
                              PrefixHandle prefix,
                              StringHandle localName,
                              ValueHandle value,
                              XmlNodeFlags nodeFlags,
                              ReadState readState,
                              XmlAttributeTextNode attributeTextNode,
                              int depthDelta)
            {
                _nodeType = nodeType;
                _prefix = prefix;
                _localName = localName;
                _value = value;
                _ns = NamespaceManager.EmptyNamespace;
                _hasValue = ((nodeFlags & XmlNodeFlags.HasValue) != 0);
                _canGetAttribute = ((nodeFlags & XmlNodeFlags.CanGetAttribute) != 0);
                _canMoveToElement = ((nodeFlags & XmlNodeFlags.CanMoveToElement) != 0);
                _isAtomicValue = ((nodeFlags & XmlNodeFlags.AtomicValue) != 0);
                _skipValue = ((nodeFlags & XmlNodeFlags.SkipValue) != 0);
                _hasContent = ((nodeFlags & XmlNodeFlags.HasContent) != 0);
                _readState = readState;
                _attributeTextNode = attributeTextNode;
                _exitScope = (nodeType == XmlNodeType.EndElement);
                _depthDelta = depthDelta;
                _isEmptyElement = false;
                _quoteChar = '"';

                _qnameType = QNameType.Normal;
            }
开发者ID:noahfalk,项目名称:corefx,代码行数:29,代码来源:XmlBaseReader.cs


示例15: CompareTo

 public int CompareTo(PrefixHandle that)
 {
     return GetString().CompareTo(that.GetString());
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:4,代码来源:PrefixHandle.cs


示例16: XmlElementNode

 private XmlElementNode(PrefixHandle prefix, StringHandle localName, ValueHandle value)
     : base(XmlNodeType.Element,
            prefix,
            localName,
            value,
            XmlNodeFlags.CanGetAttribute | XmlNodeFlags.HasContent,
            ReadState.Interactive,
            null,
            -1)
 {
     _endElementNode = new XmlEndElementNode(prefix, localName, value);
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:12,代码来源:XmlBaseReader.cs


示例17: Equals2

 bool Equals2(PrefixHandle prefix2)
 {
     PrefixHandleType type1 = this.type;
     PrefixHandleType type2 = prefix2.type;
     if (type1 != type2)
         return false;
     if (type1 != PrefixHandleType.Buffer)
         return true;
     if (this.bufferReader == prefix2.bufferReader)
         return bufferReader.Equals2(this.offset, this.length, prefix2.offset, prefix2.length);
     else
         return bufferReader.Equals2(this.offset, this.length, prefix2.bufferReader, prefix2.offset, prefix2.length);
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:13,代码来源:PrefixHandle.cs


示例18: XmlEndElementNode

 public XmlEndElementNode(PrefixHandle prefix, StringHandle localName, ValueHandle value)
     : base(XmlNodeType.EndElement,
            prefix,
            localName,
            value,
            XmlNodeFlags.HasContent,
            ReadState.Interactive,
            null,
            -1)
 {
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:11,代码来源:XmlBaseReader.cs


示例19: SetValue

 public void SetValue(PrefixHandle prefix)
 {
     this.type = prefix.type;
     this.offset = prefix.offset;
     this.length = prefix.length;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:6,代码来源:PrefixHandle.cs


示例20: XmlAttributeTextNode

 public XmlAttributeTextNode(PrefixHandle prefix, StringHandle localName, ValueHandle value)
     : base(XmlNodeType.Text,
            prefix,
            localName,
            value,
            XmlNodeFlags.HasValue | XmlNodeFlags.CanGetAttribute | XmlNodeFlags.CanMoveToElement | XmlNodeFlags.AtomicValue | XmlNodeFlags.HasContent,
            ReadState.Interactive,
            null,
            1)
 {
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:11,代码来源:XmlBaseReader.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Xml.UniqueId类代码示例发布时间:2022-05-26
下一篇:
C# Xml.NameTable类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap