1TICKIT_STRINGPOS_LIMIT_BYTESL(i3b)rary Functions ManTuIaClKIT_STRINGPOS_LIMIT_BYTES(3)
2
3
4

NAME

6       tickit_stringpos_limit_...  - set limit fields in string position coun‐
7       ters
8

SYNOPSIS

10       #include <tickit.h>
11
12       void tickit_stringpos_limit_bytes(TickitStringPos *pos, size_t bytes);
13       void tickit_stringpos_limit_codepoints(TickitStringPos *pos, int codepoints);
14       void tickit_stringpos_limit_graphemes(TickitStringPos *pos, int graphemes);
15       void tickit_stringpos_limit_columns(TickitStringPos *pos, int columns);
16       void tickit_stringpos_limit_none(TickitStringPos *pos);
17
18       #define INIT_TICKIT_STRINGPOS_LIMIT_BYTES(bytes)
19       #define INIT_TICKIT_STRINGPOS_LIMIT_CODEPOINTS(codepoints)
20       #define INIT_TICKIT_STRINGPOS_LIMIT_GRAPHEMES(grahpemes)
21       #define INIT_TICKIT_STRINGPOS_LIMIT_COLUMNS(columns)
22       #define INIT_TICKIT_STRINGPOS_LIMIT_NONE
23
24       Link with -ltickit.
25

DESCRIPTION

27       The first four of these functions each set one of the counter fields in
28       pos  to  the  given value, and the other three to -1. This is useful to
29       create   a   limit   counter   to    stop    tickit_utf8_count(3)    or
30       tickit_utf8_countmore(3) at the given position. The final function ini‐
31       tialises all four fields to -1.
32
33       Each is also available as a macro which can be used to initialise a new
34       TickitStringPos variable.
35
36         TickitStringPos limit = INIT_TICKIT_STRINGPOS_LIMIT_BYTES(b);
37

RETURN VALUE

39       The  functions  all return no value. The macros expand to a struct ini‐
40       tialiser expression.
41

SEE ALSO

43       tickit_utf8_count(3), tickit_stringpos_zero(3), tickit(7)
44
45
46
47                                               TICKIT_STRINGPOS_LIMIT_BYTES(3)
Impressum