1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 23:13:44 +00:00
sbase/libutf
FRIGN 73577f10a0 Scrap chartorunearr(), introducing utftorunestr()
Interface and function as proposed by cls.

The reasoning behind this function is that cls expressed his
interest to keep memory allocation out of libutf, which is a
very good motive.
This simplifies the function a lot and should also increase the
speed a bit, but the most important factor here is that there's
no malloc anywhere in libutf, making it a lot smaller and more
robust with a smaller attack-surface.

Look at the paste(1) and tr(1) changes for an idiomatic way to
allocate the right amount of space for the Rune-array.
2015-02-11 21:32:09 +01:00
..
fgetrune.c Rename variable Rune * p -> r in fgetrune() 2015-02-11 21:14:28 +01:00
fputrune.c Scrap writerune(), introducing fputrune() 2015-02-11 20:58:00 +01:00
isalnumrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isalpharune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isblankrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
iscntrlrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isdigitrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isgraphrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isprintrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
ispunctrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isspacerune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
istitlerune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
isxdigitrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
lowerrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
rune.c
runetype.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
runetype.h Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
upperrune.c Split up is*rune() and to*rune() functions into individual source files 2015-02-11 15:48:18 +01:00
utf.c
utftorunestr.c Scrap chartorunearr(), introducing utftorunestr() 2015-02-11 21:32:09 +01:00