Namespaces | Classes | Typedefs | Functions
test Namespace Reference

Namespaces

 test_rosclean
 

Classes

struct  out_fct_wrap_type
 

Typedefs

typedef void(* out_fct_type) (char character, void *buffer, size_t idx, size_t maxlen)
 

Functions

static unsigned int _atoi (const char **str)
 
static size_t _etoa (out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t _ftoa (out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, unsigned int width, unsigned int flags)
 
static bool _is_digit (char ch)
 
static size_t _ntoa_format (out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, size_t len, bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t _ntoa_long (out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long value, bool negative, unsigned long base, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t _ntoa_long_long (out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long long value, bool negative, unsigned long long base, unsigned int prec, unsigned int width, unsigned int flags)
 
static void _out_buffer (char character, void *buffer, size_t idx, size_t maxlen)
 
static void _out_char (char character, void *buffer, size_t idx, size_t maxlen)
 
static void _out_fct (char character, void *buffer, size_t idx, size_t maxlen)
 
static void _out_null (char character, void *buffer, size_t idx, size_t maxlen)
 
static size_t _out_rev (out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, size_t len, unsigned int width, unsigned int flags)
 
void _putchar (char character)
 
static unsigned int _strnlen_s (const char *str, size_t maxsize)
 
static int _vsnprintf (out_fct_type out, char *buffer, const size_t maxlen, const char *format, va_list va)
 
int fctprintf (void(*out)(char character, void *arg), void *arg, const char *format,...)
 
int printf_ (const char *format,...)
 
int snprintf_ (char *buffer, size_t count, const char *format,...)
 
int sprintf_ (char *buffer, const char *format,...)
 
int vprintf_ (const char *format, va_list va)
 
int vsnprintf_ (char *buffer, size_t count, const char *format, va_list va)
 

Typedef Documentation

◆ out_fct_type

typedef void(* test::out_fct_type) (char character, void *buffer, size_t idx, size_t maxlen)

Definition at line 122 of file test_suite.cpp.

Function Documentation

◆ _atoi()

static unsigned int test::_atoi ( const char **  str)
static

Definition at line 188 of file test_suite.cpp.

◆ _etoa()

static size_t test::_etoa ( out_fct_type  out,
char *  buffer,
size_t  idx,
size_t  maxlen,
double  value,
unsigned int  prec,
unsigned int  width,
unsigned int  flags 
)
static

Definition at line 467 of file test_suite.cpp.

◆ _ftoa()

static size_t test::_ftoa ( out_fct_type  out,
char *  buffer,
size_t  idx,
size_t  maxlen,
double  value,
unsigned int  prec,
unsigned int  width,
unsigned int  flags 
)
static

Definition at line 339 of file test_suite.cpp.

◆ _is_digit()

static bool test::_is_digit ( char  ch)
inlinestatic

Definition at line 181 of file test_suite.cpp.

◆ _ntoa_format()

static size_t test::_ntoa_format ( out_fct_type  out,
char *  buffer,
size_t  idx,
size_t  maxlen,
char *  buf,
size_t  len,
bool  negative,
unsigned int  base,
unsigned int  prec,
unsigned int  width,
unsigned int  flags 
)
static

Definition at line 227 of file test_suite.cpp.

◆ _ntoa_long()

static size_t test::_ntoa_long ( out_fct_type  out,
char *  buffer,
size_t  idx,
size_t  maxlen,
unsigned long  value,
bool  negative,
unsigned long  base,
unsigned int  prec,
unsigned int  width,
unsigned int  flags 
)
static

Definition at line 281 of file test_suite.cpp.

◆ _ntoa_long_long()

static size_t test::_ntoa_long_long ( out_fct_type  out,
char *  buffer,
size_t  idx,
size_t  maxlen,
unsigned long long  value,
bool  negative,
unsigned long long  base,
unsigned int  prec,
unsigned int  width,
unsigned int  flags 
)
static

Definition at line 306 of file test_suite.cpp.

◆ _out_buffer()

static void test::_out_buffer ( char  character,
void *  buffer,
size_t  idx,
size_t  maxlen 
)
inlinestatic

Definition at line 133 of file test_suite.cpp.

◆ _out_char()

static void test::_out_char ( char  character,
void *  buffer,
size_t  idx,
size_t  maxlen 
)
inlinestatic

Definition at line 149 of file test_suite.cpp.

◆ _out_fct()

static void test::_out_fct ( char  character,
void *  buffer,
size_t  idx,
size_t  maxlen 
)
inlinestatic

Definition at line 159 of file test_suite.cpp.

◆ _out_null()

static void test::_out_null ( char  character,
void *  buffer,
size_t  idx,
size_t  maxlen 
)
inlinestatic

Definition at line 142 of file test_suite.cpp.

◆ _out_rev()

static size_t test::_out_rev ( out_fct_type  out,
char *  buffer,
size_t  idx,
size_t  maxlen,
const char *  buf,
size_t  len,
unsigned int  width,
unsigned int  flags 
)
static

Definition at line 199 of file test_suite.cpp.

◆ _putchar()

void test::_putchar ( char  character)

Output a character to a custom device like UART, used by the printf() function This function is declared here only. You have to write your custom implementation somewhere

Parameters
characterCharacter to output

Definition at line 49 of file test_suite.cpp.

◆ _strnlen_s()

static unsigned int test::_strnlen_s ( const char *  str,
size_t  maxsize 
)
inlinestatic

Definition at line 171 of file test_suite.cpp.

◆ _vsnprintf()

static int test::_vsnprintf ( out_fct_type  out,
char *  buffer,
const size_t  maxlen,
const char *  format,
va_list  va 
)
static

Definition at line 577 of file test_suite.cpp.

◆ fctprintf()

int test::fctprintf ( void(*)(char character, void *arg)  out,
void *  arg,
const char *  format,
  ... 
)

printf with output function You may use this as dynamic alternative to printf() with its fixed _putchar() output

Parameters
outAn output function which takes one character and an argument pointer
argAn argument pointer for user data passed to output function
formatA string that specifies the format of the output
Returns
The number of characters that are sent to the output function, not counting the terminating null character

Definition at line 906 of file test_suite.cpp.

◆ printf_()

int test::printf_ ( const char *  format,
  ... 
)

Definition at line 862 of file test_suite.cpp.

◆ snprintf_()

int test::snprintf_ ( char *  buffer,
size_t  count,
const char *  format,
  ... 
)

Definition at line 883 of file test_suite.cpp.

◆ sprintf_()

int test::sprintf_ ( char *  buffer,
const char *  format,
  ... 
)

Definition at line 873 of file test_suite.cpp.

◆ vprintf_()

int test::vprintf_ ( const char *  format,
va_list  va 
)

Definition at line 893 of file test_suite.cpp.

◆ vsnprintf_()

int test::vsnprintf_ ( char *  buffer,
size_t  count,
const char *  format,
va_list  va 
)

Definition at line 900 of file test_suite.cpp.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:03