GithubHelp home page GithubHelp logo

utf8_c99's Introduction

Some tools written in C, only needing C99, for handling UTF-8-encoded text.

You can just copy utf8.h and utf8.c into another project to get the tools.

Read utf8.h for how to use the tools.

Example:

$ cmake -B build -G Ninja
$ cmake --build build
$ ./build/utf8_print "こんにちは世界!"
Direct printf: こんにちは世界!
Hex bytes: E3, 81, 93, E3, 82, 93, E3, 81, AB, E3, 81, A1, E3, 81, AF, E4, B8, 96, E7, 95, 8C, EF, BC, 81
Binary bytes: 11100011, 10000001, 10010011, 11100011, 10000010, 10010011, 11100011, 10000001, 10101011, 11100011, 10000001, 10100001, 11100011, 10000001, 10101111, 11100100, 10111000, 10010110, 11100111, 10010101, 10001100, 11101111, 10111100, 10000001
Unicode codepoints: 00003053, 00003093, 0000306B, 00003061, 0000306F, 00004E16, 0000754C, 0000FF01

utf8_c99's People

Contributors

nightmareci 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.