Small annoyance with resource file names


#1

I have a problem including resource.
While the Jucer does a great job with file names handling (removing dash characters, converting the extension dot to underline…) there is a case that is not handled : file name starting with a digit.
A file such as “24-arrow-next.png” has been transformed into variable “24arrownext_png”, which is not a legal C++ identifier


#2

Ah, very annoying, but an easy fix - probably just adding

if (CharacterFunctions::isDigit (n[0])) n = T("_") + n;

somewhere near the end of the makeValidCppIdentifier() function would sort it out?