comparison lwlib/xlwmenu.c @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents a86b2b5e0111
children de805c49cfc1
comparison
equal deleted inserted replaced
403:9f011ab08d48 404:2f8bb876ab1d
477 #endif 477 #endif
478 478
479 Boolean firstp = True; 479 Boolean firstp = True;
480 while (*in) 480 while (*in)
481 { 481 {
482 char ch = massaged_resource_char[(unsigned char) *in++]; 482 if (*in == '%' && *(in + 1) == '_')
483 if (ch) 483 in += 2;
484 else
484 { 485 {
485 int int_ch = (int) (unsigned char) ch; 486 char ch;
486 *out++ = firstp ? tolower (int_ch) : toupper (int_ch); 487
487 firstp = False; 488 if (*in == '%' && *(in + 1) == '%')
488 while ((ch = massaged_resource_char[(unsigned char) *in++]) != '\0') 489 in++;
489 *out++ = ch; 490 ch = massaged_resource_char[(unsigned char) *in++];
490 if (!*(in-1)) /* Overshot the NULL byte? */ 491 if (ch)
491 break; 492 {
493 int int_ch = (int) (unsigned char) ch;
494 *out++ = firstp ? tolower (int_ch) : toupper (int_ch);
495 firstp = False;
496 while ((ch = massaged_resource_char[(unsigned char) *in++])
497 != '\0')
498 *out++ = ch;
499 if (!*(in-1)) /* Overshot the NULL byte? */
500 break;
501 }
492 } 502 }
493 } 503 }
494 *out = 0; 504 *out = 0;
495 505
496 #ifdef PRINT_XLWMENU_RESOURCE_CONVERSIONS 506 #ifdef PRINT_XLWMENU_RESOURCE_CONVERSIONS