MCPcopy Create free account
hub / github.com/SOUI2/soui / _Format

Method _Format

utilities/include/string/tstring.h:1150–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148 }
1149
1150 BOOL _Format(const tchar* pszFormat, va_list args)
1151 {
1152 if (pszFormat == NULL || *pszFormat == '\0')
1153 {
1154 Empty();
1155 return FALSE;
1156 }
1157
1158 tchar* pszBuffer = NULL;
1159 int nLength = tchar_traits::Format(&pszBuffer, pszFormat, args);
1160 if (nLength > 0 && pszBuffer != NULL)
1161 {
1162 *this = TStringT(pszBuffer, nLength);
1163 soui_mem_wrapper::SouiFree(pszBuffer);
1164 return TRUE;
1165 }
1166 else
1167 {
1168 Empty();
1169 return FALSE;
1170 }
1171 }
1172
1173 void _AppendFormat(const tchar* pszFormat, va_list args)
1174 {

Callers

nothing calls this directly

Calls 2

TStringTClass · 0.85
FormatEnum · 0.50

Tested by

no test coverage detected