MySQL 8.3.0
Source Code Documentation
TwoDigitWriter Class Reference

Helper class for write_two_digits(), which creates a table that maps every integer from 0 to 99 to a two-char sequence that represents its two base 10 digits. More...

#include <integer_digits.h>

Public Member Functions

constexpr TwoDigitWriter ()
 
char * Write (int value, char *to) const
 

Private Attributes

char m_digits [100][2] {}
 

Detailed Description

Helper class for write_two_digits(), which creates a table that maps every integer from 0 to 99 to a two-char sequence that represents its two base 10 digits.

Constructor & Destructor Documentation

◆ TwoDigitWriter()

constexpr TwoDigitWriter::TwoDigitWriter ( )
inlineconstexpr

Member Function Documentation

◆ Write()

char * TwoDigitWriter::Write ( int  value,
char *  to 
) const
inline

Member Data Documentation

◆ m_digits

char TwoDigitWriter::m_digits[100][2] {}
private

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