digitalmars.D.learn - UTF escape
- Stephen Jones (6/6) Mar 13 2013 Html has xx to access fonts at xxx, does D have something
- Andrej Mitrovic (14/20) Mar 13 2013 No but you can easily create this on your own:
- Brad Anderson (4/10) Mar 13 2013 What Andrej said or you can use the unicode escapes (they are in
- Adam D. Ruppe (3/3) Mar 13 2013 And there's actually some named entities like
Html has &#xxx to access fonts at xxx, does D have something similar? writeln("a"); to Thanks.
Mar 13 2013
On Wednesday, 13 March 2013 at 21:59:54 UTC, Stephen Jones wrote:Html has &#xxx to access fonts at xxx, does D have something similar? writeln("a"); to Thanks.No but you can easily create this on your own: import std.string; import std.stdio; string[dchar] transTable; shared static this() { } void main() { string input = "afoo bfoo"; writeln(input.translate(transTable)); }
Mar 13 2013
On Wednesday, 13 March 2013 at 21:59:54 UTC, Stephen Jones wrote:Html has &#xxx to access fonts at xxx, does D have something similar? writeln("a"); to Thanks.What Andrej said or you can use the unicode escapes (they are in hexadecimal): writeln("\u0061");
Mar 13 2013
And there's actually some named entities like writeln("\© 2014"); works in D.
Mar 13 2013