by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Text/Strs/Chars/Links
Introduced first in SolidGeometry 4.6, Creation date: 2019-05-10, Last change: 2025-09-14
See Also: SGofCPLcommand
, fprintfvec2
, fprintfvec
, sprintfvec
[clstr]=str2codelines(Str,[ll,fle])
Str: | string to break into lines | |
ll: | maximum length of line | |
fle: | reduced number of chars if 1st line or string |
[clstr]: | String broken into code lines |
str2codelines(['The quick brown fox ',...
'jumps over the lazy dog'],10)
str2codelines(['b 5 5,h 4.5,roty 90,move -4.5 0 0,save B,enter,b 3 5,enter,d 5 1.5 0,+,h',...
' 1.5,save A,move 1.5 0 -2.5,dups 1 1 2 2,+,enter,d 2.5 3 0,h 10,move 0 0',...
' -5,-,enter,load A,rotz 180,move 4.5 0 -'])