fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

truncate

String.truncate

max_codepoints i64
)
 => 
String
this String but limited to max_codepoints

if String is longer than max_codepoints '…' is appended
Precondition
pre
  debug: max_codepoints > 0

Arguments

max_codepoints
 i64
0.099dev (GIT hash bf4ead724d7f3fdab43a87b63c17477c916c8995)
last changed: 2026-11-04