本文整理汇总了C++中TChar::GetUpperCase方法的典型用法代码示例。如果您正苦于以下问题:C++ TChar::GetUpperCase方法的具体用法?C++ TChar::GetUpperCase怎么用?C++ TChar::GetUpperCase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TChar
的用法示例。
在下文中一共展示了TChar::GetUpperCase方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CharIsDtmf
TBool CATDtmfVts::CharIsDtmf(const TChar& aDtmfChar)
{
LOGTEXT(_L8("[Ltsy CallControl] Starting CATDtmfVts::IsDtmf()"));
TUint uC = aDtmfChar.GetUpperCase();
switch(uC)
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'A':
case 'B':
case 'C':
case 'D':
case '*':
case '#':
return ETrue;
}
return EFalse;
}
示例2: ReplaceVietnameseChar
// -----------------------------------------------------------------------------
// For Vietnamese AS
//
// -----------------------------------------------------------------------------
//
inline TChar ReplaceVietnameseChar( const TChar aCh )
{
TChar Char = aCh.GetUpperCase();
if ( (Char >= 0x00C0 && Char <= 0x00C3) || Char == 0x102 ||
((Char >= 0x1EA0 && Char <= 0x1EB6) && Char%2 == 0) )
{
Char = 0x0041; // A
return Char;
}
if ( (Char >= 0x00C8 && Char <= 0x00CA) ||
((Char >= 0x1EB8 && Char <= 0x1EC6) && Char%2 == 0) )
{
Char = 0x0045; // E
return Char;
}
if ( Char == 0x00CC || Char == 0x00CD || Char == 0x0128 ||
Char == 0x1EC8 || Char == 0x1ECA )
{
Char = 0x0049; // I
return Char;
}
if ( (Char >= 0x00D2 && Char <= 0x00D5 ) || Char == 0x1ECE || Char == 0x1ECC ||
((Char >= 0x1ED0 && Char <= 0x1ED8) && Char%2 == 0))
{
Char = 0x004F; // O
return Char;
}
if ( Char == 0x1EDA || Char == 0x1EDC || Char == 0x1EDE ||
Char == 0x1EE0 || Char == 0x1EE2 )
{
Char = 0x01A0; // O-horn
return Char;
}
if ( Char == 0x00DA || Char == 0x00D9 || Char == 0x0168 ||
Char == 0x1EE4 || Char == 0x1EE6 )
{
Char = 0x0055; // U
return Char;
}
if ( (Char >= 0x1EE8 && Char <= 0x1EF0) && Char%2 == 0 )
{
Char = 0x01AF; // U-horn
return Char;
}
if ( ((Char >= 0x1EF2 && Char <= 0x1EF8) && Char%2 == 0) || Char == 0x00DD )
{
Char = 0x0059; // Y
return Char;
}
return Char;
}
示例3: UpdateNextCharsL
// -----------------------------------------------------------------------------
// For Devanagari AS
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
inline void UpdateNextCharsL( HBufC*& aNextChars, const TDesC& aItemString )
{
TChar searchChar = aItemString[0];
//Check if this is an Indic special ligature
if ( IsIndicConsonant(searchChar) && aItemString.Length() > 2
&& IsSpecialIndicLigature(aItemString)
&& KErrNotFound == (*aNextChars).Find(aItemString.Mid(0,3)) )
{
//Check if we have enough space for 3 more characters
if( aNextChars->Des().Length() >= aNextChars->Des().MaxLength()-3 )
{
aNextChars = aNextChars->ReAllocL( aNextChars->Des().MaxLength()+10 );
}
aNextChars->Des().Append( aItemString.Mid(0,3) );
}
else
{
//check if this is an Indic combined Char
if ( IsIndicCombinedChar(searchChar) )
{
searchChar = RemoveIndicNukta( searchChar );
}
//Now update the nextChars string
TInt strLength = aNextChars->Length();
for ( TInt i(0); i < strLength ; ++i )
{
if ( IsSpecialIndicLigature( (*aNextChars).Mid( i ) ) )
{
//As aItemString is not a special ligature (checked above)
//we can move directly to the 3rd character from here
i+=2;
}
else if ( searchChar.GetUpperCase() == (*aNextChars)[i] ||
searchChar.GetLowerCase() == (*aNextChars)[i] )
{
//already exists - do nothing
return;
}
//else continue the loop
}
//So this character is not yet in the list of nextChars.
if ( aNextChars->Des().Length() == aNextChars->Des().MaxLength() )
{
aNextChars = aNextChars->ReAllocL( aNextChars->Des().MaxLength()+10 );
}
aNextChars->Des().Append( searchChar );
}
}
示例4: driveStringValue
Vector<String> PluginDatabase::defaultPluginDirectories()
{
Vector<String> directories;
//find the installation drive
TDriveList drivelist;
TChar driveLetter;
RFs fsSession;
if (fsSession.Connect() == KErrNone && fsSession.DriveList(drivelist) == KErrNone) {
for (TInt driveNumber = EDriveA; driveNumber <= EDriveZ; driveNumber++) {
if (drivelist[driveNumber] && fsSession.DriveToChar(driveNumber, driveLetter) == KErrNone) {
QString driveStringValue(QChar((uint)driveLetter.GetUpperCase()));
QString stubDirPath;
stubDirPath.append(driveStringValue);
stubDirPath.append(QT_PLUGIN_FOLDER);
if (QFileInfo(stubDirPath).exists())
directories.append(stubDirPath);
}
}
}
fsSession.Close();
return directories;
}