Hi Kohei,
Kohei Yoshida schrieb am 23.08.2025 um 03:21:
[..]
It should be fairly trivial to implement the integer mode since all you
have to change is to not allow the decimal separator to be parsed as a
digit character. Here
https://git.libreoffice.org/core/+/refs/heads/master/sc/source/core/data/table3.cxx#119
is where the code retrieves the decimal separator character for the
current locale and plug that into the token parser. Passing an empty
string in lieu of that may be enough to implement the integer mode (in
theory.. please test this!).
I have tried it with manually set values for the parameters of
parsePredefinedToken(). The tests include empty string instead of sUser,
KParseToken::ANY_DIGIT and KParseType::ASC_NUMBER. None of the tests
work. It seems, that the parsePredefinedToken method always uses the
decimal separator that it receives from the Locale of its CharClass.
That would mean, that a natural sort of type 'integer' needs its own
method 'SplitStringInteger'.
Kind regards,
Regina