03-03-2009, 12:54 PM
Member function str.getmultiline
Member function str.leftmultiline
Member function str.rightmultiline
Member function str.insertmultiline
note: everyone can add your own ...
function str'a pos [nc]
int nc1=nc
if(!nc) nc1=a.len
ARRAY(str) b(a)
int i
for i 0 b.len
,b[i].get(b[i] pos nc1)
this=b
this.trim
Member function str.leftmultiline
function str'a nc
ARRAY(str) b(a)
int i
for i 0 b.len
,b[i].left(b[i] nc)
this=b
this.trim
Member function str.rightmultiline
function str'a nc
ARRAY(str) b(a)
int i
for i 0 b.len
,b[i].right(b[i] nc)
this=b
this.trim
Member function str.insertmultiline
function str'a from;; if from<0 add.
ARRAY(str) b(this)
int i
for i 0 b.len
,if(from<0) b[i].insert(a b[i].len)
,else b[i].insert(a from)
this=b
this.trim
note: everyone can add your own ...