ΒΆllvm::StringRef extension(
llvm::StringRef path,
llvm::sys::path::Style style = Style::native)
llvm::StringRef extension(
llvm::StringRef path,
llvm::sys::path::Style style = Style::native)
Description
Get extension. If filename contains a dot but not solely one or two dots, result is the substring of filename starting at (and including) the last dot, and ending at the end of \a path. Otherwise "".
Declared at: llvm/include/llvm/Support/Path.h:350
Parameters
- llvm::StringRef path
- Input path.
- llvm::sys::path::Style style = Style::native