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