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

substring

String.substring

(from i32, to i32)
 => 
String
create substring of this string consisting of bytes from (inclusive) .. to (exclusive).
Precondition
pre
  debug: 0 ≤ from ≤ to ≤ String.this.byte_length
  debug: from=to || String.is_valid_utf8_first_byte utf8[from]
  debug: from=to || !String.is_multi_byte_start_byte utf8[to-1]
Postcondition
post
  debug 10 : result.codepoints_and_errors ∀ x->x.ok
0.095dev (GIT hash c0597c5e4454e0a756871b577946c51ba77d9fde)
last changed: 2026-04-14