Tanl Linguistic Pipeline |
00001 /* 00002 ** Tanl 00003 ** text/charmap.h 00004 ** ---------------------------------------------------------------------- 00005 ** Copyright (c) 2001 Ideare SpA. All rights reserved. 00006 ** Copyright (c) 2000 Giuseppe Attardi (attardi@di.unipi.it) 00007 ** ---------------------------------------------------------------------- 00008 ** 00009 ** This file is part of Tanl. 00010 ** 00011 ** Tanl is free software; you can redistribute it and/or modify it 00012 ** under the terms of the GNU General Public License, version 3, 00013 ** as published by the Free Software Foundation. 00014 ** 00015 ** Tanl is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 ** ---------------------------------------------------------------------- 00023 */ 00024 00025 #ifndef Tanl_Text_charmap_H 00026 #define Tanl_Text_charmap_H 00027 00028 // Settings 00029 #include "include/config.h" 00030 00031 // standard 00032 #include <cctype> 00033 00034 namespace Tanl { 00035 namespace Text { 00036 00037 extern char const iso8859_map[256]; 00038 00058 inline char iso8859_to_ascii(char c) 00059 { 00060 return iso8859_map[static_cast<unsigned char>(c)]; 00061 } 00062 00063 } // namespace Text 00064 } // namespace Tanl 00065 00066 #endif /* Tanl_Text_charmap_H */