Use wxIsalnum to test for word delimiters

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-02 12:47:31 +00:00
parent e6474d62a8
commit 1c07e924cd

View File

@@ -1610,8 +1610,7 @@ void wxRichTextCtrl::SelectNone()
static bool wxIsWordDelimiter(const wxString& text)
{
static wxString delimiters = wxT(" ,.:;!?-\"'~<7E>$%^&*()_+-={}[]@#<>/\\|");
return !text.IsEmpty() && delimiters.Find(text) != wxNOT_FOUND;
return !text.IsEmpty() && !wxIsalnum(text[0]);
}
/// Select the word at the given character position