]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stringops.h
fixed wxString::Last() to run in O(1), not O(n), in UTF-8 build
[wxWidgets.git] / include / wx / stringops.h
index 972b8327171a6b60afc08cb0738645bc689bcbf5..ed53532d9e0392665af8410c6e7026f317502ba6 100644 (file)
@@ -15,6 +15,7 @@
 #include "wx/chartype.h"
 #include "wx/stringimpl.h"
 #include "wx/unichar.h"
+#include "wx/buffer.h"
 
 // This header contains wxStringOperations "namespace" class that implements
 // elementary operations on string data as static methods; wxString methods and
@@ -64,7 +65,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