Common: rename InternalFormat to ArgFormat

This commit is contained in:
zilmar 2013-01-29 21:40:35 +11:00
parent a1ac10fc42
commit f346378a41
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
void stdstr::InternalFormat(const TCHAR * strFormat, va_list & args) void stdstr::ArgFormat(const TCHAR * strFormat, va_list & args)
{ {
if (strFormat != NULL) { if (strFormat != NULL) {
// declare buffer (default max buffer size = 32k) // declare buffer (default max buffer size = 32k)
@ -41,7 +41,7 @@ void stdstr::Format(const TCHAR * strFormat, ...)
{ {
va_list args; va_list args;
va_start(args, strFormat); va_start(args, strFormat);
InternalFormat(strFormat,args); ArgFormat(strFormat,args);
va_end(args); va_end(args);
} }

View File

@ -22,8 +22,6 @@ typedef std::vector<stdstr> strvector;
class stdstr: public tstring class stdstr: public tstring
{ {
protected:
void InternalFormat(const TCHAR * strFormat, va_list & args);
public: public:
stdstr(); stdstr();
stdstr( const tstring & str ); stdstr( const tstring & str );
@ -32,6 +30,8 @@ public:
// stdstr( const TCHAR * strBuff, size_t buffSize); // stdstr( const TCHAR * strBuff, size_t buffSize);
void Format(const TCHAR * strFormat, ...); void Format(const TCHAR * strFormat, ...);
void ArgFormat(const TCHAR * strFormat, va_list & args);
//stdstr& operator=(const TCHAR * rhs); //stdstr& operator=(const TCHAR * rhs);
void replace(const TCHAR search, const TCHAR replace ); void replace(const TCHAR search, const TCHAR replace );
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_list args;
va_start(args, strFormat); va_start(args, strFormat);
InternalFormat(strFormat,args); ArgFormat(strFormat,args);
va_end(args); va_end(args);
} }
}; };