lux/index/normalizer.h

00001 #ifndef LUX_INDEX_NORMALIZER_H
00002 #define LUX_INDEX_NORMALIZER_H
00003 
00004 #include <string>
00005 #include <cctype>
00006 
00007 namespace Lux {
00008 
00009   class Normalizer {
00010 
00011   public:
00012     static void process(std::string &org)
00013     {
00014       // temporary
00015       std::transform(org.begin(), org.end(), org.begin(), (int (*)(int)) std::tolower);       
00016 
00017       // [TODO] must do Japanese full-width and half-width kana normalization 
00018     }
00019   };
00020 }
00021 
00022 #endif

Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7