GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TICKIT_STRINGPOS_LIMIT_BYTES(3) FreeBSD Library Functions Manual TICKIT_STRINGPOS_LIMIT_BYTES(3)

tickit_stringpos_limit_... - set limit fields in string position counters

#include <tickit.h>

void tickit_stringpos_limit_bytes(TickitStringPos *pos, size_t bytes);
void tickit_stringpos_limit_codepoints(TickitStringPos *pos, int codepoints);
void tickit_stringpos_limit_graphemes(TickitStringPos *pos, int graphemes);
void tickit_stringpos_limit_columns(TickitStringPos *pos, int columns);
void tickit_stringpos_limit_none(TickitStringPos *pos);

#define INIT_TICKIT_STRINGPOS_LIMIT_BYTES(bytes)
#define INIT_TICKIT_STRINGPOS_LIMIT_CODEPOINTS(codepoints)
#define INIT_TICKIT_STRINGPOS_LIMIT_GRAPHEMES(grahpemes)
#define INIT_TICKIT_STRINGPOS_LIMIT_COLUMNS(columns)
#define INIT_TICKIT_STRINGPOS_LIMIT_NONE

Link with -ltickit.

The first four of these functions each set one of the counter fields in pos to the given value, and the other three to -1. This is useful to create a limit counter to stop tickit_utf8_count(3) or tickit_utf8_countmore(3) at the given position. The final function initialises all four fields to -1.

Each is also available as a macro which can be used to initialise a new TickitStringPos variable.

  TickitStringPos limit = INIT_TICKIT_STRINGPOS_LIMIT_BYTES(b);

The functions all return no value. The macros expand to a struct initialiser expression.

tickit_utf8_count(3), tickit_stringpos_zero(3), tickit(7)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.