|
| From: | Pádraig Brady |
| Subject: | Re: numfmt: Add option --space-separated |
| Date: | Sun, 19 Oct 2025 14:31:13 +0100 |
| User-agent: | Mozilla Thunderbird Beta |
On 18/10/2025 22:05, Collin Funk wrote:
Pádraig Brady <P@draigBrady.com> writes:There were various other multi-byte blanks issues, and multi-byte issues in general when I looked further. The attached 3 further patches should make numfmt fully support multi-byte.numfmt is a nice case where we don't need to optimize MB_CUR_MAX == 1, thanks.
Right. But that got me thinking that we could optimize in various cases, rather than resorting to mbsstr(). The attached implements mbsmbchr(mbs, mbc) to more efficiently search for a multi-byte char in a multi-byte string, especially with the usual UTF-8 charset (which is determined with a single call to mbrtoc32() call per process). cheers, Padraig
mbsmbchr.diff
Description: Text Data
| [Prev in Thread] | Current Thread | [Next in Thread] |