Skip to content

Make wxNumberFormatter's helper functions publically available - #25614

Closed
Blake-Madden wants to merge 5 commits into
wxWidgets:masterfrom
Blake-Madden:LeadingZeroes
Closed

Blake-Madden wants to merge 5 commits into
wxWidgets:masterfrom
Blake-Madden:LeadingZeroes

Conversation

@Blake-Madden

Copy link
Copy Markdown
Contributor

No real changes, just exposes wxNumberFormatter's AddThousandsSeparators, RemoveThousandsSeparators, and RemoveTrailingZeroes publicly.

I could use RemoveTrailingZeroes() myself for cleaning up strings from my data importer, and IMO there is real value is making these functions available.

@vadz

vadz commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

I'm not sure about the thousands separators functions, we may need to change their signature if #1781 is finally merged, so I'd rather not make them public now.

@Blake-Madden

Copy link
Copy Markdown
Contributor Author

Only RemoveTrailingZeroes will be public now. This is the function I'm really interested, could be useful to others.

@vadz

vadz commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

Thanks, will merge soon.

@vadz vadz closed this in f305d67 Jul 15, 2025
@Blake-Madden
Blake-Madden deleted the LeadingZeroes branch July 18, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants