From 248d26a2a88e0cd906ceb0089021883abeefbcf5 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 18 Dec 2008 19:30:43 +0000 Subject: [PATCH] fix to allow jucer to handle resource files beginning with a digit --- extras/the jucer/src/utility/jucer_UtilityFunctions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp b/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp index c14f28883c..28ef0ca788 100644 --- a/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp +++ b/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp @@ -223,6 +223,9 @@ const String makeValidCppIdentifier (String s, n << words[i]; } + if (CharacterFunctions::isDigit (n[0])) + n = T("_") + n; + // make sure it's not a reserved c++ keyword.. static const tchar* const reservedWords[] = {