problem with counting words

Colin Holgate coiin at verizon.net
Sun Oct 12 15:07:33 EDT 2014


Here are some of the relevant parts from the Dictionary entry for ‘word’:

Summary: 
Designates a space-delimited or quoted string as part of a chunk expression.

Comments:
A word is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single word can contain multiple characters and multiple items, but not multiple lines.

Note:Words are delimited by double quotes ("), but not by curved quotes (""). LiveCode does not treat curved quotes as quotes.


Under the Dictionary entry for trueWord it says this:

Summary: 
Designates a string as part of a chunk expression, delimited by Unicode word breaks, as determined by the ICU Library.


There is an imperfection in the Dictionary entry for ‘words’, its comments includes this:

Comments:
A word is a set of characters enclosed by spaces, tabs, or returns.

which doesn’t state anything about the double quotes.


More information about the use-livecode mailing list