Functions | |
| int | kate_text_get_character (kate_text_encoding text_encoding, const char **const text, size_t *len0) |
| int | kate_text_set_character (kate_text_encoding text_encoding, int c, char **const text, size_t *len0) |
| int | kate_text_remove_markup (kate_text_encoding text_encoding, char *text, size_t *len0) |
| int | kate_text_validate (kate_text_encoding text_encoding, const char *text, size_t len0) |
| int kate_text_get_character | ( | kate_text_encoding | text_encoding, | |
| const char **const | text, | |||
| size_t * | len0 | |||
| ) |
Reads a code point from the string, advancing the text pointer to the next one.
| text_encoding | the character encoding the text is coded in
|
References KATE_E_INVALID_PARAMETER, KATE_E_TEXT, and kate_utf8.
Referenced by kate_tracker_init().
| int kate_text_remove_markup | ( | kate_text_encoding | text_encoding, | |
| char * | text, | |||
| size_t * | len0 | |||
| ) |
Removes markup from the given text.
| text_encoding | the character encoding the text is coded in
|
References KATE_E_INVALID_PARAMETER, and kate_utf8.
| int kate_text_set_character | ( | kate_text_encoding | text_encoding, | |
| int | c, | |||
| char **const | text, | |||
| size_t * | len0 | |||
| ) |
Writes a code point to the given string, advancing the text pointer to the next byte.
| text_encoding | the character encoding the text is coded in
|
References KATE_E_INVALID_PARAMETER, KATE_E_TEXT, and kate_utf8.
| int kate_text_validate | ( | kate_text_encoding | text_encoding, | |
| const char * | text, | |||
| size_t | len0 | |||
| ) |
Validates text for the given character encoding, flagging partial sequences and invalid sequences.
| text_encoding | the character encoding the text is coded in
|
References KATE_E_INVALID_PARAMETER, KATE_E_TEXT, and kate_utf8.
Referenced by kate_comment_add_length(), kate_encode_text_raw_times(), and kate_meta_add_string().
1.6.3