aboutsummaryrefslogtreecommitdiff
path: root/text-util.h
AgeCommit message (Collapse)AuthorFilesLines
2025-12-22move all standard library includes into util.hRandy Palamar1-2/+0
2025-12-16mark all functions in headers with VIS_EXPORT or VIS_INTERNALRandy Palamar1-8/+8
if vis actually wants to be a library exported symbols may need mark up depending on the platform (eg. __declspec(dllexport)). This needs to be hidden behind a macro because the way you export is not the same on every platform. I did this based on the assumption that vis.h was supposed to be the only interface to the "vis" library. Since nobody actually uses vis as a library I have no idea if this is actually correct. Anyway marking up all prototypes like this allows for one to convert all functions to static if a single translation unit is used by inserting at the start: #define VIS_INTERNAL static #define VIS_EXPORT static
2025-11-24text-util: convert trivial functions to macrosRandy Palamar1-3/+3
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.
2017-06-15text-util: add text_range_intersect utility functionMarc André Tanner1-0/+2
2016-05-24Add utility function to calculate display width of a stringMarc André Tanner1-0/+2
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/+2
2015-07-28text-util: introduce text_range_equalMarc André Tanner1-0/+2
2015-07-28text-util: add text_range_containsMarc André Tanner1-1/+3
2015-07-28text: move utility functions to separate fileMarc André Tanner1-0/+21