In practice, people often need to determine whether a character range is ASCII, find ASCII characters within a range that satisfy certain properties, or perform some replacements. I believe that locate is flawed, so existing APIs actually serve as good replacements for those problematic functions. However, I think people need ASCII algorithms rather than writing loops manually. This not only brings certain performance improvements but also avoids mistakenly using ASCII functions as function objects.
In practice, people often need to determine whether a character range is ASCII, find ASCII characters within a range that satisfy certain properties, or perform some replacements. I believe that
locateis flawed, so existing APIs actually serve as good replacements for those problematic functions. However, I think people need ASCII algorithms rather than writing loops manually. This not only brings certain performance improvements but also avoids mistakenly using ASCII functions as function objects.