OSDN Git Service

resource.h: Add IDS_PLUGIN_DESCRIPTION*
[winmerge-jp/winmerge-jp.git] / Src / FileTextStats.h
1 /** 
2  * @file FileTextStats.h
3  *
4  * @brief Declaration file for FileTextStats structure.
5  */
6 #pragma once
7
8 /**
9  * @brief Structure containing statistics about compared file.
10  * This structure contains EOL-byte and zero-byte statistics from compared
11  * file. Those statistics can be used to determine EOL style and binary
12  * status of the file.
13  */
14 struct FileTextStats
15 {
16         int ncrs; /**< Count of MAC (CR-byte) EOLs. */
17         int nlfs; /**< Count of Unix (LF-byte) EOLs. */
18         int ncrlfs; /**< Count of DOS (CR+LF-bytes) EOLs. */
19         int nzeros; /**< Count of zero-bytes. */
20         FileTextStats() { clear(); }
21         void clear() { ncrs = nlfs = ncrlfs = nzeros = 0; }
22 };