当前位置: 首页>>代码示例>>C++>>正文


C++ TBuf8::AppendFormatList方法代码示例

本文整理汇总了C++中TBuf8::AppendFormatList方法的典型用法代码示例。如果您正苦于以下问题:C++ TBuf8::AppendFormatList方法的具体用法?C++ TBuf8::AppendFormatList怎么用?C++ TBuf8::AppendFormatList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TBuf8的用法示例。


在下文中一共展示了TBuf8::AppendFormatList方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Printf

void Logging::Printf(const TDesC8& /*aSubTag*/, TLogEntryType aType, TRefByValue<const TDesC8> aFmt, VA_LIST& aList)
    {
    TBuf8<250> buf;
	TLogIgnoreOverflow8 overflowHandler;
	buf.AppendFormatList(aFmt, aList, &overflowHandler);
	UTracePfAny(KPrimaryFilter, KText, ETrue, EFalse, aType, buf.Ptr(), buf.Size());
    }
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:7,代码来源:factory_log.cpp

示例2: LogText

void CImapIO::LogText(TRefByValue<const TDesC8> aFmt,...)
	{
	VA_LIST list;
	VA_START(list,aFmt);
	TBuf8<1024> aBuf;

	aBuf.AppendFormatList(aFmt,list);
	LogText(aBuf);
	}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:9,代码来源:IMAPIO.CPP

示例3:

void CTestStepC32Util::Log(TRefByValue<const TDesC8> aFormat, ...)
	{
    VA_LIST vaList;
	VA_START( vaList, aFormat );

	TTruncateOverflow8 truncateOverflow;
	TBuf8<512> buf;
	buf.AppendFormatList( aFormat, vaList, &truncateOverflow );
	Logger().Write(buf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:10,代码来源:te_c32utilsteps.cpp

示例4: WriteFormat

EXPORT_C void TcLog::WriteFormat( TRefByValue< const TDesC8 > aFormat, ... )
	{
	VA_LIST list;
	VA_START( list, aFormat );

	TBuf8< KTcBufferSize > buf;
	TTcDes8Overflow handler;
	buf.AppendFormatList( aFormat, list, &handler );

	Write( buf );
	}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:11,代码来源:TcLog.cpp

示例5: LogL

void CSWICertStoreTool::LogL(TRefByValue<const TDesC8> aFmt, ...)
	{
	TBuf8<KMaxLineLength> buf;
	VA_LIST args;
	VA_START(args, aFmt);
	buf.AppendFormatList(aFmt, args);
	VA_END(args);

	User::LeaveIfError(iLogFile.Write(buf));
	User::LeaveIfError(iLogFile.Write(KNewLine));
	User::LeaveIfError(iLogFile.Flush());
	}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:12,代码来源:CSWICertStoreTool.cpp

示例6: WriteNoReturn

void CActiveConsole::WriteNoReturn(TRefByValue<const TDesC8> aFmt, ...)
	{
	VA_LIST list;
	VA_START(list, aFmt);

	TBuf8<0x100> buf;
	buf.AppendFormatList(aFmt, list);
	TBuf<0x100> wideBuf;
	wideBuf.Copy(buf);
	iConsole.Write(wideBuf);

	(void)RDebug::Print(wideBuf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:13,代码来源:activeconsole.cpp

示例7: Log

void CTestStepESockUtil::Log(TRefByValue<const TDesC8> aFormat, ...)
	{
    VA_LIST vaList;
	VA_START( vaList, aFormat );

	TTruncateOverflow8 truncateOverflow;
	TBuf8<512> buf;
	buf.AppendFormatList( aFormat, vaList, &truncateOverflow );
	TBuf<512> dispBuf;
	dispBuf.Copy(buf);

	// write to the console
	CTestStep::Log(_L("%S"), &dispBuf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:14,代码来源:ts_esockutilsteps.cpp

示例8: OstPrintf

/**
Prints a formatted string by outputting a trace packet with the Trace ID KFormatPrintf.

If the specified string is too long to fit into a single trace packet
a multipart trace is generated.

@deprecated

@param aContext 	The trace packet context. @see TTraceContext
@param aFmt 		The format string. This must not be longer than 256 characters.
@param ...			A variable number of arguments to be converted to text as dictated
					by the format string.

@return 			The trace packet was/was not output.

@See BTrace::TMultipart
*/
EXPORT_C TBool OstPrintf(const TTraceContext& aContext, TRefByValue<const TDesC8> aFmt,...)
	{
	if(IsTraceActive(aContext))
		{
		GET_PC(pc);
		TTruncateOverflow8 overflow;
		VA_LIST list;
		VA_START(list,aFmt);
		TBuf8<KMaxPrintfSize> buf;
		// coverity[uninit_use_in_call : FALSE]
		buf.AppendFormatList(aFmt,list,&overflow);
		return OST_SECONDARY_ANY(aContext.GroupId(), aContext.ComponentId(), aContext.HasThreadIdentification(), aContext.HasProgramCounter(), pc, KFormatPrintf, buf.Ptr(), buf.Size());
		}
	return EFalse;
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:32,代码来源:ost.cpp

示例9: WriteNoReturn

void CActiveConsole::WriteNoReturn(TRefByValue<const TDesC8> aFmt, ...)
	{
	OstTraceFunctionEntry0( CACTIVECONSOLE_WRITENORETURN_ENTRY );
	VA_LIST list;
	VA_START(list, aFmt);

	TBuf8<0x100> buf;
	buf.AppendFormatList(aFmt, list);
	TBuf<0x100> wideBuf;
	wideBuf.Copy(buf);
	iConsole.Write(wideBuf);

	RDebug::Print(wideBuf);
	OstTraceFunctionExit0( CACTIVECONSOLE_WRITENORETURN_EXIT );
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:15,代码来源:activeconsole.cpp

示例10:

void CMainControlEngine::WriteLog8(TRefByValue<const TDesC8> aFmt, ...)
{
#ifdef __WRITE_LOG__
	//UtilityTools::WriteLogsL(_L("WriteLog8"));
	TBuf8<400> tBuf;
	VA_LIST	list;
	VA_START(list,aFmt);
	tBuf.Zero();
	tBuf.AppendFormatList(aFmt,list);
	VA_END(list);

	TBuf<64>	time16;
	TBuf8<64>	time8;
	TTime	tTime;
	tTime.HomeTime();
	tTime.FormatL(time16, _L("%D%M%Y%2/%3 %H:%T:%S "));
	time8.Copy(time16);

	iFile.Write(time8);
	iFile.Write(tBuf);
	iFile.Write(_L8("\x0a\x0d"));
	//UtilityTools::WriteLogsL(_L("WriteLog8 End"));
#endif
}
开发者ID:flaithbheartaigh,项目名称:wapbrowser,代码行数:24,代码来源:MainControlEngine.cpp


注:本文中的TBuf8::AppendFormatList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。