Commit graph

13 commits

Author SHA1 Message Date
Florent Le Coz
7d555a62f2 Little logic change 2013-06-20 23:25:53 +02:00
Florent Le Coz
da6c11603c Add a poopt function to cut a string by the number of columns it takes 2013-06-20 22:17:43 +02:00
Florent Le Coz
a92163d173 Fix some compilation warnings in the poopt module 2013-06-20 22:06:33 +02:00
Florent Le Coz
cbe0007249 Exposes the wcswidth function in the poopt module
see #2142
2013-06-19 22:19:08 +02:00
Florent Le Coz
0bcd420602 Consider the number of columns of each characters in the poopt module
Some characters take 0 columns, others take 1 or 2 (full-width characters)

fixes #2142
2013-06-19 22:18:50 +02:00
Florent Le Coz
463ec5ca0d Accept NULL bytes in strings to be cut by the poopt module
fix #2296
2013-06-07 00:04:01 +02:00
Florent Le Coz
5db9144303 Fix a byte value in the utf-8 decoding in poopt. 2012-11-30 15:14:21 +01:00
Florent Le Coz
52fd54d2ff Remove this usell ++-- from poopt 2011-11-23 19:48:12 +01:00
Florent Le Coz
1ccfd09552 poopt now handles correctly the size of the chars by jumping
the color attributes properly and ignoring their length.
2011-11-08 01:52:39 +01:00
Florent Le Coz
c332732d13 Clean a little bit the poopt module, and fix some comments 2011-09-14 13:59:25 +02:00
Florent Le Coz
96794a4e49 Change license to zlib (MIT sucks :() 2011-09-11 17:10:05 +02:00
Florent Le Coz
fa5b5fc45d Make it work. MAY segfault. Need intensive testing.
Should be A. LOT. FASTER. though.
2011-09-09 18:43:20 +02:00
Florent Le Coz
2e04c5c77e c code that doesn’t work 2011-09-08 17:05:02 +02:00