/external/libpcap/ |
D | bpf_image.c | 46 const char *fmt, *op; local 55 fmt = "0x%x"; 61 fmt = "#%d"; 66 fmt = ""; 71 fmt = "[%d]"; 76 fmt = "[%d]"; 81 fmt = "[%d]"; 86 fmt = "#pktlen"; 91 fmt = "[x + %d]"; 96 fmt = "[x + %d]"; [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
D | SDL_blit.h | 89 #define RGB_FROM_PIXEL(Pixel, fmt, r, g, b) \ argument 91 r = (((Pixel&fmt->Rmask)>>fmt->Rshift)<<fmt->Rloss); \ 92 g = (((Pixel&fmt->Gmask)>>fmt->Gshift)<<fmt->Gloss); \ 93 b = (((Pixel&fmt->Bmask)>>fmt->Bshift)<<fmt->Bloss); \ 140 #define DISEMBLE_RGB(buf, bpp, fmt, Pixel, r, g, b) \ argument 165 RGB_FROM_PIXEL(Pixel, fmt, r, g, b); \ 170 #define PIXEL_FROM_RGB(Pixel, fmt, r, g, b) \ argument 172 Pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \ 173 ((g>>fmt->Gloss)<<fmt->Gshift)| \ 174 ((b>>fmt->Bloss)<<fmt->Bshift) | (1<<15); \ [all …]
|
D | SDL_pixels.c | 369 void SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt, in SDL_GetRGBA() argument 372 if ( fmt->palette == NULL ) { in SDL_GetRGBA() 383 v = (pixel & fmt->Rmask) >> fmt->Rshift; in SDL_GetRGBA() 384 *r = (v << fmt->Rloss) + (v >> (8 - (fmt->Rloss << 1))); in SDL_GetRGBA() 385 v = (pixel & fmt->Gmask) >> fmt->Gshift; in SDL_GetRGBA() 386 *g = (v << fmt->Gloss) + (v >> (8 - (fmt->Gloss << 1))); in SDL_GetRGBA() 387 v = (pixel & fmt->Bmask) >> fmt->Bshift; in SDL_GetRGBA() 388 *b = (v << fmt->Bloss) + (v >> (8 - (fmt->Bloss << 1))); in SDL_GetRGBA() 389 if(fmt->Amask) { in SDL_GetRGBA() 390 v = (pixel & fmt->Amask) >> fmt->Ashift; in SDL_GetRGBA() [all …]
|
/external/icu4c/test/intltest/ |
D | nmfmtrt.cpp | 88 NumberFormat *fmt = NULL; in start() local 92 fmt = NumberFormat::createInstance(status); in start() 94 test(fmt); in start() 96 delete fmt; in start() 98 fmt = NumberFormat::createCurrencyInstance(status); in start() 100 test(fmt); in start() 102 delete fmt; in start() 104 fmt = NumberFormat::createPercentInstance(status); in start() 106 test(fmt); in start() 108 delete fmt; in start() [all …]
|
D | numfmtst.h | 136 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 138 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() argument 139 expect2(fmt, n, UnicodeString(str, "")); in expect2() 142 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 144 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() argument 145 expect2(fmt, n, UnicodeString(str, ""), ec); in expect2() 148 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 150 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() argument 151 expect(fmt, UnicodeString(str, ""), n); in expect() 154 void expect(NumberFormat& fmt, const Formattable& n, [all …]
|
D | numfmtst.cpp | 186 DecimalFormat fmt(pat[i], sym, status); in TestPatterns() local 188 UnicodeString newp; fmt.toPattern(newp); in TestPatterns() 193 UnicodeString s; (*(NumberFormat*)&fmt).format((int32_t)0, s); in TestPatterns() 198 logln((UnicodeString)"Min integer digits = " + fmt.getMinimumIntegerDigits()); in TestPatterns() 321 DecimalFormat fmt(pat[p], sym, status); in TestExponential() local 325 fmt.toPattern(pattern) + "\""); in TestExponential() 329 UnicodeString s; (*(NumberFormat*)&fmt).format(val[v], s); in TestExponential() 336 fmt.parse(s, af, pos); in TestExponential() 377 (*(NumberFormat*)&fmt).format(lval[v], s); in TestExponential() 384 fmt.parse(s, af, pos); in TestExponential() [all …]
|
D | dtfmapts.cpp | 293 NumberFormat *fmt = NumberFormat::createInstance(status); in TestNameHiding() local 294 if (fmt) { in TestNameHiding() 295 fmt->format(numObj, str, status); in TestNameHiding() 296 fmt->format(numObj, str, fpos, status); in TestNameHiding() 297 delete fmt; in TestNameHiding() 307 DecimalFormat fmt(status); in TestNameHiding() local 310 fmt.format(numObj, str, status); in TestNameHiding() 311 fmt.format(numObj, str, fpos, status); in TestNameHiding() 313 fmt.format(2.71828, str); in TestNameHiding() 314 fmt.format((int32_t)1234567, str); in TestNameHiding() [all …]
|
D | callimts.cpp | 43 …est::test(UDate millis, U_NAMESPACE_QUALIFIER Calendar* cal, U_NAMESPACE_QUALIFIER DateFormat* fmt) in test() argument 51 fmt->format(millis, theDate); in test() 52 UDate dt = fmt->parse(theDate, status); in test() 93 DateFormat *fmt = DateFormat::createDateTimeInstance(); in TestCalendarLimit() local 94 if(!fmt || !cal) { in TestCalendarLimit() 98 fmt->adoptCalendar(cal); in TestCalendarLimit() 99 ((SimpleDateFormat*) fmt)->applyPattern("HH:mm:ss.SSS zzz, EEEE, MMMM d, yyyy G"); in TestCalendarLimit() 110 test(m, cal, fmt); in TestCalendarLimit() 114 test(m, cal, fmt); in TestCalendarLimit() 126 test(VERY_EARLY_MILLIS, cal, fmt); in TestCalendarLimit() [all …]
|
D | msfmrgts.cpp | 151 …MessageFormat *fmt = new MessageFormat("{0,choice,0#no files|1#one file|1< {0,number,integer} file… in Test4058973() local 155 pat = fmt->toPattern(pat); in Test4058973() 163 delete fmt; in Test4058973() 198 NumberFormat *fmt = 0; in Test4031438() local 209 fmt = NumberFormat::createInstance(status); in Test4031438() 211 case Formattable::kLong: fmt->format(obj.getLong(), temp); break; in Test4031438() 212 case Formattable::kInt64: fmt->format(obj.getInt64(), temp); break; in Test4031438() 213 case Formattable::kDouble: fmt->format(obj.getDouble(), temp); break; in Test4031438() 224 fmt = NumberFormat::createInstance(status); in Test4031438() 226 case Formattable::kLong: fmt->format(obj1.getLong(), temp1); break; in Test4031438() [all …]
|
/external/tcpdump/ |
D | smbutil.c | 323 write_bits(unsigned int val, const char *fmt) in write_bits() argument 325 const char *p = fmt; in write_bits() 328 while ((p = strchr(fmt, '|'))) { in write_bits() 329 size_t l = PTR_DIFF(p, fmt); in write_bits() 331 printf("%.*s ", (int)l, fmt); in write_bits() 332 fmt = p + 1; in write_bits() 432 smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf, in smb_fdata1() argument 438 while (*fmt && buf<maxbuf) { in smb_fdata1() 439 switch (*fmt) { in smb_fdata1() 444 fmt++; in smb_fdata1() [all …]
|
D | util.c | 265 tok2strbuf(register const struct tok *lp, register const char *fmt, in tok2strbuf() argument 275 if (fmt == NULL) in tok2strbuf() 276 fmt = "#%d"; in tok2strbuf() 278 (void)snprintf(buf, bufsize, fmt, v); in tok2strbuf() 286 tok2str(register const struct tok *lp, register const char *fmt, in tok2str() argument 295 return tok2strbuf(lp, fmt, v, ret, sizeof(buf[0])); in tok2str() 303 bittok2str(register const struct tok *lp, register const char *fmt, in bittok2str() argument 336 if (fmt == NULL) in bittok2str() 337 fmt = "#%d"; in bittok2str() 338 (void)snprintf(buf, sizeof(buf), fmt, v); in bittok2str() [all …]
|
/external/grub/netboot/ |
D | misc.c | 74 etherboot_vsprintf (char *buf, const char *fmt, const int *dp) in etherboot_vsprintf() argument 79 for ( ; *fmt != '\0'; ++fmt) in etherboot_vsprintf() 81 if (*fmt != '%') in etherboot_vsprintf() 83 buf ? *s++ = *fmt : grub_putchar (*fmt); in etherboot_vsprintf() 87 if (*++fmt == 's') in etherboot_vsprintf() 99 if (*fmt == '#') in etherboot_vsprintf() 102 fmt++; in etherboot_vsprintf() 105 if (*fmt == 'h') in etherboot_vsprintf() 108 fmt++; in etherboot_vsprintf() 111 if (*fmt == 'h') in etherboot_vsprintf() [all …]
|
/external/icu4c/common/ |
D | utracimp.h | 118 utrace_data(int32_t utraceFnNumber, int32_t level, const char *fmt, ...); 235 #define UTRACE_DATA0(level, fmt) \ argument 237 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt)); \ 248 #define UTRACE_DATA1(level, fmt, a) \ argument 250 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a)); \ 261 #define UTRACE_DATA2(level, fmt, a, b) \ argument 263 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a), (b)); \ 274 #define UTRACE_DATA3(level, fmt, a, b, c) \ argument 276 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt), (a), (b), (c)); \ 287 #define UTRACE_DATA4(level, fmt, a, b, c, d) \ argument [all …]
|
/external/icu4c/i18n/ |
D | unum.cpp | 148 unum_close(UNumberFormat* fmt) in unum_close() argument 150 delete (NumberFormat*) fmt; in unum_close() 154 unum_clone(const UNumberFormat *fmt, in unum_clone() argument 161 if (((const NumberFormat*)fmt)->getDynamicClassID() == DecimalFormat::getStaticClassID()) { in unum_clone() 162 res = ((const DecimalFormat*)fmt)->clone(); in unum_clone() 164 …U_ASSERT(((const NumberFormat*)fmt)->getDynamicClassID() == RuleBasedNumberFormat::getStaticClassI… in unum_clone() 165 res = ((const RuleBasedNumberFormat*)fmt)->clone(); in unum_clone() 177 unum_format( const UNumberFormat* fmt, in unum_format() argument 184 return unum_formatInt64(fmt, number, result, resultLength, pos, status); in unum_format() 188 unum_formatInt64(const UNumberFormat* fmt, in unum_formatInt64() argument [all …]
|
D | winnmfmt.cpp | 79 static void getNumberFormat(NUMBERFMTW *fmt, int32_t lcid) in getNumberFormat() argument 83 … GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_IDIGITS, (LPWSTR) &fmt->NumDigits, sizeof(UINT)); in getNumberFormat() 84 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_ILZERO, (LPWSTR) &fmt->LeadingZero, sizeof(UINT)… in getNumberFormat() 87 fmt->Grouping = getGrouping(buf); in getNumberFormat() 89 fmt->lpDecimalSep = NEW_ARRAY(UChar, 6); in getNumberFormat() 90 GetLocaleInfoW(lcid, LOCALE_SDECIMAL, fmt->lpDecimalSep, 6); in getNumberFormat() 92 fmt->lpThousandSep = NEW_ARRAY(UChar, 6); in getNumberFormat() 93 GetLocaleInfoW(lcid, LOCALE_STHOUSAND, fmt->lpThousandSep, 6); in getNumberFormat() 95 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_INEGNUMBER, (LPWSTR) &fmt->NegativeOrder, sizeof(… in getNumberFormat() 98 static void freeNumberFormat(NUMBERFMTW *fmt) in freeNumberFormat() argument [all …]
|
D | umsg.cpp | 70 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vformatMessage() local 71 int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status); in u_vformatMessage() 72 umsg_close(fmt); in u_vformatMessage() 111 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); in u_vformatMessageWithError() local 112 int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status); in u_vformatMessageWithError() 113 umsg_close(fmt); in u_vformatMessageWithError() 152 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vparseMessage() local 154 umsg_vparse(fmt,source,sourceLength,&count,ap,status); in u_vparseMessage() 155 umsg_close(fmt); in u_vparseMessage() 190 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,error,status); in u_vparseMessageWithError() local [all …]
|
D | currfmt.cpp | 21 fmt(NULL) { in CurrencyFormat() 22 fmt = NumberFormat::createCurrencyInstance(locale, ec); in CurrencyFormat() 26 MeasureFormat(other), fmt(NULL) { in CurrencyFormat() 27 fmt = (NumberFormat*) other.fmt->clone(); in CurrencyFormat() 31 delete fmt; in ~CurrencyFormat() 42 return *fmt == *c->fmt; in operator ==() 53 return fmt->format(obj, appendTo, pos, ec); in format() 59 fmt->parseCurrency(source, result, pos); in parseObject()
|
D | udat.cpp | 38 DateFormat *fmt; in udat_open() local 44 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, in udat_open() 48 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, in udat_open() 57 fmt = new SimpleDateFormat(pat, *status); in udat_open() 60 fmt = new SimpleDateFormat(pat, Locale(locale), *status); in udat_open() 64 if(fmt == 0) { in udat_open() 73 delete fmt; in udat_open() 76 fmt->adoptTimeZone(zone); in udat_open() 79 return (UDateFormat*)fmt; in udat_open() 90 udat_clone(const UDateFormat *fmt, in udat_clone() argument [all …]
|
/external/ppp/pppd/ |
D | utils.c | 132 slprintf __V((char *buf, int buflen, char *fmt, ...)) in slprintf() argument 138 va_start(args, fmt); in slprintf() 142 char *fmt; in slprintf() local 146 fmt = va_arg(args, char *); in slprintf() 148 n = vslprintf(buf, buflen, fmt, args); in slprintf() 159 vslprintf(buf, buflen, fmt, args) in vslprintf() argument 162 char *fmt; 180 for (f = fmt; *f != '%' && *f != 0; ++f) 182 if (f > fmt) { 183 len = f - fmt; [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/ |
D | SDL_error.c | 50 void SDL_SetError (const char *fmt, ...) in SDL_SetError() argument 58 SDL_strlcpy((char *)error->key, fmt, sizeof(error->key)); in SDL_SetError() 60 va_start(ap, fmt); in SDL_SetError() 62 while ( *fmt ) { in SDL_SetError() 63 if ( *fmt++ == '%' ) { in SDL_SetError() 64 while ( *fmt == '.' || (*fmt >= '0' && *fmt <= '9') ) { in SDL_SetError() 65 ++fmt; in SDL_SetError() 67 switch (*fmt++) { in SDL_SetError() 69 --fmt; in SDL_SetError() 128 const char *fmt; in SDL_GetErrorMsg() local [all …]
|
/external/icu4c/i18n/unicode/ |
D | unum.h | 250 unum_close(UNumberFormat* fmt); 261 unum_clone(const UNumberFormat *fmt, 286 unum_format( const UNumberFormat* fmt, 315 unum_formatInt64(const UNumberFormat *fmt, 344 unum_formatDouble( const UNumberFormat* fmt, 373 unum_formatDoubleCurrency(const UNumberFormat* fmt, 399 unum_parse( const UNumberFormat* fmt, 423 unum_parseInt64(const UNumberFormat* fmt, 447 unum_parseDouble( const UNumberFormat* fmt, 473 unum_parseDoubleCurrency(const UNumberFormat* fmt, [all …]
|
D | udat.h | 465 udat_clone(const UDateFormat *fmt, 545 udat_isLenient(const UDateFormat* fmt); 557 udat_setLenient( UDateFormat* fmt, 570 udat_getCalendar(const UDateFormat* fmt); 582 udat_setCalendar( UDateFormat* fmt, 595 udat_getNumberFormat(const UDateFormat* fmt); 607 udat_setNumberFormat( UDateFormat* fmt, 644 udat_get2DigitYearStart( const UDateFormat *fmt, 658 udat_set2DigitYearStart( UDateFormat *fmt, 675 udat_toPattern( const UDateFormat *fmt, [all …]
|
/external/webkit/WebKitTools/android/flex-2.5.4a/ |
D | misc.c | 629 void out_dec( fmt, n ) in out_dec() argument 630 const char fmt[]; in out_dec() 633 printf( fmt, n ); 634 out_line_count( fmt ); 637 void out_dec2( fmt, n1, n2 ) in out_dec2() argument 638 const char fmt[]; in out_dec2() 641 printf( fmt, n1, n2 ); 642 out_line_count( fmt ); 645 void out_hex( fmt, x ) in out_hex() argument 646 const char fmt[]; in out_hex() [all …]
|
/external/e2fsprogs/lib/et/ |
D | com_err.c | 21 char *fmt, va_list args) 26 char *fmt, va_list args) in default_com_err_proc() argument 36 if (fmt) { in default_com_err_proc() 37 vfprintf (stderr, fmt, args); in default_com_err_proc() 48 void com_err_va (const char *whoami, errcode_t code, const char *fmt, in com_err_va() argument 51 (*com_err_hook) (whoami, code, fmt, args); in com_err_va() 56 const char *fmt, ...) in com_err() argument 62 va_start(pvar, fmt); in com_err() 63 com_err_va (whoami, code, fmt, pvar); in com_err()
|
/external/qemu/audio/ |
D | ossaudio.c | 69 audfmt_e fmt; member 75 static void GCC_FMT_ATTR (2, 3) oss_logerr (int err, const char *fmt, ...) in oss_logerr() argument 79 va_start (ap, fmt); in oss_logerr() 80 AUD_vlog (AUDIO_CAP, fmt, ap); in oss_logerr() 89 const char *fmt, in oss_logerr2() argument 97 va_start (ap, fmt); in oss_logerr2() 98 AUD_vlog (AUDIO_CAP, fmt, ap); in oss_logerr2() 118 static int aud_to_ossfmt (audfmt_e fmt) in aud_to_ossfmt() argument 120 switch (fmt) { in aud_to_ossfmt() 134 dolog ("Internal logic error: Bad audio format %d\n", fmt); in aud_to_ossfmt() [all …]
|