mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-18 03:30:56 +00:00
Tidyup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4602 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
76f1d48a3a
commit
db12a4a249
1 changed files with 17 additions and 14 deletions
|
@ -1315,33 +1315,36 @@ handle_printf_atsign (FILE *stream,
|
||||||
z = fastZone(self);
|
z = fastZone(self);
|
||||||
s = NSZoneMalloc(z, sizeof(unichar)*len);
|
s = NSZoneMalloc(z, sizeof(unichar)*len);
|
||||||
[self getCharacters: s];
|
[self getCharacters: s];
|
||||||
while (count<len)
|
while (count < len)
|
||||||
{
|
{
|
||||||
if ((*whitespceImp)(whitespce, cMemberSel, s[count]))
|
if ((*whitespceImp)(whitespce, cMemberSel, s[count]))
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
found=YES;
|
found = YES;
|
||||||
while ((*whitespceImp)(whitespce, cMemberSel, s[count])
|
while (count < len
|
||||||
&& (count < len))
|
&& (*whitespceImp)(whitespce, cMemberSel, s[count]))
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (found)
|
if (count < len)
|
||||||
{
|
{
|
||||||
s[count] = uni_toupper(s[count]);
|
if (found)
|
||||||
count++;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
while (!(*whitespceImp)(whitespce, cMemberSel, s[count])
|
|
||||||
&& (count < len))
|
|
||||||
{
|
{
|
||||||
s[count] = uni_tolower(s[count]);
|
s[count] = uni_toupper(s[count]);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (count < len
|
||||||
|
&& !(*whitespceImp)(whitespce, cMemberSel, s[count]))
|
||||||
|
{
|
||||||
|
s[count] = uni_tolower(s[count]);
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
found=NO;
|
found = NO;
|
||||||
}
|
}
|
||||||
return AUTORELEASE([[NSString allocWithZone: NSDefaultMallocZone()]
|
return AUTORELEASE([[NSString allocWithZone: NSDefaultMallocZone()]
|
||||||
initWithCharactersNoCopy: s length: len fromZone: z]);
|
initWithCharactersNoCopy: s length: len fromZone: z]);
|
||||||
|
|
Loading…
Reference in a new issue