Navigation
Name
Rascal
/
Libraries
/
Prelude
/
String
/
wrap
Synopsis
word wrap a string to fit in a certain width.
Function
str wrap(str src, int wrapLength)
Usage
import String;
Description
Inserts newlines in a string in order to fit the string in a certain width. It only breaks on spaces (' ').
[
Edit
] | [
New Subconcept
] | [
Recompile Course
] | [
Warnings
]
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit
ask.rascal-mpl.org
.