zencoding 1.0.0

Collection of encodings.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This package provides sub packages which can be used individually:

zencoding:windows949 - Converts windows code page 949 (korean, euc-kr, unified hangul code) to utf using a conversion table.

zencoding

Collection of encodings for the D language. Right now it only has one encoding: Windows code page 949

It also can only decode. If needed an encoder might be added later.

Usage

dub.json

{
    ...
    "dependencies": {
        "zencoding:windows949": "~>1.0.0"
    },
    ...
}
int main(string[] args)
{
    import zencoding.windows949 : fromWindows949;

    const(ubyte)[] cp949 = [0xc0, 0xaf, 0xc0, 0xfa, 0xc0, 0xce, 0xc5, 0xcd,
                            0xc6, 0xe4, 0xc0, 0xcc, 0xbd, 0xba, 0x0a];

    wstring utf16 = fromWindows949(cp949);

    import std.stdio : writeln;
    writeln(utf16);

    return 0;
}

TODO

Use another algorithm instead of the huge look-up table.

Authors:
  • zhad3
Sub packages:
zencoding:windows949
Dependencies:
zencoding:windows949
Versions:
1.0.1 2022-Mar-16
1.0.0 2021-Jun-24
~main 2022-Mar-16
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 367 downloads total

Score:
0.3
Short URL:
zencoding.dub.pm