On Mon, Feb 05, 2018 at 05:48:00AM +0000, FrankLike via Digitalmars-d-learn 
> Now,I can get the string from hex string in compile time,but how to
> get it in run time?
> How to get it in run time?

Oh wait, I think I misunderstood your original question. Perhaps this is
closer to what you want:

        import std.algorithm;
        import std.array;
        import std.conv;
        import std.range;

        auto input = "48656c6c6f20776f726c6421";
        auto str = input.chunks(2)
                        .map!(digits => cast(char) digits.to!ubyte(16))
        assert(str == "Hello world!");


Study gravitation, it's a field with a lot of potential.

Reply via email to