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


C++ TChar::UpperCase方法代码示例

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


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

示例1: ProcessKeyPressL

void CActiveConsole::ProcessKeyPressL(TChar aChar)
	{
	if (aChar == EKeyEscape)
		{
		PRINT(_L("CActiveConsole: ESC key pressed -> stopping active scheduler...\n"));
		gAbort = ETrue;
		CActiveScheduler::Stop();
		return;
		}
	aChar.UpperCase();
	GetCharacter();
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:12,代码来源:t_smpsoak.cpp

示例2: DriveExists

TBool ScrShotsGenUtils::DriveExists(TChar aDriveChar)
{
    SLOGF(_L("ScrShotsGenUtils::DriveExists <<"));
    RFs fs;
    TDriveList dList;
    TBool drvExists = EFalse;
    if(fs.Connect() == KErrNone){
        fs.DriveList(dList);
        aDriveChar.UpperCase();
        unsigned int intval = aDriveChar.operator unsigned int(); 
        if(dList[intval - 65]){
            SLOGF(_L("Drive found"));
            drvExists = ETrue;
        }
        fs.Close();
    }
    SLOGF(_L("ScrShotsGenUtils::DriveExists >>"));
    return drvExists;
}
开发者ID:eminemence,项目名称:pre-2013-prjs,代码行数:19,代码来源:ScrShotsGenUtils.cpp

示例3: ProcessKeyPress

void CMessageKeyProcessor::ProcessKeyPress(TChar aChar)
	{

	TInt error = KErrNone;

    aChar.UpperCase();
	switch(aChar)
		{
		case 'Q':
		case EKeyEscape:
			{
			TInt err = KErrNone;
			for(TInt j=0; j<KMaxDrives; j++)
				{
				err = RestoreMount(j);

				if (err)
					{
					// Mount is busy/locked and can not be restored.
					break;
					}

				}

			if (err == KErrNone)
				{
				CActiveScheduler::Stop();
				return;
				}

			}
			break;

#if defined(_DEBUG)
		case 'T':
			iTraceEnable = !iTraceEnable;
			if (iTraceEnable)	// 0x44008401
				User::SetDebugMask(KHARDWARE|KDLL|KSCRATCH|KPOWER|KMEMTRACE);
			else
				User::SetDebugMask(0);
			break;
#endif

		case 'D':
			if(++selectedDriveIndex >= PropertyHandlers::allDrivesStatus.Length()/2)
				{
				selectedDriveIndex = 0;
				}
			ShowDriveSelection();
			break;

		case 'M':
			if(PropertyHandlers::allDrivesStatus.Length())
				{
				MountMsFs(PropertyHandlers::allDrivesStatus[selectedDriveIndex*2]);
				}
			break;

		case 'U':
			if(PropertyHandlers::allDrivesStatus.Length())
				{
				RestoreMount(PropertyHandlers::allDrivesStatus[selectedDriveIndex*2]);
				}
			break;

		case 'L':
			{
			// lock unprotected drive
			TMediaPassword password;
			MakePassword(password);

			_LIT(KEmpty, "");
			TMediaPassword nul;
			nul.Copy(KEmpty);
			error = fs.LockDrive(PropertyHandlers::allDrivesStatus[selectedDriveIndex*2],
                                 nul, password, ETrue);
			console->SetPos(0,9);
			LogPrint(_L("LockDrive %S (%d)"), (error?&KError:&KOk), error);
			break;
			}

		case 'I':
            {
            // lock password protected drive
            TMediaPassword password;
            MakePassword(password);
            error = fs.LockDrive(PropertyHandlers::allDrivesStatus[selectedDriveIndex*2],
                                 password, password, ETrue);
            console->SetPos(0,9);
            LogPrint(_L("LockDrive %S (%d)"), (error?&KError:&KOk), error);
            break;
            }

        case 'N':
            {
            TMediaPassword password;
            MakePassword(password);
            error = fs.UnlockDrive(PropertyHandlers::allDrivesStatus[selectedDriveIndex*2],
                                   password, ETrue);
            Clear(9);
//.........这里部分代码省略.........
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:101,代码来源:usbtestclient.cpp

示例4: ParseCommandLine

void ParseCommandLine()
{
    TBuf<0x100> cmd;
    User::CommandLine(cmd);
    TLex lex(cmd);

    for (TPtrC token=lex.NextToken(); token.Length() != 0; token.Set(lex.NextToken()))
    {
        if (token.MatchF(RProcess().FileName())==0)
        {
            continue;
        }

        if (token.CompareF(_L("-m"))== 0)
        {
            gMisalignedReadWrites = ETrue;
            continue;
        }
        if (token.CompareF(_L("-r"))== 0)
        {
            gReadCachingOn = EFalse;
            continue;
        }
        if (token.CompareF(_L("+r"))== 0)
        {
            gReadCachingOn = ETrue;
            continue;
        }
        if (token.CompareF(_L("-w"))== 0)
        {
            gWriteCachingOn = EFalse;
            continue;
        }
        if (token.CompareF(_L("+w"))== 0)
        {
            gWriteCachingOn = ETrue;
            continue;
        }

        if (token.CompareF(_L("-f"))== 0)
        {
            gFlushAfterWrite = EFalse;
            continue;
        }
        if (token.CompareF(_L("+f"))== 0)
        {
            gFlushAfterWrite = ETrue;
            continue;
        }
        if (token.CompareF(_L("+s"))== 0)
        {
            gSharedMemory = ETrue;
            continue;
        }
        if (token.CompareF(_L("+x"))== 0)
        {
            gFragSharedMemory = ETrue;
            continue;
        }

        if (token.CompareF(_L("+q"))== 0)
        {
            gFileSequentialModeOn = ETrue;
            continue;
        }
        if (token.CompareF(_L("-q"))== 0)
        {
            gFileSequentialModeOn = EFalse;
            continue;
        }

        test.Printf(_L("CLP=%S\n"),&token);

        if(token.Length()!=0)
        {
            gDriveToTest=token[0];
            gDriveToTest.UpperCase();
        }
        else
            gDriveToTest='C';

#if defined SYMBIAN_TEST_COPY
        token.Set(lex.NextToken());
        if(token.Length()!=0)
        {
            gDriveToTest2=token[0];
            gDriveToTest2.UpperCase();
        }
        else
            gDriveToTest2='C';
        test.Printf(_L("CLP2=%S\n"),&token);
#endif

    }
}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:95,代码来源:t_fsysbm.cpp

示例5: ProcessKeyPressL

void CActiveConsole::ProcessKeyPressL(TChar aChar)
	{
	if (aChar == EKeyEscape)
		{
		PRINT(_L("CActiveConsole: ESC key pressed -> stopping active scheduler...\n"));
		CActiveScheduler::Stop();
		return;
		}
	aChar.UpperCase();
	if (iCmdGetValue != 0 && aChar == '\r')
		{
		if (iLastChar == 'K')
			{
			iValue *= iGetHexValue ? 0x400 : 1000;
			}
		if (iLastChar == 'M')
			{
			iValue *= iGetHexValue ? 0x10000 : 1000000;
			}
		PRINT1(_L("CActiveConsole: Value %d\n"),iValue);
		ProcessValue();
		}
	if (iCmdGetValue != 0 )
		{
		if (iGetHexValue)
			{
			if (aChar.IsDigit())
				{
				iValue = iValue * 16 + aChar.GetNumericValue();
			}
			else
				{
				if (aChar.IsHexDigit())
					{
					iValue = iValue * 16 + (TUint)aChar - 'A' + 10;
					}
				else
					{
						if (aChar != 'K' && aChar != 'M')
						{
						PRINT(_L("Illegal hexadecimal character - Enter command\n"));
						iCmdGetValue = 0;
						}
					}
				}
			}
		else
			{
			if (aChar.IsDigit())
				{
				iValue = iValue * 10 + aChar.GetNumericValue();
				}
			else
				{
				if ((aChar == 'X') && (iLastChar == '0') && (iValue == 0))
					iGetHexValue = ETrue;
				else
					{
					if (aChar != 'K' && aChar != 'M')
						{
						test.Printf(_L("Illegal decimal character - Enter command\n"));
						iCmdGetValue = 0;							
						}
					}
				}
			}
		}
	else
		{
		switch (aChar)
			{
			case 'F' :
				TESTNEXT(_L("Flushing Cache"));
				test_KErrNone(DPTest::FlushCache());
				ShowMemoryUse();
				iPrompt = ETrue;
				break;
				
			case 'I' :
				CacheSize(0,0);
				ShowMemoryUse();
				iPrompt = ETrue;
				break;
	
			case 'Q' :
				gQuiet = ETrue;
				iPrompt = ETrue;
				break;

			case 'V' :
				gQuiet = EFalse;
				iPrompt = ETrue;
				break;
				
			case '?' :
				ShowHelp();
				break;

			case '=' :
				iCmdGetValue = iLastChar;
//.........这里部分代码省略.........
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:101,代码来源:t_wdpsoak.cpp


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