File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,36 @@ codepoint
44
55|nimble-version | |nimble-install | |gh-actions |
66
7- TODO
8-
9- This is a Nim project template.
10- You must run command at first.
11-
12- .. code-block :: shell
13-
14- nim c tool/setup.nim
15- tool/setup --author:< yourname> --appname:< application_name>
16-
17- This command replace and rename template strings of this repository.
7+ codepoint prints codepoint of characters.
188
199.. contents :: Table of contents
2010
2111Usage
2212=====
2313
24- TODO
14+ Basic usage.
15+
16+ .. code-block :: shell
17+
18+ $ echo ' hello world' | codepoint
19+ char code_point code_point(hex)
20+ h 104 \U 68
21+ e 101 \U 65
22+ l 108 \U 6C
23+ l 108 \U 6C
24+ o 111 \U 6F
25+ 32 \U 20
26+ w 119 \U 77
27+ o 111 \U 6F
28+ r 114 \U 72
29+ l 108 \U 6C
30+ d 100 \U 64
31+
32+ # Multibyte characters
33+ $ echo ' 寿司' | codepoint
34+ char code_point code_point(hex)
35+ 寿 23551 \U 5BFF
36+ 司 21496 \U 53F8
2537
2638 Installation
2739============
You can’t perform that action at this time.
0 commit comments