mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
std.uni: use hexstrings for charset strings
This commit is contained in:
parent
c4daa477ff
commit
89d36e1228
2 changed files with 578 additions and 578 deletions
|
@ -772,7 +772,7 @@ string charsetString(CodepointSet set, string sep=";\n")
|
|||
auto app = appender!(char[])();
|
||||
ubyte[] data = compressIntervals(set.byInterval);
|
||||
assert(CodepointSet(decompressIntervals(data)) == set);
|
||||
formattedWrite(app, "[%(0x%x, %)];", data);
|
||||
formattedWrite(app, "x\"%(%02X%)\";", data);
|
||||
return cast(string) app.data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue