Translations:Extension:Scribunto/Lua reference manual/475/en

See mw.ustring.len for a similar function using Unicode codepoints rather than bytes.