MySQL 9.1.0
Source Code Documentation
print_utils.h File Reference
#include "my_compiler.h"
#include "sql/item.h"
#include <string>

Go to the source code of this file.

Functions

std::string StringPrintf (const char *fmt,...)
 Like sprintf, but returns an std::string. More...
 
template<class T >
std::string ItemsToString (const T &items)
 
std::string GenerateExpressionLabel (const RelationalExpression *expr)
 
std::string FormatNumberReadably (double d)
 
std::string FormatNumberReadably (uint64_t l)
 

Function Documentation

◆ FormatNumberReadably() [1/2]

std::string FormatNumberReadably ( double  d)

◆ FormatNumberReadably() [2/2]

std::string FormatNumberReadably ( uint64_t  l)

◆ GenerateExpressionLabel()

std::string GenerateExpressionLabel ( const RelationalExpression expr)

◆ ItemsToString()

template<class T >
std::string ItemsToString ( const T &  items)

◆ StringPrintf()

std::string StringPrintf ( const char *  fmt,
  ... 
)

Like sprintf, but returns an std::string.

This is not the most efficient of formatting functions, but it is only intended for debugging/tracing use.