Functions | |
int | kate_comment_init (kate_comment *kc) |
int | kate_comment_clear (kate_comment *kc) |
int | kate_comment_add_length (kate_comment *kc, const char *comment, size_t len) |
int | kate_comment_add (kate_comment *kc, const char *comment) |
int | kate_comment_add_tag (kate_comment *kc, const char *tag, const char *value) |
const char * | kate_comment_query (const kate_comment *kc, const char *tag, int count) |
int | kate_comment_query_count (const kate_comment *kc, const char *tag) |
|
Adds a comment to the kate_comment structure. The comment must be of the form "tag=value" The comment tag must be 7 bit ASCII, and may not contain embedded NULs The comment value is UTF-8 and may not contain embedded NULs as the comments ends at the first NUL encountered
|
|
Adds a comment to the kate_comment structure. The comment must be of the form "tag=value" The comment tag must be 7 bit ASCII, and may not contain embedded NULs The comment value is UTF-8 and may contain embedded NULs
|
|
Adds a comment to the kate_comment structure, formatted as "tag=value". The tag must be 7 bit ASCII and comply with Vorbis comment tag rules. The value must be valid UTF-8 text. Neither tag nor value may contain embedded NULs. To embed comments with embedded NUL in the payload, see kate_comment_add_length.
|
|
Destroys a kate_comment structure, it must be initialized again before being used.
|
|
Initializes a kate_comment structure.
|
|
Queries the value of a comment that has the given tag. The tags are case insensitive, so "tag", "TAG", "Tag", and "TaG" are all equivalent. If there are multiple comments with the same tag, count may be used to select which one to return. The number of comments with a given tag may be retrieved using kate_comment_query_count.
|
|
Returns the number of comments with the given tag. The tags are case insensitive, so "tag", "TAG", "Tag", and "TaG" are all equivalent.
|