More than this length, word wrap 6//7 common string CutStr(string str, Intlen) 8 {Strings s='' 9 10 for(int I=0; i 11 { 12 int r=i % len13 int last=(str。 Length/Length) * Length; 14 if (me!=0 I=last)15 { 16 17 if(r==0)18 { 19s=str。 Substring(i-len,len)“”; 20 } 21 22 } 23 else if(ilast)24 { 25s=str。 Substring (I-1); 26 broken; 27 }28 29 }30 31 Return to S; 32 33} 343 536/*//37//Intercept the string and limit the length of the string.