Home | History | Annotate | Download | only in io

Lines Matching refs:info

118     u_scanf_spec_info *info = &(spec->fInfo);
123 info->fWidth = -1;
124 info->fSpec = 0x0000;
125 info->fPadChar = 0x0020;
126 info->fSkipArg = FALSE;
127 info->fIsLongDouble = FALSE;
128 info->fIsShort = FALSE;
129 info->fIsLong = FALSE;
130 info->fIsLongLong = FALSE;
131 info->fIsString = TRUE;
169 info->fSkipArg = TRUE;
176 info->fPadChar = (UChar)ufmt_digitvalue(*s++);
177 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*s++));
178 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*s++));
179 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*s++));
190 info->fWidth = (int) (*s++ - DIGIT_ZERO);
193 info->fWidth *= 10;
194 info->fWidth += (int) (*s++ - DIGIT_ZERO);
204 info->fIsShort = TRUE;
210 info->fIsLongLong = TRUE;
215 info->fIsLong = TRUE;
220 info->fIsLongDouble = TRUE;
226 info->fSpec = *s++;
285 * @param info A pointer to a <TT>u_scanf_spec_info</TT> struct containing
297 u_scanf_spec_info *info,
304 ufmt_type_info info;
375 u_scanf_spec_info *info,
391 u_scanf_spec_info *info,
399 if (!info->fSkipArg) {
400 if (info->fIsShort)
401 *(int16_t*)(args[0].ptrValue) = (int16_t)(UINT16_MAX & info->fWidth);
402 else if (info->fIsLongLong)
403 *(int64_t*)(args[0].ptrValue) = info->fWidth;
405 *(int32_t*)(args[0].ptrValue) = (int32_t)(UINT32_MAX & info->fWidth);
415 u_scanf_spec_info *info,
430 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
439 if(info->fWidth != -1)
440 len = ufmt_min(len, info->fWidth);
455 if (!info->fSkipArg) {
456 if (info->fIsLong)
458 else if (info->fIsLongDouble)
465 /* if(! info->fIsLong_double)
472 *argConverted = !info->fSkipArg;
480 u_scanf_spec_info *info,
498 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
507 if(info->fWidth != -1)
508 len = ufmt_min(len, info->fWidth);
526 if (info->fSpec == (UChar)0x65 /* e */) {
554 if (!info->fSkipArg) {
555 if (info->fIsLong)
557 else if (info->fIsLongDouble)
564 /* if(! info->fIsLong_double)
571 *argConverted = !info->fSkipArg;
577 u_scanf_spec_info *info,
601 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
610 if(info->fWidth != -1)
611 len = ufmt_min(len, info->fWidth);
647 if (!info->fSkipArg) {
648 if (info->fIsLong)
650 else if (info->fIsLongDouble)
657 /* if(! info->fIsLong_double)
661 *argConverted = !info->fSkipArg;
667 u_scanf_spec_info *info,
683 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
692 if(info->fWidth != -1)
693 len = ufmt_min(len, info->fWidth);
709 if (!info->fSkipArg) {
710 if (info->fIsShort)
712 else if (info->fIsLongLong)
722 *argConverted = !info->fSkipArg;
728 u_scanf_spec_info *info,
735 return u_scanf_integer_handler(input, info, args, fmt, fmtConsumed, argConverted);
740 u_scanf_spec_info *info,
754 u_scanf_skip_leading_ws(input, info->fPadChar);
763 if(info->fWidth != -1)
764 len = ufmt_min(len, info->fWidth);
779 if (!info->fSkipArg) {
784 /* if(! info->fIsLong_double)
791 *argConverted = !info->fSkipArg;
797 u_scanf_spec_info *info,
815 if (info->fIsString) {
816 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
828 while( (info->fWidth == -1 || count < info->fWidth)
830 && (!info->fIsString || (c != info->fPadChar && !u_isWhitespace(c))))
833 if (!info->fSkipArg) {
837 if (info->fWidth > 0) {
838 limit = alias + info->fWidth - count;
860 if (!info->fSkipArg) {
861 if ((info->fWidth == -1 || count < info->fWidth) && isNotEOF)
865 if (info->fIsString) {
874 *argConverted = !info->fSkipArg;
880 u_scanf_spec_info *info,
886 if (info->fWidth < 0) {
887 info->fWidth = 1;
889 info->fIsString = FALSE;
890 return u_scanf_string_handler(input, info, args, fmt, fmtConsumed, argConverted);
895 u_scanf_spec_info *info,
909 if (info->fIsString) {
910 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
916 while( (info->fWidth == -1 || count < info->fWidth)
918 && (!info->fIsString || (c != info->fPadChar && !u_isWhitespace(c))))
922 if (!info->fSkipArg) {
931 if (!info->fSkipArg) {
932 if((info->fWidth == -1 || count < info->fWidth) && isNotEOF) {
937 if (info->fIsString) {
943 *argConverted = !info->fSkipArg;
949 u_scanf_spec_info *info,
955 if (info->fWidth < 0) {
956 info->fWidth = 1;
958 info->fIsString = FALSE;
959 return u_scanf_ustring_handler(input, info, args, fmt, fmtConsumed, argConverted);
964 u_scanf_spec_info *info,
979 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
988 if(info->fWidth != -1)
989 len = ufmt_min(len, info->fWidth);
1005 if (!info->fSkipArg) {
1010 /* if(! info->fIsLong_double)
1017 *argConverted = !info->fSkipArg;
1023 u_scanf_spec_info *info,
1035 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
1044 if(info->fWidth != -1)
1045 len = ufmt_min(len, info->fWidth);
1063 if (!info->fSkipArg) {
1064 if (info->fIsShort)
1066 else if (info->fIsLongLong)
1073 *argConverted = !info->fSkipArg;
1079 u_scanf_spec_info *info,
1091 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
1100 if(info->fWidth != -1)
1101 len = ufmt_min(len, info->fWidth);
1110 if (!info->fSkipArg) {
1111 if (info->fIsShort)
1113 else if (info->fIsLongLong)
1120 *argConverted = !info->fSkipArg;
1126 u_scanf_spec_info *info,
1139 skipped = u_scanf_skip_leading_ws(input, info->fPadChar);
1148 if(info->fWidth != -1) {
1149 len = ufmt_min(len, info->fWidth);
1160 if (!info->fSkipArg) {
1168 *argConverted = !info->fSkipArg;
1174 u_scanf_spec_info *info,
1195 if(info->fWidth >= 0) {
1196 chLeft = info->fWidth;
1210 if (!info->fSkipArg) {
1240 else if (!info->fSkipArg) {
1245 *argConverted = !info->fSkipArg;
1246 return (info->fWidth >= 0 ? info->fWidth : INT32_MAX) - chLeft;
1310 ufmt_type_info info;
1342 /* query the info function for argument information */
1343 info = g_u_scanf_infos[ handlerNum ].info;
1344 if (info != ufmt_count && u_feof(f)) {
1351 switch(info) {