updated jamfile, fixed Windows XP problems

[SVN r10840]
This commit is contained in:
John Maddock
2001-08-11 11:47:12 +00:00
parent a06c964cab
commit e1492c79ce
3 changed files with 27 additions and 4 deletions

View File

@ -272,6 +272,10 @@ void BOOST_RE_CALL w32_traits_base::do_init()
}
buf[map_size] = (char)0;
GetStringTypeA(GetUserDefaultLCID(), CT_CTYPE1, buf, map_size, class_map);
for(i = 0; i < map_size; ++i)
{
class_map[i] &= char_class_win;
}
class_map['_'] |= char_class_underscore;
LCMapStringA(GetUserDefaultLCID(), LCMAP_LOWERCASE, buf, map_size, lower_case_map, map_size);
//
@ -654,7 +658,7 @@ bool BOOST_RE_CALL w32_regex_traits<wchar_t>::do_iswclass(wchar_t c, boost::uint
if(f & char_class_unicode)
return true;
else if(isPlatformNT && GetStringTypeW(CT_CTYPE1, &c, 1, &mask))
return BOOST_RE_MAKE_BOOL(mask & f);
return BOOST_RE_MAKE_BOOL(mask & f &char_class_win);
else if((f & char_class_graph) == char_class_graph)
return true; // all wide characters are considered "graphics"
return false;