private static FindBOL ( string _Source, int _StartIndex ) : int | ||
_Source | string | |
_StartIndex | int | |
return | int |
private static int FindBOL( string _Source, int _StartIndex )
{
int MatchIndex = _Source.LastIndexOf( '\n', Math.Max( 0, _StartIndex-1) );
return MatchIndex != -1 ? MatchIndex+1 : 0; // BOF?
}