by simonask · 1y ago · 0 comments
Here's the implementation in the Rust standard library: https://doc.rust-lang.org/stable/src/core/str/validations.rs...
It even includes an optimized fast path for ASCII, and it works at compile-time as well.
Why are the arguments not three-letter though? I would feel terrible if that was my code.
e.g., https://github.com/mayo-dayo/app/blob/0.4/src/middleware.ts
Just set your editor's line-height.