KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_tablecell.cpp File Reference
#include <advanced_config.h>
#include <common.h>
#include <sch_edit_frame.h>
#include <widgets/msgpanel.h>
#include <string_utils.h>
#include <sch_table.h>
#include <sch_tablecell.h>

Go to the source code of this file.

Classes

struct  SCH_TABLECELL_DESC
 

Functions

static bool parseCellAddress (const wxString &aAddr, int &aRow, int &aCol)
 Parse a cell address string like "A0" or "B12" into 0-based row and column indices.
 

Variables

static struct SCH_TABLECELL_DESC _SCH_TABLECELL_DESC
 

Function Documentation

◆ parseCellAddress()

static bool parseCellAddress ( const wxString & aAddr,
int & aRow,
int & aCol )
static

Parse a cell address string like "A0" or "B12" into 0-based row and column indices.

Supports single-letter columns (A-Z) and multi-letter columns (AA-ZZ). Both row and column numbers in the address are 0-based (A0 = first row, first column).

Parameters
aAddrThe address string to parse (e.g., "A0", "B5", "AA10")
aRowOutput parameter for the 0-based row index
aColOutput parameter for the 0-based column index
Returns
true if parsing succeeded, false if format is invalid

Definition at line 108 of file sch_tablecell.cpp.

Referenced by SCH_TABLECELL::GetShownText().

Variable Documentation

◆ _SCH_TABLECELL_DESC

struct SCH_TABLECELL_DESC _SCH_TABLECELL_DESC
static