Lines Matching refs:info

79  * @param info A pointer to a <TT>u_printf_spec_info</TT> struct containing
89 const u_printf_spec_info *info,
93 ufmt_type_info info;
123 const u_printf_spec_info *info,
128 if(info->fShowSign) {
134 if (info->fSpace) {
162 const u_printf_spec_info *info,
167 if(info->fShowSign) {
182 const u_printf_spec_info *info,
196 const u_printf_spec_info *info,
228 if (info->fPrecision != -1 && info->fPrecision < len) {
229 len = info->fPrecision;
232 written = handler->pad_and_justify(context, info, s, len);
246 const u_printf_spec_info *info,
265 written = handler->pad_and_justify(context, info, s, len);
274 const u_printf_spec_info *info,
290 /* if(! info->fIsLongDouble)
305 if(info->fPrecision != -1) {
307 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
309 else if(info->fAlt) {
320 if (info->fShowSign) {
321 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
336 if (info->fShowSign) {
339 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
342 return handler->pad_and_justify(context, info, result, resultLen);
350 const u_printf_spec_info *info,
365 if (info->fIsShort)
367 else if (!info->fIsLongLong)
380 if(info->fPrecision != -1) {
383 unum_setAttribute(format, UNUM_MIN_INTEGER_DIGITS, info->fPrecision);
387 if(info->fShowSign) {
388 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
403 if (info->fShowSign) {
406 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
409 return handler->pad_and_justify(context, info, result, resultLen);
416 const u_printf_spec_info *info,
425 if (info->fIsShort)
427 else if (!info->fIsLongLong)
432 (UBool)(info->fSpec == 0x0078),
433 (info->fPrecision == -1 && info->fZero) ? info->fWidth : info->fPrecision);
436 if(num != 0 && info->fAlt && len < UPRINTF_BUFFER_SIZE - 2) {
440 result[1] = info->fSpec;
444 return handler->pad_and_justify(context, info, result, len);
451 const u_printf_spec_info *info,
460 if (info->fIsShort)
462 else if (!info->fIsLongLong)
468 info->fPrecision == -1 && info->fZero ? info->fWidth : info->fPrecision);
471 if(info->fAlt && result[0] != 0x0030 && len < UPRINTF_BUFFER_SIZE - 1) {
478 return handler->pad_and_justify(context, info, result, len);
485 const u_printf_spec_info *info,
496 if (info->fIsShort)
498 else if (!info->fIsLongLong)
511 if(info->fPrecision != -1) {
514 unum_setAttribute(format, UNUM_MIN_INTEGER_DIGITS, info->fPrecision);
531 return handler->pad_and_justify(context, info, result, resultLen);
538 const u_printf_spec_info *info,
545 ufmt_ptou(result, &len, args[0].ptrValue, TRUE/*, info->fPrecision*/);
547 return handler->pad_and_justify(context, info, result, len);
554 const u_printf_spec_info *info,
573 /* if(! info->fIsLongDouble)
592 if (info->fSpec == (UChar)0x65 /* e */) {
616 if(info->fPrecision != -1) {
618 if (info->fOrigSpec == (UChar)0x65 /* e */ || info->fOrigSpec == (UChar)0x45 /* E */) {
619 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
623 unum_setAttribute(format, UNUM_MAX_FRACTION_DIGITS, info->fPrecision);
626 else if(info->fAlt) {
637 if (info->fShowSign) {
638 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
661 if (info->fShowSign) {
664 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
667 return handler->pad_and_justify(context, info, result, resultLen);
674 const u_printf_spec_info *info,
690 /* if(! info->fIsLongDouble)
705 if(info->fPrecision != -1) {
707 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
709 else if(info->fAlt) {
720 if (info->fShowSign) {
721 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
736 if (info->fShowSign) {
739 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
742 return handler->pad_and_justify(context, info, result, resultLen);
749 const u_printf_spec_info *info,
763 if (info->fPrecision != -1 && info->fPrecision < len) {
764 len = info->fPrecision;
768 written = handler->pad_and_justify(context, info, arg, len);
777 const u_printf_spec_info *info,
788 written = handler->pad_and_justify(context, info, &arg, 1);
797 const u_printf_spec_info *info,
806 memcpy(&scidbl_info, info, sizeof(u_printf_spec_info));
856 const u_printf_spec_info *info,
863 *count = info->fWidth;
872 const u_printf_spec_info *info,
888 /* if(! info->fIsLongDouble)
903 if(info->fPrecision != -1) {
905 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
907 else if(info->fAlt) {
918 if (info->fShowSign) {
919 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
934 if (info->fShowSign) {
937 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
940 return handler->pad_and_justify(context, info, result, resultLen);
1162 typelist[pos] = g_u_printf_infos[ handlerNum ].info;
1220 u_printf_spec_info *info = &(spec.fInfo);
1263 uprv_memset(info, 0, sizeof(*info));
1264 info->fPrecision = -1;
1265 info->fWidth = -1;
1266 info->fPadChar = 0x0020;
1303 info->fLeft = TRUE;
1308 info->fShowSign = TRUE;
1313 info->fShowSign = TRUE;
1314 info->fSpace = TRUE;
1319 info->fAlt = TRUE;
1324 info->fZero = TRUE;
1325 info->fPadChar = 0x0030;
1333 info->fPadChar = (UChar)ufmt_digitvalue(*alias++);
1334 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*alias++));
1335 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*alias++));
1336 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*alias++));
1350 info->fWidth = -2;
1379 info->fWidth = (int) (*alias++ - DIGIT_ZERO);
1382 info->fWidth *= 10;
1383 info->fWidth += (int) (*alias++ - DIGIT_ZERO);
1397 info->fPrecision = -2;
1427 info->fPrecision = (int) (*alias++ - DIGIT_ZERO);
1430 info->fPrecision *= 10;
1431 info->fPrecision += (int) (*alias++ - DIGIT_ZERO);
1442 info->fIsShort = TRUE;
1448 info->fIsLongLong = TRUE;
1453 info->fIsLong = TRUE;
1458 info->fIsLongDouble = TRUE;
1464 info->fSpec = *alias++;
1465 info->fOrigSpec = info->fSpec;
1473 info->fWidth = va_arg(ap, int32_t);
1478 if(info->fWidth < 0) {
1479 info->fWidth *= -1; /* Make positive */
1480 info->fLeft = TRUE;
1485 if(info->fPrecision == -2) {
1488 info->fPrecision = va_arg(ap, int32_t);
1493 if(info->fPrecision < 0)
1494 info->fPrecision = 0;
1497 handlerNum = (uint16_t)(info->fSpec - UPRINTF_BASE_FMT_HANDLERS);
1499 /* query the info function for argument information */
1500 argType = g_u_printf_infos[ handlerNum ].info;
1509 info->fWidth = *written;
1536 info->fWidth = *written;
1546 if (info->fIsLongLong) {
1569 *written += (*handler)(streamHandler, context, formatBundle, info, &args);