Skip to content

Commit 22a9aef

Browse files
committed
add usage
1 parent 9df6d27 commit 22a9aef

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

README.rst

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff 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

2111
Usage
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 \U68
21+
e 101 \U65
22+
l 108 \U6C
23+
l 108 \U6C
24+
o 111 \U6F
25+
32 \U20
26+
w 119 \U77
27+
o 111 \U6F
28+
r 114 \U72
29+
l 108 \U6C
30+
d 100 \U64
31+
32+
# Multibyte characters
33+
$ echo '寿司' | codepoint
34+
char code_point code_point(hex)
35+
寿 23551 \U5BFF
36+
司 21496 \U53F8
2537
2638
Installation
2739
============

0 commit comments

Comments
 (0)