(I might be back at work committing other fixes soon,
but probably not before tomorrow at least.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2522
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxASSERT( nStart <= Len() );
}
wxASSERT( nStart <= Len() );
}
- for ( const char *p = c_str() + length() - 1; p >= c_str(); p-- )
+ for ( const wxChar *p = c_str() + length() - 1; p >= c_str(); p-- )
{
if ( wxStrchr(sz, *p) )
return p - c_str();
{
if ( wxStrchr(sz, *p) )
return p - c_str();
wxASSERT( nStart <= Len() );
}
wxASSERT( nStart <= Len() );
}
- size_t nAccept = strspn(c_str() + nStart, sz);
+ size_t nAccept = wxStrspn(c_str() + nStart, sz);
if ( nAccept >= length() - nStart )
return npos;
else
if ( nAccept >= length() - nStart )
return npos;
else
{
wxASSERT( nStart <= Len() );
{
wxASSERT( nStart <= Len() );
- for ( const char *p = c_str() + nStart; *p; p++ )
+ for ( const wxChar *p = c_str() + nStart; *p; p++ )
{
if ( *p != ch )
return p - c_str();
{
if ( *p != ch )
return p - c_str();
wxASSERT( nStart <= Len() );
}
wxASSERT( nStart <= Len() );
}
- for ( const char *p = c_str() + nStart - 1; p >= c_str(); p-- )
+ for ( const wxChar *p = c_str() + nStart - 1; p >= c_str(); p-- )
{
if ( !wxStrchr(sz, *p) )
return p - c_str();
{
if ( !wxStrchr(sz, *p) )
return p - c_str();
wxASSERT( nStart <= Len() );
}
wxASSERT( nStart <= Len() );
}
- for ( const char *p = c_str() + nStart - 1; p >= c_str(); p-- )
+ for ( const wxChar *p = c_str() + nStart - 1; p >= c_str(); p-- )
{
if ( *p != ch )
return p - c_str();
{
if ( *p != ch )
return p - c_str();