waritoa.h

来自「ftpserver very good sample」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef WAR_ITOA_H#define WAR_ITOA_H/* SYSTEM INCLUDES */#ifndef WAR_STRING_INCLUDED#   define WAR_STRING_INCLUDED#   include <string>#endif/* PROJECT INCLUDES *//* LOCAL INCLUDES *//* FORWARD REFERENCES *//** Generic itoa() function. Handles any integer supported by the compiler        @param dst String to write to. Also returden    @param val Value to convert to a string    @param base Number system, 10 or 16    @param large_digits true if hex letters is LARGE else they are small    @param fmt_char Format character. Used to make: 1.234.567 style formatting.    @return The formatted string. The buffer passed as dst is returned.*/template <class charT, class numT>std::basic_string<charT>& WarItoa(std::basic_string<charT> &dst,                                    const numT val,                                    const int base = 10,                                    const bool large_digits = true,                                    char fmt_char = 0);#endif // #ifndef WAR_ITOA_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?