| 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 | { |