/// <summary> /// Scans the entire file and sets the counts according to its content. /// </summary> /// <param name="fileBuffer">The buffer of a given file.</param> public void CountFileContent(Buffer fileBuffer) { WordCount = 0; CharacterCount = 0; LineCount = 1; _previousChar = '\0'; UpdateCountsAdd(fileBuffer.GetBufferContent()); }
public FileContentChangeArgs(Buffer fileBuffer, string content) { FileBuffer = fileBuffer; FileContent = content; }