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

pad_center

String.pad_center

pad this string at the beginning and at the end with spaces such that its `codepoint_count` is at least `n`.

In case the required number of codepoints to add is odd, the padding at the end will be longer.
Precondition
pre
  debug: n >= 0
Postcondition
post
  debug: result.codepoint_count >= n
  debug: ((result.codepoint_count != n): result = String.this)
0.095dev (GIT hash 6fe4713e6f0ffc9fa21235ced6756ebe4d5da1fe)
last changed: 2026-05-22