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
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
> 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
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.
>
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
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