using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c);
- const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us);
- const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr);
const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de);
// int compare(const charT*, const charT*, const charT*, const charT*) const
const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
- const wchar_t* strlit2 = L"imperial tea court green oolong";
const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Äuglein"
const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
int i1;
int i2;
int size1 = char_traits<wchar_t>::length(strlit1) - 1;
- int size2 = char_traits<wchar_t>::length(strlit2) - 1;
int size3 = char_traits<wchar_t>::length(strlit3) - 1;
int size4 = char_traits<wchar_t>::length(strlit4) - 1;