vpr/src/base/read_route.cpp
/*Return actual name by extracting it out of the form of (name)*/
Return actual name by extracting it out of the form of (name)
Return actual name by extracting it out of the form of ( name )
static std::string format_name(std::string name) {
    if (name.length() > 2) {
        name.erase(name.begin());
        name.erase(name.end() - 1);
        return name;
    } else {
        VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
                        "%s should be enclosed by parenthesis",
                        name.c_str());
        return nullptr;
    }
}
static std :: string format_name ( std :: string name ) { if ( name . length ( ) > 2 ) { name . erase ( name . begin ( ) ) ; name . erase ( name . end ( ) - 1 ) ; return name ; } else { VPR_FATAL_ERROR ( VPR_ERROR_ROUTE , " " , name . c_str ( ) ) ; return nullptr ; } }
Return actual name by extracting it out of the form of (name)
Return actual name by extracting it out of the form of ( name )