Home | History | Annotate | Download | only in libxml2

Lines Matching refs:max

194    Append at most @p max characters from @p source to @p target.
197 @param max Maximum number of characters to append.
202 contain the @p target string and the @p source string (at most @p max
210 TRIO_ARGS3((target, max, source),
212 size_t max,
222 if (max > length)
224 strncat(target, source, max - length - 1);
283 Copy at most @p max characters from @p source to @p target.
286 @param max Maximum number of characters to append.
291 contain the @p source string (at most @p max characters).
298 TRIO_ARGS3((target, max, source),
300 size_t max,
305 assert(max > 0); /* Includes != 0 */
307 (void)strncpy(target, source, max - 1);
308 target[max - 1] = (char)0;
356 Duplicate at most @p max characters of @p source.
359 @param max Maximum number of characters to duplicate.
365 trio_duplicate_max TRIO_ARGS2((source, max),
367 size_t max)
372 assert(max > 0);
375 if (length > max)
377 length = max;
451 Compare if two strings up until the first @p max characters are equal.
454 @param max Maximum number of characters to compare.
462 TRIO_ARGS3((first, max, second),
464 size_t max,
472 return (0 == strncmp(first, second, max));
506 Compare if two strings up until the first @p max characters are equal.
509 @param max Maximum number of characters to compare.
517 TRIO_ARGS3((first, max, second),
519 size_t max,
528 return (0 == strncasecmp(first, second, max));
532 while ((*first != NIL) && (*second != NIL) && (cnt <= max))
542 return ((cnt == max) || ((*first == NIL) && (*second == NIL)));
586 @param max Maximum number of characters to format.
596 TRIO_ARGS4((target, max, format, datetime),
598 size_t max,
605 assert(max > 0);
607 return strftime(target, max, format, datetime);
876 Search for a substring in the first @p max characters of a string.
879 @param max Maximum characters to be searched.
886 TRIO_ARGS3((string, max, substring),
888 size_t max,
899 if (size <= max)
901 for (count = 0; count <= max - size; count++)
1788 TRIO_ARGS3((self, max, other),
1790 size_t max,
1796 return trio_equal_max(self->content, max, other->content);
1807 TRIO_ARGS3((self, max, other),
1809 size_t max,
1815 return trio_equal_max(self->content, max, other);
1862 TRIO_ARGS3((self, max, other),
1864 size_t max,
1870 return trio_equal_case_max(self->content, max, other->content);
1881 TRIO_ARGS3((self, max, other),
1883 size_t max,
1889 return trio_equal_case_max(self->content, max, other);
1900 TRIO_ARGS4((self, max, format, datetime),
1902 size_t max,
1908 return trio_format_date_max(self->content, max, format, datetime);