What about accidentally choosing a codepoint that is already in the text?

I tend to use tab and return for spreadsheet data.

For text that needs to include tabs and returns, I use the ASCII codepoints 
designed for delimiting data; Unit Separator ACSII37, Record Separator ASCII36, 
Group Separator ASCII35, File Separator ASCII34. And before I use them I always 
make sure the text does not contain any of these characters. If it does (for 
example contains a Unit Separator) I tend to see if the text contains 
“<<ASCII37_(the seconds)>>” and if not I’ll replace all Unit Separators in the 
text with “<<ASCII37_(the seconds)>>”. Where (the seconds) is the actual value 
for the seconds. Then I’ll use the ASCII codepoints that were allocated for 
delimiters. And I’ll add my replacement separators at the front of the data 
stream knowing that I can see what that entire string should get replaced with.

My two cents.

Kee Nethery



> On Feb 26, 2019, at 2:10 PM, Kaveh Bazargan via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> My use case might be unusual in that I have several itemdelimiters in the
> same text. I need to record what each one is, but they must not be the
> same. I might be going off topic here, but I thought it is a simple way of
> generating a text that is guaranteed to be unique.
> 
> On Tue, 26 Feb 2019 at 21:51, dunbarxx via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I am missing the point of using an ephemeral and unknown string as an
>> itemDelimiter. The whole point of such a gadget is that it can be used at
>> another time to undo, or redo, whatever data parsing was done earlier.
>> 
>> Is it that the delimiter is stored somewhere, and just for security it is
>> generated in an unpredictable way? But that it still can be recalled as
>> needed? But then, as described, that several unique delimiters in quick
>> succession may be created and used, are these stored as well for future
>> use?
>> 
>> In other words, if a delimiter is created somehow, and data is parsed into
>> items defined by that delimiter, is there any purpose in NOT saving it
>> somewhere?
>> 
>> Craig Newman
>> 
>> 
>> 
>> --
>> Sent from:
>> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> Kaveh Bazargan
> Director
> River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
> <https://twitter.com/kaveh1000> • LinkedIn
> <https://www.linkedin.com/in/bazargankaveh/>
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to