// xlocale -- class locale exotic char member functions #include #include _STD_BEGIN typedef char_traits _Traits; typedef istreambuf_iterator _Initer; typedef ostreambuf_iterator _Outiter; // facets associated with C categories #define ADDFAC(T, cat, pi, pl) \ if ((_CATMASK(T::_Getcat()) & cat) == 0) \ ; \ else if (pl == 0) \ pi->_Addfac(new T(_Lobj), T::id); \ else \ pi->_Addfac((locale::facet *)&_USE(*pl, T), T::id); typedef collate _T5; typedef messages _T6; typedef money_get _T7; typedef money_put _T9; typedef moneypunct _T11; typedef moneypunct _T12; typedef time_get _T13; typedef time_put _T14; template<> locale::id collate::id; template<> locale::id messages::id; template<> locale::id money_get::id; template<> locale::id money_put::id; template<> locale::id moneypunct::id; template<> locale::id moneypunct::id; template<> locale::id time_get::id; template<> locale::id time_put::id; void __cdecl locale::_Locimp::_Makexloc(const _Locinfo& _Lobj, locale::category _C, _Locimp *_Pi, const locale *_Pl) { // setup exotic char part of a new locale _Lockit _Lk; ADDFAC(_T5, _C, _Pi, _Pl); ADDFAC(_T6, _C, _Pi, _Pl); ADDFAC(_T7, _C, _Pi, _Pl); ADDFAC(_T9, _C, _Pi, _Pl); ADDFAC(_T11, _C, _Pi, _Pl); ADDFAC(_T12, _C, _Pi, _Pl); ADDFAC(_T13, _C, _Pi, _Pl); ADDFAC(_T14, _C, _Pi, _Pl); } _STD_END /* * Copyright (c) 1995 by P.J. Plauger. ALL RIGHTS RESERVED. * Consult your license regarding permissions and restrictions. */