|
From: Daniel J S. <dan...@ie...> - 2006-04-04 19:44:02
|
Chris K wrote:
> I strongly propose that '}' should also be excluded from the valid font name
> characters, and therefore '{' as well. The new code would be:
>
>
>> localfontname = p;
>> while ((ch = *p) > ' ' && ch != '=' && ch != '*'
>> && ch != '{' && ch != '}')
>> ++p;
>> save = *(savepos=p);
Couldn't the string functions be utilized? I.e., "strspn()" and "isalnum()"
http://www.cppreference.com/stdstring/index.html
Dan
|