Home | History | Annotate | Download | only in glib

Lines Matching full:max_len

706 			  gssize max_len)  
749 if (max_len >= 0 && len > max_len)
751 for (i = 1; i < max_len; i++)
784 * @max_len: the maximum number of bytes to read, or -1, for no maximum or
794 * character (or if @max_len is zero), returns (gunichar)-2;
800 gssize max_len)
804 if (max_len == 0)
807 result = g_utf8_get_char_extended (p, max_len);
1654 gssize max_len)
1661 g_assert (max_len >= 0);
1663 for (p = str; ((p - str) < max_len) && *p; p++)
1674 if (G_UNLIKELY (max_len - (p - str) < 2))
1687 if (G_UNLIKELY (max_len - (p - str) < 3))
1696 if (G_UNLIKELY (max_len - (p - str) < 4))
1732 * @max_len: max bytes to validate, or -1 to go until NUL
1736 * if @str is nul-terminated, then @max_len can be -1, otherwise
1737 * @max_len should be the number of bytes to validate.
1743 * Note that g_utf8_validate() returns %FALSE if @max_len is
1744 * positive and NUL is met before @max_len bytes have been read.
1755 gssize max_len,
1761 if (max_len < 0)
1764 p = fast_validate_len (str, max_len);
1769 if ((max_len >= 0 && p != str + max_len) ||
1770 (max_len < 0 && *p != '\0'))