aboutsummaryrefslogtreecommitdiff
path: root/text-util.c
AgeCommit message (Collapse)AuthorFilesLines
2025-11-24text-util: convert trivial functions to macrosRandy Palamar1-12/+0
This would be less of an issue if vis was compiled as a single translation unit but even then compiler may not inline them if they are not marked as static.
2018-03-11Reset parsing state after mbrtowc(3) failureMarc André Tanner1-0/+2
The standard says "if an encoding error occurs ... the conversion state is unspecified".
2017-06-15text-util: add text_range_intersect utility functionMarc André Tanner1-0/+6
2017-06-15text-util: change definition of range intersectionMarc André Tanner1-1/+1
Adjacent ranges do not overlap.
2016-10-05Fix various issues reported by coverity scanMarc André Tanner1-2/+1
2016-05-24Add utility function to calculate display width of a stringMarc André Tanner1-0/+38
This is based on the implementation of text_line_width_get from text-motions.c. There might be an opportunity for code sharing.
2016-03-30text-util: constify text_range_* functionsMarc André Tanner1-6/+6
2015-11-23vis: improve replacement of combining charactersMarc André Tanner1-0/+29
2015-07-28text-util: introduce text_range_equalMarc André Tanner1-0/+6
2015-07-28text-util: add text_range_containsMarc André Tanner1-0/+4
2015-07-28text: move utility functions to separate fileMarc André Tanner1-0/+38