Return a simplified filename where the current path has been dropped if it occurs as a prefix of the given filename.
Return a simplified filename where a string has been dropped if it occurs as a prefix of the given filename.
Return a simplified filename where a string has been dropped if it occurs as a prefix of the given filename. The system separator character is also dropped if it occurs immediately after a non-empty prefix.
Support code for various sources.