mblen

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 6 Imported by: 0

README ¶

mblen

Simple CLI for decomposing / inspecting UTF-8 strings.

Installation

Binaries are availible for Darwin (macOS), Linux and Windows on the release page:

https://github.com/donatj/mblen/releases

From Source
go install github.com/donatj/mblen@latest

Examples

$ mblen 🌋
       rune: 🌋
        ord: 127755
byte length: 4
       name: VOLCANO

$ mblen 🇰🇷
       rune: 🇰
        ord: 127472
byte length: 4
       name: REGIONAL INDICATOR SYMBOL LETTER K

       rune: 🇷
        ord: 127479
byte length: 4
       name: REGIONAL INDICATOR SYMBOL LETTER R

Also if no arguments are given it will read from STDIN.

$ echo 日本語 | mblen
       rune: æ—¥
        ord: 26085
byte length: 3
       name: SUN; DAY; DAYTIME

       rune: 本
        ord: 26412
byte length: 3
       name: ROOT, ORIGIN, SOURCE; BASIS

       rune: 語
        ord: 35486
byte length: 3
       name: LANGUAGE, WORDS; SAYING, EXPRESSION

Documentation ¶

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL