wordwrap - Wraps a string to a given number of characters.
wordwrap(string,width,break,cut)
in: res=<{wordwrap("ààaaaÓ привет Pierre",2,"\n")}>. out: res=ààaaaÓ привет Pierre"). in: res=<{wordwrap("ààaaaÓ 1234 5 hello",2,"<br />\n",true)}>. out: res=àà<br /> aa<br /> aÓ<br /> <br /> 12<br /> 34<br /> <br /> 5 <br /> he<br /> ll<br /> o"). in: res=<{wordwrap("12345",2,"<br />\n")}>. out: res=-1.
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.