public ViewParam() { PLHI = new SplitArray <int>(128, 128); // this was 'physical line head indexes' in past so its name starts with 'P' PLHI.Add(0); MaxLineNumber = 9999; LastModifiedTime = DateTime.MinValue; }
public static int GetCharIndexFromLineColumnIndex(TextBuffer text, SplitArray <int> lhi, int lineIndex, int columnIndex) { DebugUtl.Assert(text != null && lhi != null && 0 <= lineIndex && 0 <= columnIndex, "invalid arguments were given"); DebugUtl.Assert(lineIndex < lhi.Count, String.Format( "too large line index was given (given:{0} actual" + " line count:{1})", lineIndex, lhi.Count)); int lineHeadIndex = lhi[lineIndex]; # if DEBUG
/// <summary> /// Creates a new instance. /// </summary> public TextBuffer(int initGapSize, int growSize) : base(initGapSize, growSize) { _Classes = new SplitArray <CharClass>(initGapSize, growSize); _MarkingBitMasks = new RleArray <uint>(); }
/// <summary> /// Creates a new instance. /// </summary> public RleArray(int initCapacity) { _Nodes = new SplitArray <Node>(Math.Max(32, initCapacity)); __check_sanity__(); }