model_server/machine_prefs/src/pref_registry.cxx
// Utility to expand meta chars in a string preference.
Utility to expand meta chars in a string preference.
Utility to expand meta chars in a string preference .
bool prefRegistry::expandMeta(int index)
{
    bool status = true;
    const genString unexpanded = prefTable[index]->unexpandedStrPref;
    genString &expanded = prefTable[index]->strPref;
    if ((char*)unexpanded && (unexpanded.length() > 0) ) {
        status = eval_shell_metachars(unexpanded, expanded);
        if (!status) prefTable[index]->strPref = unexpanded;
    } else {
        expanded = UNINITIALIZED_STRING_PREF;
    }
    return(status);
}
bool prefRegistry :: expandMeta ( int index ) { bool status = true ; const genString unexpanded = prefTable [ index ] -> unexpandedStrPref ; genString & expanded = prefTable [ index ] -> strPref ; if ( ( char * ) unexpanded && ( unexpanded . length ( ) > 0 ) ) { status = eval_shell_metachars ( unexpanded , expanded ) ; if ( ! status ) prefTable [ index ] -> strPref = unexpanded ; } else { expanded = UNINITIALIZED_STRING_PREF ; } return ( status ) ; }
Utility to expand meta chars in a string preference.
Utility to expand meta chars in a string preference .
// Make sure a non-null, non-empty value was found. // expand the value. // If the expansion failed, use the unexpanded value.