FreeBSD/sys/contrib/dev/acpica/components/debugger/dbutils.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDbPrepNamestring
 *
 * PARAMETERS:  Name            - String to prepare
 *
 * RETURN:      None
 *
 * DESCRIPTION: Translate all forward slashes and dots to backslashes.
 *
 ******************************************************************************/
AcpiDbPrepNamestring
PARAMETERS:  Name            - String to prepare

None

Translate all forward slashes and dots to backslashes.
AcpiDbPrepNamestring PARAMETERS : Name - String to prepare None Translate all forward slashes and dots to backslashes .
void
AcpiDbPrepNamestring (
    char                    *Name)
{
    if (!Name)
    {
        return;
    }
    AcpiUtStrupr (Name);
    if (*Name == '/')
    {
        *Name = '\\';
    }
    if (ACPI_IS_ROOT_PREFIX (*Name))
    {
        Name++;
    }
    while (*Name)
    {
        if ((*Name == '/') ||
            (*Name == '\\'))
        {
            *Name = '.';
        }
        Name++;
    }
}
void AcpiDbPrepNamestring ( char * Name ) { if ( ! Name ) { return ; } AcpiUtStrupr ( Name ) ; if ( * Name == ' ' ) { * Name = ' \\ ' ; } if ( ACPI_IS_ROOT_PREFIX ( * Name ) ) { Name ++ ; } while ( * Name ) { if ( ( * Name == ' ' ) || ( * Name == ' \\ ' ) ) { * Name = ' ' ; } Name ++ ; } }
FUNCTION:    AcpiDbPrepNamestring
 PARAMETERS:  Name            - String to prepare
FUNCTION : AcpiDbPrepNamestring PARAMETERS : Name - String to prepare
/* Convert a leading forward slash to a backslash */ /* Ignore a leading backslash, this is the root prefix */ /* Convert all slash path separators to dots */