.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@11186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-06-20 14:04:05 +00:00
parent 7956025532
commit 7ceed6abb6
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}
}

View file

@ -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();