• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/

Lines Matching defs:format

159     int wxVfprintf( FILE *stream, const wxChar *format, va_list argptr );
268 // wxVsnprintf_ and parsed from the format string
289 // pointer to the '%' of this conversion specifier in the format string
295 // format string
319 bool Parse(const wxChar *format);
348 bool wxPrintfConvSpec::Parse(const wxChar *format)
359 m_pArgPos = m_pArgEnd = format;
432 return false; // bad format
634 // bad format, don't consider this an argument;
1061 const wxChar *format, va_list argptr)
1080 const wxChar *toparse = format;
1082 // parse the format string
1136 return -1; // format strings with both positional and
1165 toparse = format;
1168 // copy in the output buffer the portion of the format string between
1190 // of the format specifier, but we are not interested to it...
1194 // copy portion of the format string after last specifier
1198 size_t tocopy = wxStrlen(format) + 1 - ( toparse - format ) ;
1229 int WXDLLEXPORT wxSnprintf_(wxChar *buf, size_t len, const wxChar *format, ...)
1232 va_start(argptr, format);
1234 int iLen = wxVsnprintf_(buf, len, format, argptr);
1245 int wxSprintf (wchar_t * __RESTRICT s, const wchar_t * __RESTRICT format, ... )
1249 va_start( arglist, format );
1250 int iLen = swprintf ( s, -1, format, arglist );
1262 int wxSprintf (wchar_t * s, const wchar_t * format, ... )
1266 va_start( arglist, format );
1267 int iLen = swprintf ( s, -1, format, arglist );
1321 int vwscanf(const wxChar *format, va_list argptr)
1328 int vswscanf(const wxChar *ws, const wxChar *format, va_list argptr)
1335 wxCHECK_MSG( wxStrstr(format, _T("%s")) == NULL, -1,
1337 wxCHECK_MSG( wxStrstr(format, _T("%c")) == NULL, -1,
1342 return vsscanf(wxConvLibc.cWX2MB(ws), wxConvLibc.cWX2MB(format), argcopy);
1345 int vfwscanf(FILE *stream, const wxChar *format, va_list argptr)
1354 int vfwprintf(FILE *stream, const wxChar *format, va_list argptr)
1357 int rc = s.PrintfV(format, argptr);
1369 int vwprintf(const wxChar *format, va_list argptr)
1371 return wxVfprintf(stdout, format, argptr);
1388 format specifier results in
1395 format specifier results in
1420 wxFormatConverter(const wxChar *format);
1423 // by CopyAllBefore()), otherwise we should simply use the original format
1428 // copy another character to the translated format: this function does the
1430 // so we don't create the translated format string at all unless we really
1483 // the translated format
1486 // the original format
1493 wxFormatConverter::wxFormatConverter(const wxChar *format)
1495 m_fmtOrig = format;
1498 while ( *format )
1500 if ( CopyFmtChar(*format++) == _T('%') )
1503 while ( IsFlagChar(*format) )
1504 CopyFmtChar(*format++);
1507 if ( *format == _T('*') )
1508 CopyFmtChar(*format++);
1510 SkipDigits(&format);
1513 if ( *format == _T('.') )
1515 CopyFmtChar(*format++);
1516 if ( *format == _T('*') )
1517 CopyFmtChar(*format++);
1519 SkipDigits(&format);
1530 switch ( *format )
1534 format++;
1539 if ( format[1] != _T('l') )
1542 format++;
1552 switch ( *format )
1560 InsertFmtChar(*format++ == _T('C') ? _T('c') : _T('s'));
1573 CopyFmtChar(*(format - 1));
1574 CopyFmtChar(*format++);
1586 // For testing the format converter
1587 wxString wxConvertFormat(const wxChar *format)
1589 return wxString(wxFormatConverter(format));
1599 int wxScanf( const wxChar *format, ... )
1602 va_start(argptr, format);
1604 int ret = vwscanf(wxFormatConverter(format), argptr );
1611 int wxSscanf( const wxChar *str, const wxChar *format, ... )
1614 va_start(argptr, format);
1616 int ret = vswscanf( str, wxFormatConverter(format), argptr );
1623 int wxFscanf( FILE *stream, const wxChar *format, ... )
1626 va_start(argptr, format);
1627 int ret = vfwscanf(stream, wxFormatConverter(format), argptr);
1634 int wxPrintf( const wxChar *format, ... )
1637 va_start(argptr, format);
1639 int ret = vwprintf( wxFormatConverter(format), argptr );
1647 int wxSnprintf( wxChar *str, size_t size, const wxChar *format, ... )
1650 va_start(argptr, format);
1652 int ret = vswprintf( str, size, wxFormatConverter(format), argptr );
1664 int wxSprintf( wxChar *str, const wxChar *format, ... )
1667 va_start(argptr, format);
1671 wxString s(wxString::FormatV(format, argptr));
1679 int wxFprintf( FILE *stream, const wxChar *format, ... )
1682 va_start( argptr, format );
1684 int ret = vfwprintf( stream, wxFormatConverter(format), argptr );
1691 int wxVsscanf( const wxChar *str, const wxChar *format, va_list argptr )
1693 return vswscanf( str, wxFormatConverter(format), argptr );
1696 int wxVfprintf( FILE *stream, const wxChar *format, va_list argptr )
1698 return vfwprintf( stream, wxFormatConverter(format), argptr );
1701 int wxVprintf( const wxChar *format, va_list argptr )
1703 return vwprintf( wxFormatConverter(format), argptr );
1707 int wxVsnprintf( wxChar *str, size_t size, const wxChar *format, va_list argptr )
1709 return vswprintf( str, size, wxFormatConverter(format), argptr );
1713 int wxVsprintf( wxChar *str, const wxChar *format, va_list argptr )
1716 return vswprintf(str, INT_MAX / 4, wxFormatConverter(format), argptr);
2211 // characters, as its format is always the same for any locale