71 std::optional<wxString> Increment(
const wxString& aStr,
int aDelta,
size_t aRightIndex )
const;
81 bool incrementPart( wxString& aPart, STRING_PART_TYPE aType,
int aDelta )
const;
83 bool m_SkipIOSQXZ =
true;
84 int m_AlphabeticMaxIndex = 50;
106 bool aZeroBasedNonUnitCols );
Heuristically increment a string's n'th part from the right.
void SetAlphabeticMaxIndex(int aMaxIndex)
Set the maximum index for alphabetic parts.
void SetSkipIOSQXZ(bool aSkip)
If a alphabetic part is found, skip the letters I, O, S, Q, X, Z.
KICOMMON_API wxString AlphabeticFromIndex(size_t aN, const wxString &aAlphabet, bool aZeroBasedNonUnitCols)
Get an alphabetic string like A, B, ... Z, AA, AB, ... ZZ, AAA, ...
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",...
KICOMMON_API bool IncrementString(wxString &aStr, int aDelta)
Generic string incrementer.