LineCounter Class

Summary

This purpose of this class is to get the line-numbers within a string for a specific position of a character (an index, as returned by the System.Text.RegularExpressions.Regex class).
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks.Grep
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["LineCounter"] class Type type-node

Syntax

public class LineCounter

Constructors

Name Summary
LineCounter(string) Constructs a line-counter for a string.

Methods

Name Value Summary
CountTo(int) int
Counts the line-numbers until the position pos is reached.