1 //  ascii_check header  --------------------------------------------------------//
2 
3 //  Copyright Marshall Clow 2007.
4 //  Based on the tab-check checker by Beman Dawes
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  (See accompanying file LICENSE_1_0.txt or copy at
7 //  http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef BOOST_ASCII_CHECK_HPP
10 #define BOOST_ASCII_CHECK_HPP
11 
12 #include "inspector.hpp"
13 
14 namespace boost
15 {
16   namespace inspect
17   {
18     class ascii_check : public inspector
19     {
20       long m_files_with_errors;
21     public:
22 
23       ascii_check();
name() const24       virtual const char * name() const { return "*ASCII*"; }
desc() const25       virtual const char * desc() const { return "non-ASCII chars in file"; }
26 
27       virtual void inspect(
28         const std::string & library_name,
29         const path & full_path,
30         const std::string & contents );
31 
~ascii_check()32       virtual ~ascii_check()
33         { std::cout << "  " << m_files_with_errors << " files with non-ASCII chars" << line_break(); }
34     };
35   }
36 }
37 
38 #endif // BOOST_ASCII_CHECK_HPP
39