Ejemplo n.º 1
0
        /// <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());
        }
Ejemplo n.º 2
0
 public FileContentChangeArgs(Buffer fileBuffer, string content)
 {
     FileBuffer  = fileBuffer;
     FileContent = content;
 }