help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

WrapText

Word-wrap a text.

Declaration

Source position: line 0

function WrapText(

  const Line: String;

  const BreakStr: String;

  const BreakChars: TSysCharSet;

  MaxCol: Integer

):String;

function WrapText(

  const Line: String;

  MaxCol: Integer

):String;

Description

WrapText does a wordwrap at column MaxCol of the string in Line. It breaks the string only at characters which are in BreakChars (default whitespace and hyphen) and inserts then the string BreakStr (default the lineending character for the current OS).

See also

StringReplace

  

Replace occurrences of one substring with another in a string.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505