|
Boost : |
From: David Deakins (ddeakins_at_[hidden])
Date: 2007-11-23 16:23:54
Here is a set of patches to enable Boost.Regex on WinCE. Some specifics
about the fixes:
libs/regex/src/cregex.cpp:
libs/regex/src/posix_api.cpp:
libs/regex/src/wide_posix_api.cpp:
Windows CE does not supply the 'safe string' functions in its CRT.
boost/regex/v4/fileiter.hpp:
libs/regex/src/fileiter.cpp:
libs/regex/src/w32_regex_traits.cpp:
Windows CE does not include the ANSI versions of the Win32 API.
Additional code was added to substitute the wide-char API and do
appropriate wide/narrow character conversions in WinCE builds.
libs/regex/test/c_compiler_checks/posix_api_check.c:
libs/regex/test/c_compiler_checks/posix_api_check.cpp:
libs/regex/example/timer/regex_timer.cpp:
Since these tests explicitly work with narrow character strings, it is
probably intended that the test code use regcompA, regexecA, regfreeA,
etc. Currently it uses regcomp, regexec, etc which will transform to
regcompW, regexecW, etc on Windows CE.
libs/regex/test/regress/test_locale.cpp:
Windows CE does not currently include the setlocale functions in its
CRT. Also some fixes to substitute wide-char Win32 API in WinCE builds
where ANSI Win32 API is currently used.
Let me know if there are any questions.
Thanks,
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk