2025-11-27 16:46:48 +09:00

37 lines
1.4 KiB
C++

class UTBStr
{
public:
static void tcscpy(TCHAR * dest, SIZE_T length, const TCHAR* src);
static char* fcvt(double val, int count, int * dec, int * sign);
static void strncpy(char * dest, size_t size, const char * src, size_t count);
static void stprintf(TCHAR * dest, size_t size, const TCHAR * src, ...);
static void sprintf(char * dest, size_t size, const char * src, ...);
static void tcscat(TCHAR * dest, SIZE_T length, const TCHAR* src);
static void tcsncat(TCHAR * dest, size_t size, const TCHAR * src, size_t count);
static void wcstombs (size_t *pConvertedChars, char *mbstr, size_t sizeInBytes, const wchar_t *wcstr, size_t count);
static void itot(int value, TCHAR * dest, size_t size, int radix);
static void itoa(int value, char * dest, size_t size, int radix);
static void ltot(long value, TCHAR * dest, size_t size, int radix);
static TCHAR* tcstok(TCHAR* strToken, const TCHAR* strDelimit, TCHAR ** context);
static void tsplitpath(const TCHAR * path, TCHAR * drive, size_t driveSizeInTCHARacters, TCHAR * dir,
size_t dirSizeInTCHARacters, TCHAR * fname, size_t nameSizeInTCHARacters, TCHAR * ext, size_t extSizeInBytes);
static void tcsncpy(TCHAR * dest, size_t dstSize, const TCHAR * src, size_t maxCount);
static TCHAR * tgetenv(const TCHAR *varname);
static size_t mbstowcs(wchar_t *wcstr, size_t sizeInWords, const char *mbstr, size_t count );
};