String primitives for logging services.
More...
#include <log_builtins.h>
|
void *(* | malloc )(size_t len) |
|
char *(* | strndup )(const char *fm, size_t len) |
|
void(* | free )(void *ptr) |
|
size_t(* | length )(const char *s) |
|
char *(* | find_first )(const char *s, int c) |
|
char *(* | find_last )(const char *s, int c) |
|
int(* | compare )(const char *a, const char *b, size_t len, bool case_insensitive) |
|
size_t(* | substitutev )(char *to, size_t n, const char *fmt, va_list ap) |
| Wrapper for std::snprintf() Replace all % in format string with variables from list. More...
|
|
size_t(* | substitute )(char *to, size_t n, const char *fmt,...) |
|
String primitives for logging services.
◆ compare
int(* s_mysql_log_builtins_string::compare) (const char *a, const char *b, size_t len, bool case_insensitive) |
◆ find_first
char *(* s_mysql_log_builtins_string::find_first) (const char *s, int c) |
◆ find_last
char *(* s_mysql_log_builtins_string::find_last) (const char *s, int c) |
◆ free
void(* s_mysql_log_builtins_string::free) (void *ptr) |
◆ length
size_t(* s_mysql_log_builtins_string::length) (const char *s) |
◆ malloc
void *(* s_mysql_log_builtins_string::malloc) (size_t len) |
◆ strndup
char *(* s_mysql_log_builtins_string::strndup) (const char *fm, size_t len) |
◆ substitute
size_t(* s_mysql_log_builtins_string::substitute) (char *to, size_t n, const char *fmt,...) |
◆ substitutev
size_t(* s_mysql_log_builtins_string::substitutev) (char *to, size_t n, const char *fmt, va_list ap) |
Wrapper for std::snprintf() Replace all % in format string with variables from list.
Do not use in new code; use std::snprintf() instead.
- Parameters
-
to | buffer to write the result to |
n | size of that buffer |
fmt | format string |
ap | va_list with valuables for all substitutions in format string |
- Return values
-
The documentation for this struct was generated from the following file: