hex strings
Ellery Newcomer
ellery-newcomer at utulsa.edu
Wed Jan 26 16:13:28 PST 2011
On 01/26/2011 05:57 PM, spir wrote:
> On 01/26/2011 07:25 PM, Ellery Newcomer wrote:
>> just out of curiosity, does anyone use these and actually mean them to be
>> strings? It seems like I'm invariably writing
>>
>> cast(ubyte[]) x"..."
>
> Super-nice for universal text. Anything you can't type in because of
> non-illimited keyboard size...
>
> Actually had a similar idea, except using in-string delimiters #...#
> instead of a prefix:
> "#xx xxx xxxx xxx#"
> Adds one char compared to D syntax, but allows partially hex-coded string:
> "blah #xx xxxx xxx# blah"
>
> Denis
personally, I always use \uxxxx or \Uxxxxxxxx [and then print it out to
the console, copy it, and paste it back into my code]
More information about the Digitalmars-d-learn
mailing list