KiCad PCB EDA Suite
Loading...
Searching...
No Matches
name_validation.h File Reference
#include <wx/string.h>
#include <kicommon.h>

Go to the source code of this file.

Functions

KICOMMON_API const wxString & GetLibIdForbiddenChars ()
 Characters illegal in a LIB_ID item name.
 
KICOMMON_API const wxString & GetLibFilenameForbiddenChars ()
 Characters illegal in a footprint library filename.
 

Function Documentation

◆ GetLibFilenameForbiddenChars()

KICOMMON_API const wxString & GetLibFilenameForbiddenChars ( )

Characters illegal in a footprint library filename.

This is the LIB_ID set plus the path and format characters that a name may contain but a filename may not.

Definition at line 40 of file lib_id.cpp.

References GetLibIdForbiddenChars().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_NAME_VALIDATOR::FOOTPRINT_NAME_VALIDATOR(), and FOOTPRINT::StringLibNameInvalidChars().

◆ GetLibIdForbiddenChars()

KICOMMON_API const wxString & GetLibIdForbiddenChars ( )

Characters illegal in a LIB_ID item name.

Library nicknames use a different set (isLegalLibraryNameChar) and are not covered here.

Definition at line 33 of file lib_id.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetLibFilenameForbiddenChars(), and LIB_ID::isLegalChar().