Lines Matching defs:format
31 * - Multibyte characters (done for format parsing, except scan groups)
985 TRIO_ARGS2((format, indexPointer),
986 TRIO_CONST char *format,
994 number = (int)trio_to_long(&format[index], &tmpformat, BASE_DECIMAL);
995 index = (int)(tmpformat - format);
996 if ((number != 0) && (QUALIFIER_POSITION == format[index++]))
1158 * Parse the format string
1162 TRIO_ARGS5((type, format, parameters, arglist, argarray),
1164 TRIO_CONST char *format,
1217 while (format[index])
1220 if (! isascii(format[index]))
1226 charlen = mblen(&format[index], MB_LEN_MAX);
1231 if (CHAR_IDENTIFIER == format[index++])
1233 if (CHAR_IDENTIFIER == format[index])
1241 currentParam = TrioGetPosition(format, &index);
1263 while (TrioIsQualifier(format[index]))
1265 ch = format[index++];
1292 if (QUALIFIER_DOT == format[index])
1297 if ((QUALIFIER_STAR == format[index])
1299 || (QUALIFIER_PARAM == format[index])
1306 precision = TrioGetPosition(format, &index);
1330 precision = trio_to_long(&format[index],
1333 index = (int)(tmpformat - format);
1342 if ((QUALIFIER_STAR == format[index])
1344 || (QUALIFIER_PARAM == format[index])
1350 base = TrioGetPosition(format, &index);
1374 base = trio_to_long(&format[index],
1379 index = (int)(tmpformat - format);
1399 width = TrioGetPosition(format, &index);
1436 /* &format[index - 1] is used to "rewind" the read
1437 * character from format
1439 width = trio_to_long(&format[index - 1],
1442 index = (int)(tmpformat - format);
1513 if ((format[index] == '6') &&
1514 (format[index + 1] == '4'))
1519 else if ((format[index] == '3') &&
1520 (format[index + 1] == '2'))
1525 else if ((format[index] == '1') &&
1526 (format[index + 1] == '6'))
1531 else if (format[index] == '8')
1634 switch (format[index++])
1667 if (format[index] == QUALIFIER_CIRCUMFLEX)
1669 if (format[index] == SPECIFIER_UNGROUP)
1671 if (format[index] == QUALIFIER_MINUS)
1674 while (format[index] != NIL)
1676 if (format[index] == SPECIFIER_GROUP)
1680 else if (format[index] == SPECIFIER_UNGROUP)
1799 tmpformat = (char *)&format[index];
1801 while ((ch = format[index]))
1822 max = (unsigned int)(&format[index] - tmpformat);
1834 max = (int)(&format[index] - tmpformat);
1840 tmpformat = (char *)&format[index];
1893 } /* while format characters left */
3067 TRIO_ARGS3((data, format, parameters),
3069 TRIO_CONST char *format,
3090 while (format[index])
3093 if (! isascii(format[index]))
3095 charlen = mblen(&format[index], MB_LEN_MAX);
3105 data->OutStream(data, format[index++]);
3111 if (CHAR_IDENTIFIER == format[index])
3113 if (CHAR_IDENTIFIER == format[index + 1])
3369 data->OutStream(data, format[index++]);
3380 TRIO_ARGS4((reference, format, arglist, argarray),
3382 TRIO_CONST char *format,
3389 status = TrioParse(TYPE_PRINT, format, parameters, arglist, argarray);
3393 status = TrioFormatProcess(reference->data, format, parameters);
3406 TRIO_ARGS6((destination, destinationSize, OutStream, format, arglist, argarray),
3410 TRIO_CONST char *format,
3419 assert(VALID(format));
3434 status = TrioParse(TYPE_PRINT, format, parameters, arglist, argarray);
3438 status = TrioFormatProcess(&data, format, parameters);
3621 @param format Formatting string.
3627 TRIO_VARGS2((format, va_alist),
3628 TRIO_CONST char *format,
3634 assert(VALID(format));
3636 TRIO_VA_START(args, format);
3637 status = TrioFormat(stdout, 0, TrioOutStreamFile, format, &args, NULL);
3645 @param format Formatting string.
3651 TRIO_ARGS2((format, args),
3652 TRIO_CONST char *format,
3655 assert(VALID(format));
3657 return TrioFormat(stdout, 0, TrioOutStreamFile, format, &args, NULL);
3663 @param format Formatting string.
3669 TRIO_ARGS2((format, args),
3670 TRIO_CONST char *format,
3673 assert(VALID(format));
3675 return TrioFormat(stdout, 0, TrioOutStreamFile, format, NULL, args);
3686 @param format Formatting string.
3692 TRIO_VARGS3((file, format, va_alist),
3694 TRIO_CONST char *format,
3701 assert(VALID(format));
3703 TRIO_VA_START(args, format);
3704 status = TrioFormat(file, 0, TrioOutStreamFile, format, &args, NULL);
3713 @param format Formatting string.
3719 TRIO_ARGS3((file, format, args),
3721 TRIO_CONST char *format,
3725 assert(VALID(format));
3727 return TrioFormat(file, 0, TrioOutStreamFile, format, &args, NULL);
3734 @param format Formatting string.
3740 TRIO_ARGS3((file, format, args),
3742 TRIO_CONST char *format,
3746 assert(VALID(format));
3748 return TrioFormat(file, 0, TrioOutStreamFile, format, NULL, args);
3759 @param format Formatting string.
3765 TRIO_VARGS3((fd, format, va_alist),
3767 TRIO_CONST char *format,
3773 assert(VALID(format));
3775 TRIO_VA_START(args, format);
3776 status = TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, &args, NULL);
3785 @param format Formatting string.
3791 TRIO_ARGS3((fd, format, args),
3793 TRIO_CONST char *format,
3796 assert(VALID(format));
3798 return TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, &args, NULL);
3805 @param format Formatting string.
3811 TRIO_ARGS3((fd, format, args),
3813 TRIO_CONST char *format,
3816 assert(VALID(format));
3818 return TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, NULL, args);
3826 TRIO_VARGS4((stream, closure, format, va_alist),
3829 TRIO_CONST char *format,
3837 assert(VALID(format));
3839 TRIO_VA_START(args, format);
3842 status = TrioFormat(&data, 0, TrioOutStreamCustom, format, &args, NULL);
3849 TRIO_ARGS4((stream, closure, format, args),
3852 TRIO_CONST char *format,
3858 assert(VALID(format));
3862 return TrioFormat(&data, 0, TrioOutStreamCustom, format, &args, NULL);
3867 TRIO_ARGS4((stream, closure, format, args),
3870 TRIO_CONST char *format,
3876 assert(VALID(format));
3880 return TrioFormat(&data, 0, TrioOutStreamCustom, format, NULL, args);
3891 @param format Formatting string.
3897 TRIO_VARGS3((buffer, format, va_alist),
3899 TRIO_CONST char *format,
3906 assert(VALID(format));
3908 TRIO_VA_START(args, format);
3909 status = TrioFormat(&buffer, 0, TrioOutStreamString, format, &args, NULL);
3919 @param format Formatting string.
3925 TRIO_ARGS3((buffer, format, args),
3927 TRIO_CONST char *format,
3933 assert(VALID(format));
3935 status = TrioFormat(&buffer, 0, TrioOutStreamString, format, &args, NULL);
3944 @param format Formatting string.
3950 TRIO_ARGS3((buffer, format, args),
3952 TRIO_CONST char *format,
3958 assert(VALID(format));
3960 status = TrioFormat(&buffer, 0, TrioOutStreamString, format, NULL, args);
3974 @param format Formatting string.
3980 TRIO_VARGS4((buffer, max, format, va_alist),
3983 TRIO_CONST char *format,
3990 assert(VALID(format));
3992 TRIO_VA_START(args, format);
3994 TrioOutStreamStringMax, format, &args, NULL);
4006 @param format Formatting string.
4012 TRIO_ARGS4((buffer, max, format, args),
4015 TRIO_CONST char *format,
4021 assert(VALID(format));
4024 TrioOutStreamStringMax, format, &args, NULL);
4035 @param format Formatting string.
4041 TRIO_ARGS4((buffer, max, format, args),
4044 TRIO_CONST char *format,
4050 assert(VALID(format));
4053 TrioOutStreamStringMax, format, NULL, args);
4066 TRIO_VARGS4((buffer, max, format, va_alist),
4069 TRIO_CONST char *format,
4076 TRIO_VA_START(args, format);
4079 assert(VALID(format));
4085 TrioOutStreamStringMax, format, &args, NULL);
4093 TRIO_ARGS4((buffer, max, format, args),
4096 TRIO_CONST char *format,
4103 assert(VALID(format));
4108 TrioOutStreamStringMax, format, &args, NULL);
4120 TRIO_VARGS2((format, va_alist),
4121 TRIO_CONST char *format,
4128 assert(VALID(format));
4133 TRIO_VA_START(args, format);
4135 format, &args, NULL);
4148 TRIO_ARGS2((format, args),
4149 TRIO_CONST char *format,
4155 assert(VALID(format));
4161 format, &args, NULL);
4171 TRIO_VARGS3((result, format, va_alist),
4173 TRIO_CONST char *format,
4180 assert(VALID(format));
4191 TRIO_VA_START(args, format);
4193 format, &args, NULL);
4207 TRIO_ARGS3((result, format, args),
4209 TRIO_CONST char *format,
4215 assert(VALID(format));
4227 format, &args, NULL);
4918 TRIO_VARGS3((ref, format, va_alist),
4920 TRIO_CONST char *format,
4926 assert(VALID(format));
4928 TRIO_VA_START(arglist, format);
4929 status = TrioFormatRef((trio_reference_t *)ref, format, &arglist, NULL);
4939 TRIO_ARGS3((ref, format, arglist),
4941 TRIO_CONST char *format,
4944 assert(VALID(format));
4946 return TrioFormatRef((trio_reference_t *)ref, format, &arglist, NULL);
4954 TRIO_ARGS3((ref, format, argarray),
4956 TRIO_CONST char *format,
4959 assert(VALID(format));
4961 return TrioFormatRef((trio_reference_t *)ref, format, NULL, argarray);
5163 TRIO_ARGS4((format, indexPointer, flagsPointer, characterclass),
5164 TRIO_CONST char *format,
5177 if (format[index] == QUALIFIER_CIRCUMFLEX)
5187 if (format[index] == SPECIFIER_UNGROUP)
5196 if (format[index] == QUALIFIER_MINUS)
5202 for (ch = format[index];
5204 ch = format[++index])
5223 range_begin = format[index - 1];
5224 range_end = format[++index];
5247 switch (format[index + 1])
5257 if (format[i] == NIL)
5260 else if (format[i] == QUALIFIER_DOT)
5263 if (format[++i] != SPECIFIER_UNGROUP)
5282 if (format[i] == NIL)
5285 else if (format[i] == QUALIFIER_EQUAL)
5290 k = (unsigned int)format[i];
5295 if (format[++i] != SPECIFIER_UNGROUP)
5305 &format[index]))
5313 &format[index]))
5321 &format[index]))
5329 &format[index]))
5337 &format[index]))
5345 &format[index]))
5353 &format[index]))
5361 &format[index]))
5369 &format[index]))
5377 &format[index]))
5385 &format[index]))
6032 TRIO_ARGS3((data, format, parameters),
6034 TRIO_CONST char *format,
6043 int index; /* Index of format string */
6059 while (format[index])
6062 if (! isascii(format[index]))
6064 charlen = mblen(&format[index], MB_LEN_MAX);
6067 /* Compare multibyte characters in format string */
6070 if (ch != format[index + cnt])
6086 if (CHAR_IDENTIFIER == format[index])
6088 if (CHAR_IDENTIFIER == format[index + 1])
6090 /* Two % in format matches one % in input stream */
6095 continue; /* while format chars left */
6226 while (format[index] != SPECIFIER_GROUP)
6234 rc = TrioGetCharacterClass(format,
6345 if (isspace((int)format[index]))
6350 else if (ch == format[index])
6368 TRIO_ARGS6((source, sourceSize, InStream, format, arglist, argarray),
6372 TRIO_CONST char *format,
6381 assert(VALID(format));
6396 status = TrioParse(TYPE_SCAN, format, parameters, arglist, argarray);
6400 status = TrioScanProcess(&data, format, parameters);
6567 @param format Formatting string.
6573 TRIO_VARGS2((format, va_alist),
6574 TRIO_CONST char *format,
6580 assert(VALID(format));
6582 TRIO_VA_START(args, format);
6585 format, &args, NULL);
6592 TRIO_ARGS2((format, args),
6593 TRIO_CONST char *format,
6596 assert(VALID(format));
6600 format, &args, NULL);
6605 TRIO_ARGS2((format, args),
6606 TRIO_CONST char *format,
6609 assert(VALID(format));
6613 format, NULL, args);
6621 TRIO_VARGS3((file, format, va_alist),
6623 TRIO_CONST char *format,
6630 assert(VALID(format));
6632 TRIO_VA_START(args, format);
6635 format, &args, NULL);
6642 TRIO_ARGS3((file, format, args),
6644 TRIO_CONST char *format,
6648 assert(VALID(format));
6652 format, &args, NULL);
6657 TRIO_ARGS3((file, format, args),
6659 TRIO_CONST char *format,
6663 assert(VALID(format));
6667 format, NULL, args);
6675 TRIO_VARGS3((fd, format, va_alist),
6677 TRIO_CONST char *format,
6683 assert(VALID(format));
6685 TRIO_VA_START(args, format);
6688 format, &args, NULL);
6695 TRIO_ARGS3((fd, format, args),
6697 TRIO_CONST char *format,
6700 assert(VALID(format));
6704 format, &args, NULL);
6709 TRIO_ARGS3((fd, format, args),
6711 TRIO_CONST char *format,
6714 assert(VALID(format));
6718 format, NULL, args);
6726 TRIO_VARGS4((stream, closure, format, va_alist),
6729 TRIO_CONST char *format,
6737 assert(VALID(format));
6739 TRIO_VA_START(args, format);
6742 status = TrioScan(&data, 0, TrioInStreamCustom, format, &args, NULL);
6749 TRIO_ARGS4((stream, closure, format, args),
6752 TRIO_CONST char *format,
6758 assert(VALID(format));
6762 return TrioScan(&data, 0, TrioInStreamCustom, format, &args, NULL);
6767 TRIO_ARGS4((stream, closure, format, args),
6770 TRIO_CONST char *format,
6776 assert(VALID(format));
6780 return TrioScan(&data, 0, TrioInStreamCustom, format, NULL, args);
6788 TRIO_VARGS3((buffer, format, va_alist),
6790 TRIO_CONST char *format,
6797 assert(VALID(format));
6799 TRIO_VA_START(args, format);
6802 format, &args, NULL);
6809 TRIO_ARGS3((buffer, format, args),
6811 TRIO_CONST char *format,
6815 assert(VALID(format));
6819 format, &args, NULL);
6824 TRIO_ARGS3((buffer, format, args),
6826 TRIO_CONST char *format,
6830 assert(VALID(format));
6834 format, NULL, args);