Home | History | Annotate | Download | only in io

Lines Matching full:info

81  * @param info A pointer to a <TT>u_printf_spec_info</TT> struct containing
91 const u_printf_spec_info *info,
95 ufmt_type_info info;
125 const u_printf_spec_info *info,
130 if(info->fShowSign) {
136 if (info->fSpace) {
164 const u_printf_spec_info *info,
169 if(info->fShowSign) {
184 const u_printf_spec_info *info,
188 (void)info;
201 const u_printf_spec_info *info,
234 if (info->fPrecision != -1 && info->fPrecision < len) {
235 len = info->fPrecision;
238 written = handler->pad_and_justify(context, info, s, len);
252 const u_printf_spec_info *info,
272 written = handler->pad_and_justify(context, info, s, len);
281 const u_printf_spec_info *info,
297 /* if(! info->fIsLongDouble)
312 if(info->fPrecision != -1) {
314 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
316 else if(info->fAlt) {
327 if (info->fShowSign) {
328 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
343 if (info->fShowSign) {
346 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
349 return handler->pad_and_justify(context, info, result, resultLen);
357 const u_printf_spec_info *info,
372 if (info->fIsShort)
374 else if (!info->fIsLongLong)
387 if(info->fPrecision != -1) {
390 unum_setAttribute(format, UNUM_MIN_INTEGER_DIGITS, info->fPrecision);
394 if(info->fShowSign) {
395 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
410 if (info->fShowSign) {
413 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
416 return handler->pad_and_justify(context, info, result, resultLen);
423 const u_printf_spec_info *info,
433 if (info->fIsShort)
435 else if (!info->fIsLongLong)
440 (UBool)(info->fSpec == 0x0078),
441 (info->fPrecision == -1 && info->fZero) ? info->fWidth : info->fPrecision);
444 if(num != 0 && info->fAlt && len < UPRINTF_BUFFER_SIZE - 2) {
448 result[1] = info->fSpec;
452 return handler->pad_and_justify(context, info, result, len);
459 const u_printf_spec_info *info,
469 if (info->fIsShort)
471 else if (!info->fIsLongLong)
477 info->fPrecision == -1 && info->fZero ? info->fWidth : info->fPrecision);
480 if(info->fAlt && result[0] != 0x0030 && len < UPRINTF_BUFFER_SIZE - 1) {
487 return handler->pad_and_justify(context, info, result, len);
494 const u_printf_spec_info *info,
505 if (info->fIsShort)
507 else if (!info->fIsLongLong)
520 if(info->fPrecision != -1) {
523 unum_setAttribute(format, UNUM_MIN_INTEGER_DIGITS, info->fPrecision);
540 return handler->pad_and_justify(context, info, result, resultLen);
547 const u_printf_spec_info *info,
555 ufmt_ptou(result, &len, args[0].ptrValue, TRUE/*, info->fPrecision*/);
557 return handler->pad_and_justify(context, info, result, len);
564 const u_printf_spec_info *info,
583 /* if(! info->fIsLongDouble)
602 if (info->fSpec == (UChar)0x65 /* e */) {
626 if(info->fPrecision != -1) {
628 if (info->fOrigSpec == (UChar)0x65 /* e */ || info->fOrigSpec == (UChar)0x45 /* E */) {
629 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
633 unum_setAttribute(format, UNUM_MAX_FRACTION_DIGITS, info->fPrecision);
636 else if(info->fAlt) {
647 if (info->fShowSign) {
648 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
671 if (info->fShowSign) {
674 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
677 return handler->pad_and_justify(context, info, result, resultLen);
684 const u_printf_spec_info *info,
700 /* if(! info->fIsLongDouble)
715 if(info->fPrecision != -1) {
717 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
719 else if(info->fAlt) {
730 if (info->fShowSign) {
731 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
746 if (info->fShowSign) {
749 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
752 return handler->pad_and_justify(context, info, result, resultLen);
759 const u_printf_spec_info *info,
774 if (info->fPrecision != -1 && info->fPrecision < len) {
775 len = info->fPrecision;
779 written = handler->pad_and_justify(context, info, arg, len);
788 const u_printf_spec_info *info,
800 written = handler->pad_and_justify(context, info, &arg, 1);
809 const u_printf_spec_info *info,
818 memcpy(&scidbl_info, info, sizeof(u_printf_spec_info));
868 const u_printf_spec_info *info,
878 *count = info->fWidth;
887 const u_printf_spec_info *info,
903 /* if(! info->fIsLongDouble)
918 if(info->fPrecision != -1) {
920 unum_setAttribute(format, UNUM_FRACTION_DIGITS, info->fPrecision);
922 else if(info->fAlt) {
933 if (info->fShowSign) {
934 u_printf_set_sign(format, info, prefixBuffer, &prefixBufferLen, &status);
949 if (info->fShowSign) {
952 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus);
955 return handler->pad_and_justify(context, info, result, resultLen);
1177 typelist[pos] = g_u_printf_infos[ handlerNum ].info;
1235 u_printf_spec_info *info = &(spec.fInfo);
1278 uprv_memset(info, 0, sizeof(*info));
1279 info->fPrecision = -1;
1280 info->fWidth = -1;
1281 info->fPadChar = 0x0020;
1318 info->fLeft = TRUE;
1323 info->fShowSign = TRUE;
1328 info->fShowSign = TRUE;
1329 info->fSpace = TRUE;
1334 info->fAlt = TRUE;
1339 info->fZero = TRUE;
1340 info->fPadChar = 0x0030;
1348 info->fPadChar = (UChar)ufmt_digitvalue(*alias++);
1349 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*alias++));
1350 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*alias++));
1351 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*alias++));
1365 info->fWidth = -2;
1394 info->fWidth = (int) (*alias++ - DIGIT_ZERO);
1397 info->fWidth *= 10;
1398 info->fWidth += (int) (*alias++ - DIGIT_ZERO);
1412 info->fPrecision = -2;
1442 info->fPrecision = (int) (*alias++ - DIGIT_ZERO);
1445 info->fPrecision *= 10;
1446 info->fPrecision += (int) (*alias++ - DIGIT_ZERO);
1457 info->fIsShort = TRUE;
1463 info->fIsLongLong = TRUE;
1468 info->fIsLong = TRUE;
1473 info->fIsLongDouble = TRUE;
1479 info->fSpec = *alias++;
1480 info->fOrigSpec = info->fSpec;
1488 info->fWidth = va_arg(ap, int32_t);
1493 if(info->fWidth < 0) {
1494 info->fWidth *= -1; /* Make positive */
1495 info->fLeft = TRUE;
1500 if(info->fPrecision == -2) {
1503 info->fPrecision = va_arg(ap, int32_t);
1508 if(info->fPrecision < 0)
1509 info->fPrecision = 0;
1512 handlerNum = (uint16_t)(info->fSpec - UPRINTF_BASE_FMT_HANDLERS);
1514 /* query the info function for argument information */
1515 argType = g_u_printf_infos[ handlerNum ].info;
1524 info->fWidth = *written;
1552 info->fWidth = *written;
1563 if (info->fIsLongLong) {
1586 *written += (*handler)(streamHandler, context, formatBundle, info, &args);