本文整理汇总了C++中ustring::uppercase方法的典型用法代码示例。如果您正苦于以下问题:C++ ustring::uppercase方法的具体用法?C++ ustring::uppercase怎么用?C++ ustring::uppercase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ustring
的用法示例。
在下文中一共展示了ustring::uppercase方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removeAccentFromChar
ustring removeAccentFromChar (ustring ch) {
bool isUp = isUpperCase (ch);
ch = ch.lowercase ();
_size_t_ posVowel = getVowelPos (ch);
if (posVowel != ustring::npos)
ch = _(Vowels[posVowel]);
if (isUp)
ch = ch.uppercase ();
return ch;
}
示例2: addAccentToChar
ustring addAccentToChar (ustring ch, Accents accent) {
bool isUp = isUpperCase (ch);
ch = ch.lowercase ();
_size_t_ pos = Vowels.find (ch);
if (pos != ustring::npos)
ch = _(VowelsWithAccents[pos * NUMBER_OF_ACCENTS + accent]);
if (isUp)
ch = ch.uppercase ();
return ch;
}
示例3: removeMarkFromChar
ustring removeMarkFromChar (ustring ch) {
bool isUp = isUpperCase (ch);
_size_t_ pos = getMarkedCharPos (ch);
_size_t_ accent = getAccentFromChar (ch);
if (pos != ustring::npos)
ch = addAccentToChar (_(LettersWithoutMarks[pos]), accent);
if (isUp)
ch = ch.uppercase ();
return ch;
}
示例4: addMarkToChar
ustring addMarkToChar (ustring ch, Marks mark) {
bool isUp = isUpperCase (ch);
_size_t_ accent = getAccentFromChar (ch);
_size_t_ pos = LettersMayChangeMarks.find
(removeAccentFromChar (ch).lowercase ());
if (pos != ustring::npos) {
ch = addAccentToChar
(_(LettersWithMarks
[mark * LettersWithoutMarks.length () + pos]),
accent);
if (isUp)
ch = ch.uppercase ();
}
return ch;
}
示例5: isUpperCase
bool isUpperCase (ustring ch) {
return ch.uppercase () == ch;
}