Common: rename InternalFormat to ArgFormat
This commit is contained in:
parent
a1ac10fc42
commit
f346378a41
|
@ -1,6 +1,6 @@
|
|||
#include "stdafx.h"
|
||||
|
||||
void stdstr::InternalFormat(const TCHAR * strFormat, va_list & args)
|
||||
void stdstr::ArgFormat(const TCHAR * strFormat, va_list & args)
|
||||
{
|
||||
if (strFormat != NULL) {
|
||||
// declare buffer (default max buffer size = 32k)
|
||||
|
@ -41,7 +41,7 @@ void stdstr::Format(const TCHAR * strFormat, ...)
|
|||
{
|
||||
va_list args;
|
||||
va_start(args, strFormat);
|
||||
InternalFormat(strFormat,args);
|
||||
ArgFormat(strFormat,args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@ typedef std::vector<stdstr> strvector;
|
|||
|
||||
class stdstr: public tstring
|
||||
{
|
||||
protected:
|
||||
void InternalFormat(const TCHAR * strFormat, va_list & args);
|
||||
public:
|
||||
stdstr();
|
||||
stdstr( const tstring & str );
|
||||
|
@ -32,6 +30,8 @@ public:
|
|||
// stdstr( const TCHAR * strBuff, size_t buffSize);
|
||||
|
||||
void Format(const TCHAR * strFormat, ...);
|
||||
void ArgFormat(const TCHAR * strFormat, va_list & args);
|
||||
|
||||
//stdstr& operator=(const TCHAR * rhs);
|
||||
void replace(const TCHAR search, const TCHAR replace );
|
||||
void replace(const TCHAR * search, const TCHAR replace );
|
||||
|
@ -53,7 +53,7 @@ public:
|
|||
{
|
||||
va_list args;
|
||||
va_start(args, strFormat);
|
||||
InternalFormat(strFormat,args);
|
||||
ArgFormat(strFormat,args);
|
||||
va_end(args);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue