Browse Source

fix to allow jucer to handle resource files beginning with a digit

tags/2021-05-28
jules 17 years ago
parent
commit
248d26a2a8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      extras/the jucer/src/utility/jucer_UtilityFunctions.cpp

+ 3
- 0
extras/the jucer/src/utility/jucer_UtilityFunctions.cpp View File

@@ -223,6 +223,9 @@ const String makeValidCppIdentifier (String s,
n << words[i]; n << words[i];
} }
if (CharacterFunctions::isDigit (n[0]))
n = T("_") + n;
// make sure it's not a reserved c++ keyword.. // make sure it's not a reserved c++ keyword..
static const tchar* const reservedWords[] = static const tchar* const reservedWords[] =
{ {


Loading…
Cancel
Save