EqualsCaseInsensitive() private method

private EqualsCaseInsensitive ( Utf8String s ) : bool
s Utf8String
return bool
Beispiel #1
0
 internal unsafe bool EqualsCaseInsensitive(Utf8String s)
 {
     if ((IntPtr)this.m_pStringHeap == IntPtr.Zero)
     {
         return(s.m_StringHeapByteLength == 0);
     }
     if (s.m_StringHeapByteLength == this.m_StringHeapByteLength && this.m_StringHeapByteLength != 0)
     {
         return(Utf8String.EqualsCaseInsensitive(s.m_pStringHeap, this.m_pStringHeap, this.m_StringHeapByteLength));
     }
     return(false);
 }
Beispiel #2
0
 internal bool EqualsCaseInsensitive(Utf8String s)
 {
     if (this.m_pStringHeap == null)
     {
         return(s.m_StringHeapByteLength == 0);
     }
     return(s.m_StringHeapByteLength == this.m_StringHeapByteLength && this.m_StringHeapByteLength != 0 && Utf8String.EqualsCaseInsensitive(s.m_pStringHeap, this.m_pStringHeap, this.m_StringHeapByteLength));
 }