Giter Club home page Giter Club logo

swift-mutf8's Introduction

Swift MUTF-8 CI

This library is for those who want to write their own JVM in swift.
It contains mutf-8 string encoding/decoding facilities.

Usage

  • Use MUTF-8.encode(utf8:) to convert a utf8 encoding uint8 array to mutf8 encoding
  • Use MUTF-8.decode(mutf8:) to convert a mutf8 encoding uint8 array back to utf8 encoding

Adding MUTF8 as a Dependency

Add the following line to the dependencies in your Package.swift file:

.package(url: "https://github.com/chfanghr/swift-mutf8", from: "1.0.0"),

Then, include MUTF8 as a dependency for your executable target:

.product(name: "MUTF8", package: "swift-mutf8"),

Known issue(s)

  • Doesn't work correctly when decodes a mutf8 encoded buffer which originally contains emoji

TODO

  • Fix emoji
  • Unit tests

swift-mutf8's People

Contributors

chfanghr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.