Display more information in component selector

This commit is contained in:
Chris Pavlina
2017-02-07 15:01:20 -05:00
parent cdc392867a
commit bca74853d1
8 changed files with 104 additions and 70 deletions
+25 -1
View File
@@ -1,7 +1,7 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2004 KiCad Developers, see change_log.txt for contributors.
* Copyright (C) 2004-2017 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -167,6 +167,30 @@ std::string EscapedUTF8( const wxString& aString )
}
wxString EscapedHTML( const wxString& aString )
{
wxString converted;
for( wxUniChar c: aString )
{
if( c == '\"' )
converted += """;
else if( c == '\'' )
converted += "'";
else if( c == '&' )
converted += "&";
else if( c == '<' )
converted += "&lt;";
else if( c == '>' )
converted += "&gt;";
else
converted += c;
}
return converted;
}
char* StrPurge( char* text )
{
static const char whitespace[] = " \t\n\r\f\v";