mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-19 06:06:54 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@11186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7956025532
commit
7ceed6abb6
2 changed files with 4 additions and 4 deletions
|
|
@ -104,16 +104,16 @@ WString CSCZGetIndexLetter(const wchar *s, int)
|
|||
temp[0] = temp[1] = temp[2] = 0;
|
||||
if(*s <= 2047 && IsLetter(*s)) // IsLetter
|
||||
{
|
||||
temp[0] = ToUpper(*s);
|
||||
temp[0] = (wchar)ToUpper(*s);
|
||||
if(s[1] <= 2047 && IsLetter(s[1]))
|
||||
temp[1] = ToLower(s[1]);
|
||||
temp[1] = (wchar)ToLower(s[1]);
|
||||
if(temp[0] != 'C' || temp[1] != 'h')
|
||||
temp[1] = 0;
|
||||
switch(ToUpper(ToAscii(*s)))
|
||||
{
|
||||
case 'A': case 'E': case 'I': case 'N':
|
||||
case 'O': case 'T': case 'U': case 'Y':
|
||||
temp[0] = ToAscii(temp[0]);
|
||||
temp[0] = (wchar)ToAscii(temp[0]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ void RichPara::StorePart::Store(Lines& lines, const Part& part, int pinc)
|
|||
else
|
||||
if(IsLower(c)) {
|
||||
*f++ = &cfmt;
|
||||
c = ToUpper(c);
|
||||
c = (wchar)ToUpper(c);
|
||||
h->ascent = cfi.GetAscent();
|
||||
h->descent = cfi.GetDescent();
|
||||
h->external = cfi.GetExternal();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue