Re: Issue in man page wcscspn.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex & Helge,

At 2022-12-04T21:27:05+0100, Alejandro Colomar wrote:
> On 12/4/22 10:07, Helge Kreutzmann wrote:
> > Issue:    longest initial → initial
> 
> Why?  I believe "longest initial" is fine.

I agree.  POSIX says:

"The wcscspn() function shall compute the length (in wide characters) of
the *maximum initial segment* of the wide-character string pointed to by
ws1 which consists entirely of wide-character codes _not_ from the
wide-character string."[1]

[* emphasis added, _ emphasis in original]

This distinction is important for those who have learned, often the hard
way, the difference between greedy and stingy pattern matches.[2]

Regards,
Branden

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/wcscspn.html
[2] https://www.aivosto.com/regexpr/help/greedy-stingy.html

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux