Null conversion class for MBCS/UTF-8 to char (or equivalent).
Definition at line 1995 of file SimpleIni.h.
#include <simpleini/SimpleIni.h>
Public Member Functions | |
SI_ConvertA () | |
SI_ConvertA (const SI_ConvertA &rhs) | |
SI_ConvertA & | operator= (const SI_ConvertA &rhs) |
virtual size_t | SizeFromStore (const char *a_pInputData, size_t a_uInputDataLen) |
Calculate the number of SI_CHAR required for converting the input from the storage format. More... | |
virtual bool | ConvertFromStore (const char *a_pInputData, size_t a_uInputDataLen, SI_CHAR *a_pOutputData, size_t a_uOutputDataSize) |
Convert the input string from the storage format to SI_CHAR. More... | |
size_t | SizeToStore (const SI_CHAR *a_pInputData) |
Calculate the number of char required by the storage format of this data. More... | |
bool | ConvertToStore (const SI_CHAR *a_pInputData, char *a_pOutputData, size_t a_uOutputDataSize) |
Convert the input string to the storage format of this data. More... | |
|
inline |
Definition at line 1998 of file SimpleIni.h.
|
inline |
Definition at line 2000 of file SimpleIni.h.
|
inlinevirtual |
Convert the input string from the storage format to SI_CHAR.
The storage format is always UTF-8 or MBCS.
a_pInputData | Data in storage format to be converted to SI_CHAR. |
a_uInputDataLen | Length of storage format data in bytes. This must be the actual length of the data, including nullptr byte if nullptr terminated string is required. |
a_pOutputData | Pointer to the output buffer to received the converted data. |
a_uOutputDataSize | Size of the output buffer in SI_CHAR. |
Reimplemented in mrpt::config::simpleini::MRPT_IniFileParser.
Definition at line 2041 of file SimpleIni.h.
|
inline |
Convert the input string to the storage format of this data.
The storage format is always UTF-8 or MBCS.
a_pInputData | nullptr terminated source string to convert. All of the data will be converted including the terminating nullptr character. |
a_pOutputData | Pointer to the buffer to receive the converted string. |
a_uOutputDataSize | Size of the output buffer in char. |
Definition at line 2084 of file SimpleIni.h.
|
inline |
Definition at line 2001 of file SimpleIni.h.
Referenced by mrpt::config::simpleini::MRPT_IniFileParser::MRPT_IniFileParser(), mrpt::config::simpleini::MRPT_IniFileParser::operator=(), and mrpt::config::simpleini::SI_ConvertA< char >::SI_ConvertA().
|
inlinevirtual |
Calculate the number of SI_CHAR required for converting the input from the storage format.
The storage format is always UTF-8 or MBCS.
a_pInputData | Data in storage format to be converted to SI_CHAR. |
a_uInputDataLen | Length of storage format data in bytes. This must be the actual length of the data, including nullptr byte if nullptr terminated string is required. |
Reimplemented in mrpt::config::simpleini::MRPT_IniFileParser.
Definition at line 2017 of file SimpleIni.h.
|
inline |
Calculate the number of char required by the storage format of this data.
The storage format is always UTF-8 or MBCS.
a_pInputData | nullptr terminated string to calculate the number of bytes required to be converted to storage format. |
Definition at line 2065 of file SimpleIni.h.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |