regex: added some missing std:: prefixes, updated Be compiler status page.

[SVN r8354]
This commit is contained in:
John Maddock
2000-11-29 12:48:20 +00:00
parent 2c085b3dc4
commit 91953b9cf2
8 changed files with 28 additions and 26 deletions

View File

@ -169,7 +169,7 @@ class BOOST_RE_IX_DECL mapfile_iterator;
class BOOST_RE_IX_DECL mapfile
{
typedef char* pointer;
FILE* hfile;
std::FILE* hfile;
long int _size;
pointer* _first;
pointer* _last;

View File

@ -162,7 +162,7 @@ inline bool BOOST_RE_CALL reg_expression<charT, traits, Allocator>::operator==(c
{
return (_flags == e.flags())
&& (_expression_len == e._expression_len)
&& (memcmp(_expression, e._expression, _expression_len * sizeof(charT)) == 0);
&& (std::memcmp(_expression, e._expression, _expression_len * sizeof(charT)) == 0);
}
template <class charT, class traits, class Allocator>
@ -172,7 +172,7 @@ bool BOOST_RE_CALL reg_expression<charT, traits, Allocator>::operator<(const reg
// we can't offer a diffinitive ordering, but we can be consistant:
if(_flags != e.flags()) return _flags < e.flags();
if(_expression_len != e._expression_len) return _expression_len < e._expression_len;
return memcmp(expression(), e.expression(), _expression_len);
return std::memcmp(expression(), e.expression(), _expression_len);
}
template <class charT, class traits, class Allocator>

View File

@ -287,10 +287,10 @@ Do not change this file unless you really really have to, add options to
#ifdef __BASTRING__
#define BOOST_RE_NO_WCSTRING
#endif
#if defined(__BEOS__)
#define BOOST_RE_NO_WCTYPE_H
#define BOOST_RE_NO_WCSTRING
#endif
//
// for now we'll always define these:
#define BOOST_RE_NO_WCTYPE_H
#define BOOST_RE_NO_WCSTRING
#endif
@ -1249,5 +1249,6 @@ namespace std{

View File

@ -47,9 +47,9 @@ namespace boost{
//
template <class charT>
size_t BOOST_RE_CALL re_strlen(const charT *s)
std::size_t BOOST_RE_CALL re_strlen(const charT *s)
{
size_t len = 0;
std::size_t len = 0;
while(*s)
{
++s;
@ -58,14 +58,14 @@ size_t BOOST_RE_CALL re_strlen(const charT *s)
return len;
}
inline size_t BOOST_RE_CALL re_strlen(const char *s)
inline std::size_t BOOST_RE_CALL re_strlen(const char *s)
{
return std::strlen(s);
}
#ifndef BOOST_RE_NO_WCSTRING
inline size_t BOOST_RE_CALL re_strlen(const wchar_t *s)
inline std::size_t BOOST_RE_CALL re_strlen(const wchar_t *s)
{
return std::wcslen(s);
}
@ -136,3 +136,4 @@ inline void BOOST_RE_CALL re_strfree(charT* p)