The JasPer library provides the following function for processing command-line interface (CLI) options:
Each CLI option is described using an object of the type jas_opt_t. The set of full CLI options is specified as an array of such objects.
A tag-value pair (TVP) is a string of the form "tag=value".
The JasPer library provides functionality for parsing tag-value pairs in strings. This functionality is provided through the jas_tvparser_t class.
When parsing TVPs, each tag is associated with a unique integer ID. The TVP parser represents a parsed TVP using the jas_taginfo_t class, which contains a tag ID and value string.
The JasPer library provides a few functions for performing basic string processing: