using System; namespace System.Text.RegularExpressions.Syntax { // Token: 0x020002EA RID: 746 internal class AnchorInfo { // Token: 0x06001B11 RID: 6929 RVA: 0x000639C8 File Offset: 0x00061BC8 public AnchorInfo(Expression expr, int width) { this.expr = expr; this.offset = 0; this.width = width; this.str = null; this.ignore = false; this.pos = Position.Any; } // Token: 0x06001B12 RID: 6930 RVA: 0x00063A08 File Offset: 0x00061C08 public AnchorInfo(Expression expr, int offset, int width, string str, bool ignore) { this.expr = expr; this.offset = offset; this.width = width; this.str = ((!ignore) ? str : str.ToLower()); this.ignore = ignore; this.pos = Position.Any; } // Token: 0x06001B13 RID: 6931 RVA: 0x00063A5C File Offset: 0x00061C5C public AnchorInfo(Expression expr, int offset, int width, Position pos) { this.expr = expr; this.offset = offset; this.width = width; this.pos = pos; this.str = null; this.ignore = false; } // Token: 0x1700083F RID: 2111 // (get) Token: 0x06001B14 RID: 6932 RVA: 0x00063A90 File Offset: 0x00061C90 public Expression Expression { get { return this.expr; } } // Token: 0x17000840 RID: 2112 // (get) Token: 0x06001B15 RID: 6933 RVA: 0x00063A98 File Offset: 0x00061C98 public int Offset { get { return this.offset; } } // Token: 0x17000841 RID: 2113 // (get) Token: 0x06001B16 RID: 6934 RVA: 0x00063AA0 File Offset: 0x00061CA0 public int Width { get { return this.width; } } // Token: 0x17000842 RID: 2114 // (get) Token: 0x06001B17 RID: 6935 RVA: 0x00063AA8 File Offset: 0x00061CA8 public int Length { get { return (this.str == null) ? 0 : this.str.Length; } } // Token: 0x17000843 RID: 2115 // (get) Token: 0x06001B18 RID: 6936 RVA: 0x00063AC8 File Offset: 0x00061CC8 public bool IsUnknownWidth { get { return this.width < 0; } } // Token: 0x17000844 RID: 2116 // (get) Token: 0x06001B19 RID: 6937 RVA: 0x00063AD4 File Offset: 0x00061CD4 public bool IsComplete { get { return this.Length == this.Width; } } // Token: 0x17000845 RID: 2117 // (get) Token: 0x06001B1A RID: 6938 RVA: 0x00063AE4 File Offset: 0x00061CE4 public string Substring { get { return this.str; } } // Token: 0x17000846 RID: 2118 // (get) Token: 0x06001B1B RID: 6939 RVA: 0x00063AEC File Offset: 0x00061CEC public bool IgnoreCase { get { return this.ignore; } } // Token: 0x17000847 RID: 2119 // (get) Token: 0x06001B1C RID: 6940 RVA: 0x00063AF4 File Offset: 0x00061CF4 public Position Position { get { return this.pos; } } // Token: 0x17000848 RID: 2120 // (get) Token: 0x06001B1D RID: 6941 RVA: 0x00063AFC File Offset: 0x00061CFC public bool IsSubstring { get { return this.str != null; } } // Token: 0x17000849 RID: 2121 // (get) Token: 0x06001B1E RID: 6942 RVA: 0x00063B0C File Offset: 0x00061D0C public bool IsPosition { get { return this.pos != Position.Any; } } // Token: 0x06001B1F RID: 6943 RVA: 0x00063B1C File Offset: 0x00061D1C public Interval GetInterval() { return this.GetInterval(0); } // Token: 0x06001B20 RID: 6944 RVA: 0x00063B28 File Offset: 0x00061D28 public Interval GetInterval(int start) { if (!this.IsSubstring) { return Interval.Empty; } return new Interval(start + this.Offset, start + this.Offset + this.Length - 1); } // Token: 0x040015CB RID: 5579 private Expression expr; // Token: 0x040015CC RID: 5580 private Position pos; // Token: 0x040015CD RID: 5581 private int offset; // Token: 0x040015CE RID: 5582 private string str; // Token: 0x040015CF RID: 5583 private int width; // Token: 0x040015D0 RID: 5584 private bool ignore; } }