KiCad PCB EDA Suite
netlist_exporter_xml.cpp File Reference
#include "netlist_exporter_xml.h"
#include <build_version.h>
#include <common.h>
#include <sch_base_frame.h>
#include <symbol_library.h>
#include <string_utils.h>
#include <connection_graph.h>
#include <wx/wfstream.h>
#include <xnode.h>
#include <symbol_lib_table.h>
#include <set>

Go to the source code of this file.


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

Function Documentation

◆ sortPinsByNumber()

static bool sortPinsByNumber ( LIB_PIN aPin1,
LIB_PIN aPin2 

Definition at line 779 of file netlist_exporter_xml.cpp.

780 {
781  // return "lhs < rhs"
782  return StrNumCmp( aPin1->GetShownNumber(), aPin2->GetShownNumber(), true ) < 0;
783 }
wxString GetShownNumber() const
Definition: lib_pin.h:117
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.

References LIB_PIN::GetShownNumber(), and StrNumCmp().

Referenced by NETLIST_EXPORTER_XML::makeLibParts().