Lines Matching refs:info
118 u_scanf_spec_info *info = &(spec->fInfo); in u_scanf_parse_spec() local
123 info->fWidth = -1; in u_scanf_parse_spec()
124 info->fSpec = 0x0000; in u_scanf_parse_spec()
125 info->fPadChar = 0x0020; in u_scanf_parse_spec()
126 info->fSkipArg = FALSE; in u_scanf_parse_spec()
127 info->fIsLongDouble = FALSE; in u_scanf_parse_spec()
128 info->fIsShort = FALSE; in u_scanf_parse_spec()
129 info->fIsLong = FALSE; in u_scanf_parse_spec()
130 info->fIsLongLong = FALSE; in u_scanf_parse_spec()
131 info->fIsString = TRUE; in u_scanf_parse_spec()
169 info->fSkipArg = TRUE; in u_scanf_parse_spec()
176 info->fPadChar = (UChar)ufmt_digitvalue(*s++); in u_scanf_parse_spec()
177 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*s++)); in u_scanf_parse_spec()
178 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*s++)); in u_scanf_parse_spec()
179 info->fPadChar = (UChar)((info->fPadChar * 16) + ufmt_digitvalue(*s++)); in u_scanf_parse_spec()
190 info->fWidth = (int) (*s++ - DIGIT_ZERO); in u_scanf_parse_spec()
193 info->fWidth *= 10; in u_scanf_parse_spec()
194 info->fWidth += (int) (*s++ - DIGIT_ZERO); in u_scanf_parse_spec()
204 info->fIsShort = TRUE; in u_scanf_parse_spec()
210 info->fIsLongLong = TRUE; in u_scanf_parse_spec()
215 info->fIsLong = TRUE; in u_scanf_parse_spec()
220 info->fIsLongDouble = TRUE; in u_scanf_parse_spec()
226 info->fSpec = *s++; in u_scanf_parse_spec()
297 u_scanf_spec_info *info,
304 ufmt_type_info info; member
375 u_scanf_spec_info *info, in u_scanf_simple_percent_handler() argument
391 u_scanf_spec_info *info, in u_scanf_count_handler() argument
399 if (!info->fSkipArg) { in u_scanf_count_handler()
400 if (info->fIsShort) in u_scanf_count_handler()
401 *(int16_t*)(args[0].ptrValue) = (int16_t)(UINT16_MAX & info->fWidth); in u_scanf_count_handler()
402 else if (info->fIsLongLong) in u_scanf_count_handler()
403 *(int64_t*)(args[0].ptrValue) = info->fWidth; in u_scanf_count_handler()
405 *(int32_t*)(args[0].ptrValue) = (int32_t)(UINT32_MAX & info->fWidth); in u_scanf_count_handler()
415 u_scanf_spec_info *info, in u_scanf_double_handler() argument
430 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_double_handler()
439 if(info->fWidth != -1) in u_scanf_double_handler()
440 len = ufmt_min(len, info->fWidth); in u_scanf_double_handler()
455 if (!info->fSkipArg) { in u_scanf_double_handler()
456 if (info->fIsLong) in u_scanf_double_handler()
458 else if (info->fIsLongDouble) in u_scanf_double_handler()
472 *argConverted = !info->fSkipArg; in u_scanf_double_handler()
480 u_scanf_spec_info *info, in u_scanf_scientific_handler() argument
498 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_scientific_handler()
507 if(info->fWidth != -1) in u_scanf_scientific_handler()
508 len = ufmt_min(len, info->fWidth); in u_scanf_scientific_handler()
526 if (info->fSpec == (UChar)0x65 /* e */) { in u_scanf_scientific_handler()
554 if (!info->fSkipArg) { in u_scanf_scientific_handler()
555 if (info->fIsLong) in u_scanf_scientific_handler()
557 else if (info->fIsLongDouble) in u_scanf_scientific_handler()
571 *argConverted = !info->fSkipArg; in u_scanf_scientific_handler()
577 u_scanf_spec_info *info, in u_scanf_scidbl_handler() argument
601 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_scidbl_handler()
610 if(info->fWidth != -1) in u_scanf_scidbl_handler()
611 len = ufmt_min(len, info->fWidth); in u_scanf_scidbl_handler()
647 if (!info->fSkipArg) { in u_scanf_scidbl_handler()
648 if (info->fIsLong) in u_scanf_scidbl_handler()
650 else if (info->fIsLongDouble) in u_scanf_scidbl_handler()
661 *argConverted = !info->fSkipArg; in u_scanf_scidbl_handler()
667 u_scanf_spec_info *info, in u_scanf_integer_handler() argument
683 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_integer_handler()
692 if(info->fWidth != -1) in u_scanf_integer_handler()
693 len = ufmt_min(len, info->fWidth); in u_scanf_integer_handler()
709 if (!info->fSkipArg) { in u_scanf_integer_handler()
710 if (info->fIsShort) in u_scanf_integer_handler()
712 else if (info->fIsLongLong) in u_scanf_integer_handler()
722 *argConverted = !info->fSkipArg; in u_scanf_integer_handler()
728 u_scanf_spec_info *info, in u_scanf_uinteger_handler() argument
735 return u_scanf_integer_handler(input, info, args, fmt, fmtConsumed, argConverted); in u_scanf_uinteger_handler()
740 u_scanf_spec_info *info, in u_scanf_percent_handler() argument
755 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_percent_handler()
764 if(info->fWidth != -1) in u_scanf_percent_handler()
765 len = ufmt_min(len, info->fWidth); in u_scanf_percent_handler()
780 if (!info->fSkipArg) { in u_scanf_percent_handler()
792 *argConverted = !info->fSkipArg; in u_scanf_percent_handler()
798 u_scanf_spec_info *info, in u_scanf_string_handler() argument
816 if (info->fIsString) { in u_scanf_string_handler()
817 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_string_handler()
829 while( (info->fWidth == -1 || count < info->fWidth) in u_scanf_string_handler()
831 && (!info->fIsString || (c != info->fPadChar && !u_isWhitespace(c)))) in u_scanf_string_handler()
834 if (!info->fSkipArg) { in u_scanf_string_handler()
838 if (info->fWidth > 0) { in u_scanf_string_handler()
839 limit = alias + info->fWidth - count; in u_scanf_string_handler()
861 if (!info->fSkipArg) { in u_scanf_string_handler()
862 if ((info->fWidth == -1 || count < info->fWidth) && isNotEOF) in u_scanf_string_handler()
866 if (info->fIsString) { in u_scanf_string_handler()
875 *argConverted = !info->fSkipArg; in u_scanf_string_handler()
881 u_scanf_spec_info *info, in u_scanf_char_handler() argument
887 if (info->fWidth < 0) { in u_scanf_char_handler()
888 info->fWidth = 1; in u_scanf_char_handler()
890 info->fIsString = FALSE; in u_scanf_char_handler()
891 return u_scanf_string_handler(input, info, args, fmt, fmtConsumed, argConverted); in u_scanf_char_handler()
896 u_scanf_spec_info *info, in u_scanf_ustring_handler() argument
910 if (info->fIsString) { in u_scanf_ustring_handler()
911 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_ustring_handler()
917 while( (info->fWidth == -1 || count < info->fWidth) in u_scanf_ustring_handler()
919 && (!info->fIsString || (c != info->fPadChar && !u_isWhitespace(c)))) in u_scanf_ustring_handler()
923 if (!info->fSkipArg) { in u_scanf_ustring_handler()
932 if (!info->fSkipArg) { in u_scanf_ustring_handler()
933 if((info->fWidth == -1 || count < info->fWidth) && isNotEOF) { in u_scanf_ustring_handler()
938 if (info->fIsString) { in u_scanf_ustring_handler()
944 *argConverted = !info->fSkipArg; in u_scanf_ustring_handler()
950 u_scanf_spec_info *info, in u_scanf_uchar_handler() argument
956 if (info->fWidth < 0) { in u_scanf_uchar_handler()
957 info->fWidth = 1; in u_scanf_uchar_handler()
959 info->fIsString = FALSE; in u_scanf_uchar_handler()
960 return u_scanf_ustring_handler(input, info, args, fmt, fmtConsumed, argConverted); in u_scanf_uchar_handler()
965 u_scanf_spec_info *info, in u_scanf_spellout_handler() argument
980 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_spellout_handler()
989 if(info->fWidth != -1) in u_scanf_spellout_handler()
990 len = ufmt_min(len, info->fWidth); in u_scanf_spellout_handler()
1006 if (!info->fSkipArg) { in u_scanf_spellout_handler()
1018 *argConverted = !info->fSkipArg; in u_scanf_spellout_handler()
1024 u_scanf_spec_info *info, in u_scanf_hex_handler() argument
1036 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_hex_handler()
1045 if(info->fWidth != -1) in u_scanf_hex_handler()
1046 len = ufmt_min(len, info->fWidth); in u_scanf_hex_handler()
1064 if (!info->fSkipArg) { in u_scanf_hex_handler()
1065 if (info->fIsShort) in u_scanf_hex_handler()
1067 else if (info->fIsLongLong) in u_scanf_hex_handler()
1074 *argConverted = !info->fSkipArg; in u_scanf_hex_handler()
1080 u_scanf_spec_info *info, in u_scanf_octal_handler() argument
1092 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_octal_handler()
1101 if(info->fWidth != -1) in u_scanf_octal_handler()
1102 len = ufmt_min(len, info->fWidth); in u_scanf_octal_handler()
1111 if (!info->fSkipArg) { in u_scanf_octal_handler()
1112 if (info->fIsShort) in u_scanf_octal_handler()
1114 else if (info->fIsLongLong) in u_scanf_octal_handler()
1121 *argConverted = !info->fSkipArg; in u_scanf_octal_handler()
1127 u_scanf_spec_info *info, in u_scanf_pointer_handler() argument
1140 skipped = u_scanf_skip_leading_ws(input, info->fPadChar); in u_scanf_pointer_handler()
1149 if(info->fWidth != -1) { in u_scanf_pointer_handler()
1150 len = ufmt_min(len, info->fWidth); in u_scanf_pointer_handler()
1161 if (!info->fSkipArg) { in u_scanf_pointer_handler()
1169 *argConverted = !info->fSkipArg; in u_scanf_pointer_handler()
1175 u_scanf_spec_info *info, in u_scanf_scanset_handler() argument
1196 if(info->fWidth >= 0) { in u_scanf_scanset_handler()
1197 chLeft = info->fWidth; in u_scanf_scanset_handler()
1211 if (!info->fSkipArg) { in u_scanf_scanset_handler()
1241 else if (!info->fSkipArg) { in u_scanf_scanset_handler()
1246 *argConverted = !info->fSkipArg; in u_scanf_scanset_handler()
1247 return (info->fWidth >= 0 ? info->fWidth : INT32_MAX) - chLeft; in u_scanf_scanset_handler()
1311 ufmt_type_info info; in u_scanf_parse() local
1344 info = g_u_scanf_infos[ handlerNum ].info; in u_scanf_parse()
1345 if (info != ufmt_count && u_feof(f)) { in u_scanf_parse()
1352 switch(info) { in u_scanf_parse()