在 2025-12-17 00:09, Kirill Makurin 写道:
2. string.h

The library provides a few replacements:

- strchr
- strrchr
- strstr
- strpbrk
- strspn
- strcspn
- strtok

These replacements operate correctly on multibyte string. Library also 
implements its own `strtok_r` and `strndup`.

I think this is not a good decision. These functions have dominant use on ASCII strings and should be fast. The fact that they don't handle multi-byte strings correctly is a known limitation, and in that case one should call `mbschr()` etc. instead.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to