#include <boost/locale.hpp>
#include <ctime>
#include <iostream>
int main()
{
std::locale loc = gen("");
std::cout << "boundary detection not implemented in this environment\n";
return 0;
}
std::locale::global(loc);
std::cout.imbue(loc);
std::string text = "Hello World! あにま! Linux2.6 and Windows7 is word and number. שָלוֹם עוֹלָם!";
std::cout << text << std::endl;
for(p = index.begin(), e = index.end(); p != e; ++p) {
std::cout << "Part [" << *p << "] has ";
std::cout << "number(s) ";
std::cout << "letter(s) ";
std::cout << "kana character(s) ";
std::cout << "ideographic character(s) ";
std::cout << "no word characters";
std::cout << std::endl;
}
for(p = index.begin(), e = index.end(); p != e; ++p) {
std::cout << "|" << *p;
}
std::cout << "|\n\n";
for(p = index.begin(), e = index.end(); p != e; ++p) {
std::cout << "|" << *p;
}
std::cout << "|\n\n";
for(p = index.begin(), e = index.end(); p != e; ++p) {
std::cout << "|" << *p;
}
std::cout << "|\n\n";
}