mirror of
https://github.com/boostorg/regex.git
synced 2025-07-05 16:46:31 +02:00
updated jamfile, fixed Windows XP problems
[SVN r10840]
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user