* @brief Check if file has only one EOL type. * @param [in] stats File's text stats. * @return true if only one EOL type is found, false otherwise. */
| 38 | * @return true if only one EOL type is found, false otherwise. |
| 39 | */ |
| 40 | static bool IsTextFileStylePure(const UniMemFile::txtstats & stats) |
| 41 | { |
| 42 | int nType = 0; |
| 43 | if (stats.ncrlfs > 0) |
| 44 | nType++; |
| 45 | if ( stats.ncrs > 0) |
| 46 | nType++; |
| 47 | if (stats.nlfs > 0) |
| 48 | nType++; |
| 49 | return (nType <= 1); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * @brief Get file's EOL type. |
no outgoing calls
no test coverage detected