// Token: 0x06004D00 RID: 19712 RVA: 0x0012F794 File Offset: 0x0012D994 public UITextPosition(int line, int column, int position, global::UITextRegion region) { this.line = line; this.column = column; this.position = position; this.deformed = 0; this.region = region; this.uniformRegion = region; }
// Token: 0x06004CFF RID: 19711 RVA: 0x0012F75C File Offset: 0x0012D95C public UITextPosition(global::UITextRegion beforeOrPre) { this.line = 0; this.column = 0; this.position = 0; this.deformed = 0; this.region = beforeOrPre; this.uniformRegion = beforeOrPre; }
// Token: 0x06004DC6 RID: 19910 RVA: 0x00135B60 File Offset: 0x00133D60 private static void CountLinesGetColumn(string text, int inPos, out int pos, out int lines, out int column, out global::UITextRegion region) { if (inPos < 0) { region = global::UITextRegion.Before; pos = 0; lines = 0; column = 0; } else if (inPos == 0) { pos = 0; lines = 0; column = 0; region = global::UITextRegion.Pre; } else { if (inPos > text.Length) { region = global::UITextRegion.End; pos = text.Length; } else if (inPos == text.Length) { region = global::UITextRegion.Past; pos = inPos; } else { region = global::UITextRegion.Inside; pos = inPos; } int num = text.IndexOf('\n', 0, pos); if (num == -1) { lines = 0; column = pos; } else { int num2 = num; lines = 1; while (++num < pos) { num = text.IndexOf('\n', num, pos - num); if (num == -1) { break; } lines++; num2 = num; } column = pos - (num2 + 1); } } }