Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rep vs forstr s ss="one[]two[][]four[]"
#2
The second code is dangerous. If this getl is not the first getl in the function, it is possible that parsing does not start from the beginning.

Better use foreach:

str s ss="one[]two[][]four[]"
foreach s ss
,if(s.len=0) continue ;;skip empty
,out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)