~begs/hru

c39a70e3 — Maxim Karasev 11 months ago master 1.1
*.[ch]: calculate grunt string size at program start

Saves a lot of CPU cycles.
d11d3169 — Maxim Karasev 11 months ago
grunt.c: get rid of utf8proc_isupper()

Slightly improves performance.
6d957188 — Maxim Karasev 11 months ago
*.[ch]: stop using separate string for result

Now original string is overwriten by result codepoint by codepoint. It
should be a bit more performant, and also simplifies usage.
10c51c23 — Maxim Karasev 11 months ago
grunt.[ch]: optimize

Merge a small and reasonless function to parent one.
9bf3579a — Maxim Karasev 11 months ago
Makefile: link main.c with grunt.c
b435d1d0 — Maxim Karasev 11 months ago
*.[ch]: split from hru.c
7ec06b07 — Maxim Karasev 11 months ago
hru.c: improve function naming
0b37bb7b — Maxim Karasev 11 months ago
Makefile: use libutf8proc instead of utf8proc

It seems that utf8proc.pc is provided on Alpine only and just for
compatibility reasons. libutf8proc.pc is used by upstream and all other
distros.
918b7321 — Maxim Karasev 11 months ago
hru.c: improve input/output handling

Last byte of input was being ignored, so I added newline manually via
printf. Also that behavior caused weird artifacts sometimes. Now it's
fixed and fwrite is used instead of printf to improve performance and
avoid buffering.
6413818b — Maxim Karasev 11 months ago
README.md: add a note about my APKBUILD
46ad3ef6 — Maxim Karasev 11 months ago 1.0
Makefile: allow overriding DESTDIR and pkg-config
cf9b7c9b — Maxim Karasev 11 months ago
Makefile: add manpage generation and installation
7dd47de5 — Maxim Karasev 11 months ago
.gitignore: add hru.1 aka manpage generated by scdoc
3648da4c — Maxim Karasev 11 months ago
hru.1.scd: add scdoc manpage
41ca0dc1 — Maxim Karasev 11 months ago
README.md: add readme with some info
52a5584a — Maxim Karasev 11 months ago
hru.c: split main to smaller functions
7a6ebb0a — Maxim Karasev 11 months ago
hru.c: use struct to store grunt strings
2826af26 — Maxim Karasev 11 months ago
hru.c: add some comments
b6918c18 — Maxim Karasev 11 months ago
hru.c: make cyr_isalpha() a bool and add missing codes
82480070 — Maxim Karasev 11 months ago
hru.c: run clang-format
Next