Implementation
Pascal

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
int n = s.length();
var n = s.length;
import "unicode/utf8"
n := utf8.RuneCountInString(s)
n = s.length
int n = s.length;
n = s.size
uses LazUtf8;
n := Utf8Length(s);
size_t n = s.length;
std.range;
size_t n = s.walkLength;
import std.uni, std.range;
size_t n = s.byGrapheme.walkLength;
n = len(s)
n = length s
uses sysutils;
n := s.length;
n = String.length s
local n = utf8.len(s)
let n = s.chars().count();
my $n = length( $s );
$n = mb_strlen($s, 'UTF-8');