31#ifndef DIGITGROUPING_H
32#define DIGITGROUPING_H
65std::vector<size_t>
DigitGroupGaps(
const wxString &number,
size_t minDigits,
66 size_t groupSize = 3);
81 const std::vector<std::pair<wxString, bool>> &tokens,
size_t minDigits,
82 size_t groupSize = 3);
std::vector< std::vector< size_t > > DigitGroupGapsInTokens(const std::vector< std::pair< wxString, bool > > &tokens, size_t minDigits, size_t groupSize)
DigitGroupGaps() for code, where a number may span several tokens.
Definition: DigitGrouping.cpp:105
std::vector< size_t > DigitGroupGaps(const wxString &number, size_t minDigits, size_t groupSize)
The indices into number before which a digit-group gap is drawn, ascending.
Definition: DigitGrouping.cpp:55
int LocaleDigitGroupSize()
How many digits a group has: what the C library's LC_NUMERIC locale says, if that is 3 or 4,...
Definition: DigitGrouping.cpp:48
int DigitGroupGapWidth(double fontSize)
How wide a digit-group gap is, in pixels, for text of the given font size.
Definition: DigitGrouping.cpp:41