55 wxString url = data_field->
GetText();
63 size_t idx = desc.find( wxT(
"http:" ) );
65 if( idx == wxString::npos )
66 idx = desc.find( wxT(
"https:" ) );
68 if( idx == wxString::npos )
73 for(
auto chit = desc.begin() + idx; chit != desc.end(); ++chit )
78 if( ch <= 0x20 || ch >= 0x7F || ch ==
'"' )
84 else if( ch ==
')' && --nesting < 0 )
91 static wxString punct = wxS(
".,:;" );
93 if( punct.find( url.Last() ) != wxString::npos )
94 url = url.Left( url.Length() - 1 );
virtual const wxString & GetText() const
Return the string associated with the text object.