Thank you very much Ashley for taking the time to offer this solution.
I will have to test its performance.
So I guess that means there's nothing built into Java, huh? Seems like
it would've been a no-brainer to include it as a method in the Character
Ashley Yakeley wrote:
> At 1999-11-03 21:18, Ben Yenko-Martinka wrote:
> >I want the Unicode character to generate the string "\unnnn".
> Somethig like this
> private static final String hex="0123456789ABCDEF";
> public String hexRep(char c)
> return "\\u"+hex.charAt(c >>> 12)+
> hex.charAt((c >>> 8) & 0xF)+
> hex.charAt((c >>> 4) & 0xF)+
> hex.charAt(c & 0xF);
> ...? This is off the top of my head, so it may be buggy...
> Ashley Yakeley, Seattle WA
> Almost empty page: <http://semantic.org/>
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:54 EDT