FACT++  1.0
string ReplaceEnd ( const string &  str,
const string &  expr,
const string &  repl 
)

Definition at line 45 of file zfits.cc.

Referenced by ReplaceExt().

46 {
47  string out(str);
48 
49  const size_t p = out.rfind(expr);
50  if (p==out.size()-expr.length())
51  out.replace(p, expr.length(), repl);
52 
53  return out;
54 }
char str[80]
Definition: test_client.c:7

+ Here is the caller graph for this function: