66 LIB_ID(
const wxString& aLibraryName,
const wxString& aItemName );
82 int Parse(
const UTF8& aId,
bool aFix =
false );
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.
bool operator==(const LIB_ID &aLibId) const
int SetLibItemName(const UTF8 &aLibItemName)
Override the library item name portion of the LIB_ID to aLibItemName.
bool operator!=(const LIB_ID &aLibId) const
bool IsValid() const
Check if this LID_ID is valid.
static int HasIllegalChars(const UTF8 &aLibItemName)
Examine aLibItemName for invalid LIB_ID item name characters.
int compare(const LIB_ID &aLibId) const
Compare the contents of LIB_ID objects by performing a std::string comparison of the library nickname...
static bool isLegalChar(unsigned aUniChar)
Tests whether a Unicode character is a legal LIB_ID item name character.
bool operator<(const LIB_ID &aLibId) const
wxString GetUniStringLibId() const
static unsigned FindIllegalLibraryNameChar(const UTF8 &aLibraryName)
Looks for characters that are illegal in library nicknames.
const wxString GetUniStringSubLibraryName() const
UTF8 m_libraryName
The nickname of the library or empty.
void SetSubLibraryName(const UTF8 &aName)
const wxString GetUniStringLibItemName() const
Get strings for display messages in dialogs.
int SetLibNickname(const UTF8 &aNickname)
Override the logical library name portion of the LIB_ID to aNickname.
const wxString GetUniStringLibNickname() const
const UTF8 & GetLibItemName() const
bool operator>(const LIB_ID &aLibId) const
UTF8 GetSubLibraryName() const
Some LIB_IDs can have a sub-library identifier in addition to a library nickname.
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
static UTF8 FixIllegalChars(const UTF8 &aLibItemName, bool aLib)
Replace illegal LIB_ID item name characters with underscores '_'.
UTF8 m_itemName
The name of the entry in the logical library.
void clear()
Clear the contents of the library nickname, library entry name.
const wxString GetFullLibraryName() const
UTF8 m_subLibraryName
Optional sub-library name used for grouping within a library.
static bool isLegalLibraryNameChar(unsigned aUniChar)
Tests whether a Unicode character is a legal LIB_ID library nickname character.
An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and fro...