MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / extension

Method extension

src/attributes.cpp:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 double lastModified() const { return lastModified_; }
74
75 std::string extension() const {
76 std::string::size_type pos = path_.find_last_of('.');
77 if (pos != std::string::npos)
78 return path_.substr(pos);
79 else
80 return ""; // #nocov
81 }
82
83 bool operator<(const FileInfo& other) const {
84 return path_ < other.path_;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected