strbreaklines

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Text/Strs/Chars/Links
Introduced first in SolidGeometry 4.9, Creation date: 2020-03-07, Last change: 2025-09-14

Breaks a text string into paragraphs of a maximum number of chars per line



See Also: , ismemberincell , cell2strlines

Example Illustration

 missing image of strbreaklines(InpStr,numc)

Syntax

OutStr=strbreaklines(InpStr,[numc])

Input Parameter

InpStr: Input String
numc: number of chars per line

Output Parameter

OutStr: Output String

Examples


a='The quick brown fox jumps over the lazy dog. '
a=repmat(a,1,20);
strbreaklines(a,15)
strbreaklines(a,40)
strbreaklines(a,2)




Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21