Re: Identifying empty lines of text

2018-01-17 Thread J. Landman Gay via use-livecode
On Jan 12, 2018, at 16:48 , David Epstein via use-livecode wrote: I use “the number of words in myString = 0” to test whether a line of text appears empty, since I want a line with only space characters to be understood as empty. But a line of text I pasted from elsewhere contained an invisib

Re: Identifying empty lines of text

2018-01-17 Thread Bob Sneidar via use-livecode
I have a simple function which will return a string with all non-allowed characters stripped from it. function cleanASCII pString, pModeList, pCustomList /* pModeList is a comma delimited list that may contain the following values: "lowercase,uppercase,numbers,tabs,newlines,returns,spac

Re: Identifying empty lines of text

2018-01-12 Thread hh via use-livecode
> hh wrote: > You could try to use (respects UCI word boundaries): > if the num of trueWords in myString is 0 > Works here in LC 7 and later. Sorry: ICU - International Components for Unicode (not UCI). >> I use “the number of words in myString = 0” to test whether >> a line of text appears

Re: Identifying empty lines of text

2018-01-12 Thread hh via use-livecode
You could try to use (respects UCI word boundaries): if the num of trueWords in myString is 0 Works here in LC 7 and later. > I use “the number of words in myString = 0” to test whether > a line of text appears empty, since I want a line with only > space characters to be understood as empty. >

Re: Identifying empty lines of text

2018-01-12 Thread Phil Davis via use-livecode
I wonder if the 202 value would disappear if you did this: put textDecode(the clipboarddata["text"], "utf8") into field 1 I don't know the answer, just putting it out there. Phil Davis On 1/12/18 4:48 PM, David Epstein via use-livecode wrote: I use “the number of words in myString = 0” to

Identifying empty lines of text

2018-01-12 Thread David Epstein via use-livecode
I use “the number of words in myString = 0” to test whether a line of text appears empty, since I want a line with only space characters to be understood as empty. But a line of text I pasted from elsewhere contained an invisible character whose charToNum value is 202, and this was counted as a