KiCad PCB EDA Suite
|
Go to the source code of this file.
Functions | |
KICOMMON_API bool | IncrementString (wxString &name, int aIncrement) |
Generic string incrementer. | |
static bool | containsIOSQXZ (const wxString &aStr) |
KICOMMON_API int | IndexFromAlphabetic (const wxString &aStr, const wxString &aAlphabet) |
Attempt to convert a string to an integer, assuming it is an alphabetic string like "A", "B", ... "Z", "AA", "AB", ... "ZZ", "AAA", ... in some alphabet. | |
wxString KICOMMON_API | AlphabeticFromIndex (size_t aN, const wxString &aAlphabet, bool aZeroBasedNonUnitCols) |
Get an alphabetic string like A, B, ... Z, AA, AB, ... ZZ, AAA, ... | |
wxString KICOMMON_API AlphabeticFromIndex | ( | size_t | aN, |
const wxString & | aAlphabet, | ||
bool | aZeroBasedNonUnitCols | ||
) |
Get an alphabetic string like A, B, ... Z, AA, AB, ... ZZ, AAA, ...
aIndex | The index to convert. |
aAlphabet | The alphabet to use. |
aZeroBasedNonUnitCols | If true, cols other than the right most use the 0'th entry (e.g. Z -> AA, not BA, but 9 -> 10, not 00). |
Definition at line 258 of file increment.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ARRAY_AXIS::GetItemNumber(), and STRING_INCREMENTER::incrementPart().
|
static |
Definition at line 150 of file increment.cpp.
Referenced by STRING_INCREMENTER::incrementPart().
KICOMMON_API bool IncrementString | ( | wxString & | name, |
int | aIncrement | ||
) |
Generic string incrementer.
Definition at line 33 of file increment.cpp.
References name.
Referenced by SCH_LABEL_BASE::IncrementLabel(), and SYMBOL_EDITOR_PIN_TOOL::RepeatPin().
KICOMMON_API int IndexFromAlphabetic | ( | const wxString & | aStr, |
const wxString & | aAlphabet | ||
) |
Attempt to convert a string to an integer, assuming it is an alphabetic string like "A", "B", ... "Z", "AA", "AB", ... "ZZ", "AAA", ... in some alphabet.
Definition at line 236 of file increment.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and STRING_INCREMENTER::incrementPart().