stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: ctype index?
Date Wed, 04 Apr 2007 23:28:30 GMT
Scott Zhong wrote:
> in the for loop, why __lo char_type length isn't being tested?

I'm not sure what you mean. What length isn't being tested
and why should it be?

Martin

> 
> in _ctype.cc line 141:
> 
> template <class _CharT>
> /* virtual */ const _TYPENAME ctype<_CharT>::char_type*
> ctype<_CharT>::
> do_narrow (const char_type *__lo, const char_type *__hi,
>            char __dfault, char *__dest) const
> {
>     _RWSTD_ASSERT (__lo <= __hi);
>     _RWSTD_ASSERT (!__lo || __dest);
> 
>     for (; __lo < __hi; ++__lo, ++__dest)
>         *__dest = narrow (*__lo, __dfault);
> 
>     return __hi;
> }
> 
> 
> Yu (Scott) Zhong
> 
> 


Mime
View raw message