From: Julian Smart Date: Mon, 2 Oct 2006 12:47:31 +0000 (+0000) Subject: Use wxIsalnum to test for word delimiters X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c07e924cdc33bea98f3d90e5af79baa8eb3ec02 Use wxIsalnum to test for word delimiters git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 6e81260692..2a8b344a35 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -1610,8 +1610,7 @@ void wxRichTextCtrl::SelectNone() static bool wxIsWordDelimiter(const wxString& text) { - static wxString delimiters = wxT(" ,.:;!?-\"'~£$%^&*()_+-={}[]@#<>/\\|"); - return !text.IsEmpty() && delimiters.Find(text) != wxNOT_FOUND; + return !text.IsEmpty() && !wxIsalnum(text[0]); } /// Select the word at the given character position