FWCore
Utilities
interface
stemFromPath.h
Go to the documentation of this file.
1
#ifndef FWCore_Utilities_stemFromPath_h
2
#define FWCore_Utilities_stemFromPath_h
3
4
#include <string_view>
5
6
namespace
edm
{
7
// This functions extracts the stem of a file from the path (= file
8
// name without the extension). The returned value is a string_view
9
// to the input string. Caller should ensure that the input string
10
// object lives long enough.
11
//
12
// The reason to have our own function instead of
13
// std::filesystem is that tehcnically these paths are not
14
// filesystem paths, but paths in CMS LFN/PFN space that (may) have
15
// different rules.
16
std::string_view
stemFromPath
(std::string_view
path
);
17
}
// namespace edm
18
19
#endif
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::stemFromPath
std::string_view stemFromPath(std::string_view path)
Definition:
stemFromPath.cc:4
castor_dqm_sourceclient_file_cfg.path
path
Definition:
castor_dqm_sourceclient_file_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16