src/Utilities.cpp
std::string StripXPSysDir (const std::string& path)
{
    // does the path begin with it?
    if (path.find(GetXPSystemPath()) == 0)
        return path.substr(GetXPSystemPath().length());
    else
        return path;
}
// If a path starts with X-Plane's system directory it is stripped
If a path starts with X-Plane's system directory it is stripped
If a path starts with X - Plane ' s system directory it is stripped
std::string StripXPSysDir (const std::string& path)
{
    if (path.find(GetXPSystemPath()) == 0)
        return path.substr(GetXPSystemPath().length());
    else
        return path;
}
std :: string StripXPSysDir ( const std :: string & path ) { if ( path . find ( GetXPSystemPath ( ) ) == 0 ) return path . substr ( GetXPSystemPath ( ) . length ( ) ) ; else return path ; }
If a path starts with X-Plane's system directory it is stripped
If a path starts with X - Plane ' s system directory it is stripped
// does the path begin with it?