Display more information in component selector
This commit is contained in:
+25
-1
@@ -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 += "<";
|
||||
else if( c == '>' )
|
||||
converted += ">";
|
||||
else
|
||||
converted += c;
|
||||
}
|
||||
|
||||
return converted;
|
||||
}
|
||||
|
||||
|
||||
char* StrPurge( char* text )
|
||||
{
|
||||
static const char whitespace[] = " \t\n\r\f\v";
|
||||
|
||||
Reference in New Issue
Block a user