Words are delimited by white space. If HC did not include tabs, CRs, and other characters in addition to space as word delimiters then it was broken and there should be no problem with making LC's implementation correct as you requested.dunbarx wrote: ↑Thu Aug 23, 2018 8:55 pmRichard.
It may be a marginal issue, but if LC considers tabs to be word delimiters and HC does not, the number of words in a particular processed string may give unexpected results. I am constantly taking strings with tabs and counting words. HC would not have condoned that.
OK. I give up (Word delimiting)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: OK. I give up
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: OK. I give up
HC limited itself to returns and spaces.
LC added tabs.
I like tabs, because a great deal of the work I am doing for my current project has much tab delimited text that requires both the counting of words and the isolation of particular words. I do not need to set the itemDel to tab to do this.
Craig
LC added tabs.
I like tabs, because a great deal of the work I am doing for my current project has much tab delimited text that requires both the counting of words and the isolation of particular words. I do not need to set the itemDel to tab to do this.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: OK. I give up (Word delimiting)
I modified the title of this thread, since it may actually be of interest to some, and not just a spate of whining by me.
Craig
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: OK. I give up (Word delimiting)
Nicely done on the thread title. xTalk word parsing is often a murky subject for newcomers. The new thread title will help folks find this useful discussion. Thanks.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn