int FPID::SetFootprintName( const UTF8& aFootprintName ) { int separation = int( aFootprintName.find_first_of( "/" ) ); if( separation != -1 ) { footprint = aFootprintName.substr( 0, separation-1 ); return separation; } else { footprint = aFootprintName; } return -1; }
int FPID::SetFootprintName( const UTF8& aFootprintName ) { int separation = int( aFootprintName.find_first_of( "/" ) ); if( separation != -1 ) { nickname = aFootprintName.substr( separation+1 ); return separation + (int) nickname.size() + 1; } else { footprint = aFootprintName; } return -1; }
int LIB_ID::SetLibItemName( const UTF8& aLibItemName, bool aTestForRev ) { int separation = int( aLibItemName.find_first_of( "/" ) ); if( aTestForRev && separation != -1 ) { item_name = aLibItemName.substr( 0, separation-1 ); return separation; } else { item_name = aLibItemName; } return -1; }