Ignore quoted strings during mixed case conversion

This commit is contained in:
rmoore1 2006-04-19 21:09:09 +00:00
parent ccc0a95dfa
commit 282b9f29e0

View File

@ -2,7 +2,7 @@
/****************************************************************************** /******************************************************************************
* *
* Module Name: ascase - Source conversion - lower/upper case utilities * Module Name: ascase - Source conversion - lower/upper case utilities
* $Revision: 1.15 $ * $Revision: 1.16 $
* *
*****************************************************************************/ *****************************************************************************/
@ -239,6 +239,23 @@ AsMixedCaseToUnderscores (
while (*SubBuffer) while (*SubBuffer)
{ {
/* Check for quoted string -- ignore */
if (*SubBuffer == '"')
{
SubBuffer++;
while (*SubBuffer && (*SubBuffer != '"'))
{
if (*SubBuffer == '\\')
{
SubBuffer++;
}
SubBuffer++;
}
SubBuffer++;
continue;
}
if (islower (*SubBuffer)) if (islower (*SubBuffer))
{ {
HasLowerCase = TRUE; HasLowerCase = TRUE;