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
0.099dev (GIT hash d73ed58c41900ddb0f9db04a3da9b8f72f3699ad)
last changed: 2026-09-25