Mercurial > prosody-hg
diff util/jsonschema.lua @ 13429:6cdc6923d65a
util.strbitop: Add common_prefix_bits() method
This returns the number of bits that two strings have in common. It is
significantly more efficient than similar calculations in Lua.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 23 Feb 2024 12:08:37 +0000 |
| parents | 72d7830505f0 |
| children | eabd38507c1d 7f6916088278 |
