Exemple #1
0
        // Token: 0x06002C08 RID: 11272 RVA: 0x000C803C File Offset: 0x000C623C
        public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position)
        {
            DocumentSequenceTextPointer documentSequenceTextPointer = thisTp.AggregatedContainer.VerifyPosition(position);
            int num = DocumentSequenceTextPointer.xGapAwareCompareTo(thisTp, documentSequenceTextPointer);

            if (num == 0)
            {
                return(0);
            }
            if (num <= 0)
            {
                return(DocumentSequenceTextPointer.xGapAwareGetDistance(thisTp, documentSequenceTextPointer));
            }
            return(-1 * DocumentSequenceTextPointer.xGapAwareGetDistance(documentSequenceTextPointer, thisTp));
        }