Which of the following piecewise functions matches the graph?

f(x)={2−x if x≤0x−5 if x>0
f(x)={2−x if x≤0x−5 if x>0
f(x)={-x1 if x<0 -x+2 if x >1

The first two piecewise functions provided are the same and do not match the given graph.

The third piecewise function, f(x)={-x1 if x<0 -x+2 if x >1, could potentially match the given graph. However, without knowing the specific values for x in the given graph, it is not possible to definitively determine if this function matches the graph.