#endif // _di_f_utf_character_is_whitespace_
#ifndef _di_f_utf_character_to_char_
- f_return_status f_utf_character_to_char(const f_utf_character utf_character, f_string *character, unsigned short *max_width) {
+ f_return_status f_utf_character_to_char(const f_utf_character utf_character, f_string *character, uint8_t *max_width) {
#ifndef _di_level_0_parameter_checking_
if (utf_character == 0) return f_status_set_error(f_invalid_parameter);
if (max_width == 0 && *character != 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_f_utf_is_big_endian_
#ifndef _di_f_utf_is_
- f_return_status f_utf_is(const f_string character, const unsigned short max_width) {
+ f_return_status f_utf_is(const f_string character, const uint8_t max_width) {
#ifndef _di_level_0_parameter_checking_
if (max_width < 1) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
- unsigned short width = f_macro_utf_byte_width_is(*character);
+ uint8_t width = f_macro_utf_byte_width_is(*character);
if (width == 0) {
return f_false;
#endif // _di_f_utf_is_
#ifndef _di_f_utf_is_control_
- f_return_status f_utf_is_control(const f_string character, const unsigned short max_width) {
+ f_return_status f_utf_is_control(const f_string character, const uint8_t max_width) {
#ifndef _di_level_0_parameter_checking_
if (max_width < 1) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_control_
#ifndef _di_f_utf_is_control_picture_
- f_return_status f_utf_is_control_picture(const f_string character, const unsigned short max_width) {
+ f_return_status f_utf_is_control_picture(const f_string character, const uint8_t max_width) {
#ifndef _di_level_0_parameter_checking_
if (max_width < 1) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_control_picture_
#ifndef _di_f_utf_is_graph_
- f_return_status f_utf_is_graph(const f_string character, const unsigned short max_width) {
+ f_return_status f_utf_is_graph(const f_string character, const uint8_t max_width) {
#ifndef _di_level_0_parameter_checking_
if (max_width < 1) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_graph_
#ifndef _di_f_utf_is_whitespace_
- f_return_status f_utf_is_whitespace(const f_string character, const unsigned short max_width) {
+ f_return_status f_utf_is_whitespace(const f_string character, const uint8_t max_width) {
#ifndef _di_level_0_parameter_checking_
if (max_width < 1) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
- unsigned short width = f_macro_utf_byte_width_is(*character);
+ uint8_t width = f_macro_utf_byte_width_is(*character);
if (width == 0) {
if (isspace(*character)) {
#endif // _di_f_utf_is_whitespace_
#ifndef _di_f_utf_char_to_character_
- f_return_status f_utf_char_to_character(const f_string character, const unsigned short max_width, f_utf_character *character_utf) {
+ f_return_status f_utf_char_to_character(const f_string character, const uint8_t max_width, f_utf_character *character_utf) {
#ifndef _di_level_0_parameter_checking_
if (max_width < 1) return f_status_set_error(f_invalid_parameter);
if (character_utf == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
- unsigned short width = f_macro_utf_byte_width_is(*character);
+ uint8_t width = f_macro_utf_byte_width_is(*character);
if (width == 0) {
*character_utf = f_macro_utf_character_from_char_1(character[0]);
* f_failure (with error bit) if width is not long enough to convert.
*/
#ifndef _di_f_utf_character_to_char_
- extern f_return_status f_utf_character_to_char(const f_utf_character utf_character, f_string *character, unsigned short *max_width);
+ extern f_return_status f_utf_character_to_char(const f_utf_character utf_character, f_string *character, uint8_t *max_width);
#endif // _di_f_utf_character_to_char_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_utf_is_
- extern f_return_status f_utf_is(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_
/**
* @see iscntrl()
*/
#ifndef _di_f_utf_is_control_
- extern f_return_status f_utf_is_control(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is_control(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_control_
/**
* f_incomplete_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_control_picture_
- extern f_return_status f_utf_is_control_picture(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is_control_picture(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_control_picture_
/**
* @see f_utf_character_is_valid()
*/
#ifndef _di_f_utf_is_fragment_
- extern f_return_status f_utf_is_fragment(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is_fragment(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_fragment_
/**
* @see iscntrl()
*/
#ifndef _di_f_utf_is_graph_
- extern f_return_status f_utf_is_graph(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is_graph(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_graph_
/**
* @see f_utf_is_fragment()
*/
#ifndef _di_f_utf_is_valid_
- extern f_return_status f_utf_is_valid(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is_valid(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_valid_
/**
* @see iscntrl()
*/
#ifndef _di_f_utf_is_whitespace_
- extern f_return_status f_utf_is_whitespace(const f_string character, const unsigned short max_width);
+ extern f_return_status f_utf_is_whitespace(const f_string character, const uint8_t max_width);
#endif // _di_f_utf_is_whitespace_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_char_to_character_
- extern f_return_status f_utf_char_to_character(const f_string character, const unsigned short max_width, f_utf_character *character_utf);
+ extern f_return_status f_utf_char_to_character(const f_string character, const uint8_t max_width, f_utf_character *character_utf);
#endif // _di_f_utf_char_to_character_
#ifdef __cplusplus