MySQL  8.0.17
Source Code Documentation
s_mysql_log_builtins_string Struct Reference

String primitives for logging services. More...

#include <log_builtins.h>

Public Attributes

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,...)
 

Detailed Description

String primitives for logging services.

Member Data Documentation

◆ 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
tobuffer to write the result to
nsize of that buffer
fmtformat string
apva_list with valuables for all substitutions in format string
Return values
returnvalue of snprintf

The documentation for this struct was generated from the following file: