Lines Matching refs:maxlen

116 typedef void (*out_fct_type)(char character, void * buffer, size_t idx, size_t maxlen);
125 static inline void _out_buffer(char character, void * buffer, size_t idx, size_t maxlen) in _out_buffer() argument
127 if(idx < maxlen) { in _out_buffer()
133 static inline void _out_null(char character, void * buffer, size_t idx, size_t maxlen) in _out_null() argument
138 LV_UNUSED(maxlen); in _out_null()
168 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf… in _out_rev() argument
177 out(' ', buffer, idx++, maxlen); in _out_rev()
183 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
189 out(' ', buffer, idx++, maxlen); in _out_rev()
197 static size_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, … in _ntoa_format() argument
247 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format()
251 static size_t _ntoa_long(out_fct_type out, char * buffer, size_t idx, size_t maxlen, unsigned long … in _ntoa_long() argument
271 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int)base, prec, width,… in _ntoa_long()
276 static size_t _ntoa_long_long(out_fct_type out, char * buffer, size_t idx, size_t maxlen, unsigned … in _ntoa_long_long() argument
296 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int)base, prec, width,… in _ntoa_long_long()
304 static size_t _etoa(out_fct_type out, char * buffer, size_t idx, size_t maxlen, double value, unsig…
309 static size_t _ftoa(out_fct_type out, char * buffer, size_t idx, size_t maxlen, double value, unsig… in _ftoa() argument
321 return _out_rev(out, buffer, idx, maxlen, "nan", 3, width, flags); in _ftoa()
323 return _out_rev(out, buffer, idx, maxlen, "fni-", 4, width, flags); in _ftoa()
325 …return _out_rev(out, buffer, idx, maxlen, (flags & FLAGS_PLUS) ? "fni+" : "fni", (flags & FLAGS_PL… in _ftoa()
332 return _etoa(out, buffer, idx, maxlen, value, prec, width, flags); in _ftoa()
433 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ftoa()
438 static size_t _etoa(out_fct_type out, char * buffer, size_t idx, size_t maxlen, double value, unsig… in _etoa() argument
443 return _ftoa(out, buffer, idx, maxlen, value, prec, width, flags); in _etoa()
530 …idx = _ftoa(out, buffer, idx, maxlen, negative ? -value : value, prec, fwidth, flags & ~FLAGS_ADAP… in _etoa()
535 out((flags & FLAGS_UPPERCASE) ? 'E' : 'e', buffer, idx++, maxlen); in _etoa()
537 …idx = _ntoa_long(out, buffer, idx, maxlen, (expval < 0) ? -expval : expval, expval < 0, 10, 0, min… in _etoa()
541 while(idx - start_idx < width) out(' ', buffer, idx++, maxlen); in _etoa()
550 static int _vsnprintf(out_fct_type out, char * buffer, const size_t maxlen, const char * format, va… in _vsnprintf() argument
564 out(*format, buffer, idx++, maxlen); in _vsnprintf()
736 …idx = _ntoa_long_long(out, buffer, idx, maxlen, (unsigned long long)(value > 0 ? value : 0 - value… in _vsnprintf()
742 …idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned long)(value > 0 ? value : 0 - value), value <… in _vsnprintf()
748 …idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned int)(value > 0 ? value : 0 - value), value < … in _vsnprintf()
757 idx += _vsnprintf(out, buffer + idx, maxlen - idx, vaf->fmt, copy); in _vsnprintf()
764 …idx = _ntoa_long_long(out, buffer, idx, maxlen, va_arg(va, unsigned long long), false, base, preci… in _vsnprintf()
768 …idx = _ntoa_long(out, buffer, idx, maxlen, va_arg(va, unsigned long), false, base, precision, widt… in _vsnprintf()
773 … idx = _ntoa_long(out, buffer, idx, maxlen, value, false, base, precision, width, flags); in _vsnprintf()
783 idx = _ftoa(out, buffer, idx, maxlen, va_arg(va, double), precision, width, flags); in _vsnprintf()
793 idx = _etoa(out, buffer, idx, maxlen, va_arg(va, double), precision, width, flags); in _vsnprintf()
803 out(' ', buffer, idx++, maxlen); in _vsnprintf()
807 out((char)va_arg(va, int), buffer, idx++, maxlen); in _vsnprintf()
811 out(' ', buffer, idx++, maxlen); in _vsnprintf()
827 out(' ', buffer, idx++, maxlen); in _vsnprintf()
832 out(*(p++), buffer, idx++, maxlen); in _vsnprintf()
837 out(' ', buffer, idx++, maxlen); in _vsnprintf()
845 out('%', buffer, idx++, maxlen); in _vsnprintf()
850 out(*format, buffer, idx++, maxlen); in _vsnprintf()
857 out((char)0, buffer, idx < maxlen ? idx : maxlen - 1U, maxlen); in _vsnprintf()