31#include <wx/tokenzr.h>
34 const wxString& aFootprintName )
36 if( aFootprintName.IsEmpty() )
39 for( std::unique_ptr<FOOTPRINT_INFO>& fp :
m_list )
41 if( aLibNickname == fp->GetLibNickname() && aFootprintName == fp->GetFootprintName() )
51 if( aFootprintName.IsEmpty() )
56 wxCHECK_MSG( fpid.
Parse( aFootprintName ) < 0,
nullptr,
57 wxString::Format( wxT(
"'%s' is not a valid LIB_ID." ), aFootprintName ) );
72 wxStringTokenizer keywordTokenizer(
GetKeywords(),
" \t\r\n", wxTOKEN_STRTOK );
74 while( keywordTokenizer.HasMoreTokens() )
110 while( std::unique_ptr<IO_ERROR> error =
PopError() )
112 if( !messages.IsEmpty() )
113 messages += wxS(
"\n" );
115 messages += error->Problem();
A logical library item identifier and consists of various portions much like a URI.
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
const UTF8 & GetLibItemName() const
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.
A structure for storing weighted search terms.