KiCad PCB EDA Suite
netlist_exporter_base.cpp File Reference
#include <netlist_exporter_base.h>
#include <string_utils.h>
#include <symbol_library.h>
#include <connection_graph.h>
#include <sch_reference_list.h>
#include <sch_screen.h>
#include <schematic.h>

Go to the source code of this file.

Functions

static bool sortPinsByNum (PIN_INFO &aPin1, PIN_INFO &aPin2)
 Comparison routine for sorting by pin numbers. More...
 

Function Documentation

◆ sortPinsByNum()

static bool sortPinsByNum ( PIN_INFO aPin1,
PIN_INFO aPin2 
)
static

Comparison routine for sorting by pin numbers.

Definition at line 117 of file netlist_exporter_base.cpp.

118 {
119  // return "lhs < rhs"
120  return StrNumCmp( aPin1.num, aPin2.num, true ) < 0;
121 }
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.

References PIN_INFO::num, and StrNumCmp().

Referenced by NETLIST_EXPORTER_BASE::CreatePinList().