FACT++  1.0
string ReplaceExt ( const string &  name,
bool  decomp 
)

Definition at line 57 of file zfits.cc.

References ReplaceEnd().

Referenced by main().

58 {
59  if (decomp)
60  return ReplaceEnd(name, ".zfits", ".fits");
61 
62  string out = ReplaceEnd(name, ".fits", ".zfits");
63  return ReplaceEnd(out, ".fits.gz", ".zfits");
64 }
string ReplaceEnd(const string &str, const string &expr, const string &repl)
Definition: zfits.cc:45

+ Here is the call graph for this function:

+ Here is the caller graph for this function: