X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04d29fda821871ff0f4c63de7de4c5324cc270af..d1ae263893419a87f0e7a67bbcbaf86c350ffdfe:/include/wx/stringops.h diff --git a/include/wx/stringops.h b/include/wx/stringops.h index 2cfbe188e4..f3046794be 100644 --- a/include/wx/stringops.h +++ b/include/wx/stringops.h @@ -40,8 +40,6 @@ struct WXDLLIMPEXP_BASE wxStringOperationsWchar { return i + n; } static wxStringImpl::const_iterator AddToIter(const wxStringImpl::const_iterator& i, int n) { return i + n; } - static const wxChar* AddToIter(const wxChar *i, int n) - { return i + n; } // returns distance of the two iterators in Unicode characters static int DiffIters(const wxStringImpl::iterator& i1, @@ -65,7 +63,8 @@ struct WXDLLIMPEXP_BASE wxStringOperationsWchar struct WXDLLIMPEXP_BASE wxStringOperationsUtf8 { // checks correctness of UTF-8 sequence - static bool IsValidUtf8String(const char *c); + static bool IsValidUtf8String(const char *c, + size_t len = wxStringImpl::npos); #ifdef __WXDEBUG__ static bool IsValidUtf8LeadByte(unsigned char c); #endif