Escaping/Encoding.

As in how strings in C, C++, PHP, etc use \n to indicate a new line. 

How you escape can be arbitrarily determined if you are writing the
code. For example, reserve the $ sign as the escape character. $$ gives
you a literal $ in the tag name, $S gives you a space, $Q gives you a
quote, etc. Do this for each character the user can enter that isn't a
valid char for a dictionary name.

Heck, you could even just Base64 Encode it you really wanted to go down
that path and then you could fully support Unicode tag names.
----------------------------------------------------------------

Having said that, the solution could come down to how you need to
process the data.

You could, for instance, organise the file layout differently:

Record ID: Unique ID (like using a GUID in SQL, we have our own SR to do
that here)
<1>: Item ID
<2>: Tag Name
<3>: Tag Value

Using this method it is trivial to select/sort via Item Id, Tag Name or
Tag Value, but sacrifices lookup speed for individual items. Even that
could be partially alleviated though,  by using a secondary index file
keyed on Item ID with Attr1 a MV'ed list of all its records in the
previous file.

Regards,
Dan

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Friday, 10 December 2010 1:28 PM
To: [email protected]
Subject: Re: [U2] Sparse array population in Pick

In a message dated 12/9/2010 6:18:24 PM Pacific Standard Time,
[email protected] writes:


> You could quite easily come up with an escaping scheme to convert any
> tag name into a valid escaped dictionary name.
> 

Could you explain this more clearly?
I don't understand what you mean.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
###########################################################################################
The information transmitted in this message and attachments (if any) is 
intended only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###########################################################################################
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to