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

Go to the source code of this file.


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

Function Documentation

static bool sortPinsByNumber ( LIB_PIN aPin1,
LIB_PIN aPin2 

Definition at line 504 of file netlist_exporter_generic.cpp.

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

Referenced by NETLIST_EXPORTER_GENERIC::makeLibParts().

505 {
506  // return "lhs < rhs"
507  return RefDesStringCompare( aPin1->GetNumberString(), aPin2->GetNumberString() ) < 0;
508 }
int RefDesStringCompare(const wxString &strFWord, const wxString &strSWord)
Function RefDesStringCompare acts just like the strcmp function but treats numbers within the string ...
Definition: string.cpp:365
wxString GetNumberString() const
Definition: lib_pin.h:175