projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call clipping region methods from base class.
[wxWidgets.git]
/
src
/
common
/
stringimpl.cpp
diff --git
a/src/common/stringimpl.cpp
b/src/common/stringimpl.cpp
index 3cafa8bf8066c15f62965ea8685d49b24604c1f1..af847b54e1fcfe2c4de6f80c11724dc855ba72e9 100644
(file)
--- a/
src/common/stringimpl.cpp
+++ b/
src/common/stringimpl.cpp
@@
-30,6
+30,7
@@
#ifndef WX_PRECOMP
#include "wx/stringimpl.h"
#ifndef WX_PRECOMP
#include "wx/stringimpl.h"
+ #include "wx/wxcrt.h"
#endif
#include <ctype.h>
#endif
#include <ctype.h>
@@
-162,9
+163,9
@@
void wxStringImpl::InitWith(const wxStringCharType *psz,
// if the length is not given, assume the string to be NUL terminated
if ( nLength == npos ) {
// if the length is not given, assume the string to be NUL terminated
if ( nLength == npos ) {
- wxASSERT_MSG( nPos <=
Strsize
(psz), _T("index out of bounds") );
+ wxASSERT_MSG( nPos <=
wxStrlen
(psz), _T("index out of bounds") );
- nLength =
Strsize
(psz + nPos);
+ nLength =
wxStrlen
(psz + nPos);
}
STATISTICS_ADD(InitialLength, nLength);
}
STATISTICS_ADD(InitialLength, nLength);
@@
-426,7
+427,7
@@
wxStringImpl& wxStringImpl::insert(size_t nPos,
{
wxASSERT( nPos <= length() );
{
wxASSERT( nPos <= length() );
- if ( n == npos ) n =
Strsize
(sz);
+ if ( n == npos ) n =
wxStrlen
(sz);
if ( n == 0 ) return *this;
if ( !Alloc(length() + n) || !CopyBeforeWrite() ) {
if ( n == 0 ) return *this;
if ( !Alloc(length() + n) || !CopyBeforeWrite() ) {
@@
-666,7
+667,7
@@
wxStringImpl& wxStringImpl::operator=(wxStringCharType ch)
// assigns C string
wxStringImpl& wxStringImpl::operator=(const wxStringCharType *psz)
{
// assigns C string
wxStringImpl& wxStringImpl::operator=(const wxStringCharType *psz)
{
- if ( !AssignCopy(
Strsize
(psz), psz) ) {
+ if ( !AssignCopy(
wxStrlen
(psz), psz) ) {
wxFAIL_MSG( _T("out of memory in wxStringImpl::operator=(const wxStringCharType *)") );
}
return *this;
wxFAIL_MSG( _T("out of memory in wxStringImpl::operator=(const wxStringCharType *)") );
}
return *this;
@@
-769,7
+770,7
@@
wxStringCharType *wxStringImpl::DoGetWriteBuf(size_t nLen)
// put string back in a reasonable state after GetWriteBuf
void wxStringImpl::DoUngetWriteBuf()
{
// put string back in a reasonable state after GetWriteBuf
void wxStringImpl::DoUngetWriteBuf()
{
- DoUngetWriteBuf(
Strsize
(m_pchData));
+ DoUngetWriteBuf(
wxStrlen
(m_pchData));
}
void wxStringImpl::DoUngetWriteBuf(size_t nLen)
}
void wxStringImpl::DoUngetWriteBuf(size_t nLen)