mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 12:59:18 +03:00
Ignore quoted strings during mixed case conversion
This commit is contained in:
parent
ccc0a95dfa
commit
282b9f29e0
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: ascase - Source conversion - lower/upper case utilities
|
||||
* $Revision: 1.15 $
|
||||
* $Revision: 1.16 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -239,6 +239,23 @@ AsMixedCaseToUnderscores (
|
||||
|
||||
while (*SubBuffer)
|
||||
{
|
||||
/* Check for quoted string -- ignore */
|
||||
|
||||
if (*SubBuffer == '"')
|
||||
{
|
||||
SubBuffer++;
|
||||
while (*SubBuffer && (*SubBuffer != '"'))
|
||||
{
|
||||
if (*SubBuffer == '\\')
|
||||
{
|
||||
SubBuffer++;
|
||||
}
|
||||
SubBuffer++;
|
||||
}
|
||||
SubBuffer++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (islower (*SubBuffer))
|
||||
{
|
||||
HasLowerCase = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user