56 wxString url = data_field->
GetText();
64 size_t idx = desc.find( wxT(
"http:" ) );
66 if( idx == wxString::npos )
67 idx = desc.find( wxT(
"https:" ) );
69 if( idx == wxString::npos )
74 for(
auto chit = desc.begin() + idx; chit != desc.end(); ++chit )
79 if( ch <= 0x20 || ch >= 0x7F || ch ==
'"' )
85 else if( ch ==
')' && --nesting < 0 )
92 static wxString punct = wxS(
".,:;" );
94 if( punct.find( url.Last() ) != wxString::npos )
95 url = url.Left( url.Length() - 1 );
virtual const wxString & GetText() const
Return the string associated with the text object.