* [algs] Declare ARRAY_LENGTH also constexpr so can be used in static contexts
* [algs] Remove more use of ARRAY_LENGTH_CONST
And rename it to ARRAY_LENGTH_UNCHECKED so it will be more obvious
this is the last resort.
* [bit] Avoid use of ARRAY_LENGTH_UNCHECKED
* [algs] Move ARRAY_LENGTH_UNCHECKED to its only caller
* [algs] Return size_t from ARRAY_LENGTH
* [algs] Remove last use of ARRAY_LENGTH_UNCHECKED
* [algs] Use std::extent to get template parameter array length
It makes more sense I think.
* [algs] Make ARRAY_LENGTH usable through template reference parameters
Evaluating ARRAY_LENGTH on a reference parameter is not a constant
expression in C++11. Return std::integral_constant from a function
object so callers can extract the length from the return type without
evaluating the array expression. Ordinary calls still convert to size_t.
Use this form for all three Arabic fallback ligature table dimensions,
replacing std::extent. Document both forms and add compile-time checks
for ordinary calls, string literals, and nested template array arguments.
Validated with GCC and Clang C++11 syntax checks, a full Meson build,
and meson test -C build (296 passed, 1 skipped).
Assisted-by: OpenAI Codex
---------
Co-authored-by: Ebrahim <ebrahim@gnu.org>