KiCad PCB EDA Suite
netlist_exporter_generic.cpp File Reference
#include <build_version.h>
#include <sch_base_frame.h>
#include <class_library.h>
#include <sch_edit_frame.h>
#include <symbol_lib_table.h>
#include "netlist_exporter_generic.h"

Go to the source code of this file.


 Holder for multi-unit component fields. More...


static bool sortPinsByNumber (LIB_PIN *aPin1, LIB_PIN *aPin2)

Function Documentation

◆ sortPinsByNumber()

static bool sortPinsByNumber ( LIB_PIN aPin1,
LIB_PIN aPin2 

Definition at line 556 of file netlist_exporter_generic.cpp.

References LIB_PIN::GetNumber(), and RefDesStringCompare().

Referenced by NETLIST_EXPORTER_GENERIC::makeLibParts().

557 {
558  // return "lhs < rhs"
559  return RefDesStringCompare( aPin1->GetNumber(), aPin2->GetNumber() ) < 0;
560 }
const wxString & GetNumber() const
Definition: lib_pin.h:194
int RefDesStringCompare(wxString strFWord, wxString strSWord)
Function RefDesStringCompare acts just like the strcmp function but treats numbers within the string ...
Definition: string.cpp:542