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

substring

String.substring

substring(from i64,to i64) => String[src]
create substring of this string consisting of bytes from (inclusive) .. to (exclusive).
Precondition
pre
  debug: 0 ≤ from ≤ to ≤ String.this.byte_count
  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 ∀ (??)

Arguments

from i64[src]
to i64[src]
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23