|
|
string | scheme |
| |
|
string | authority |
| |
|
string | anchor |
| |
|
vector< string > | segments |
| |
|
char | separator = '/' |
| |
|
bool | has_trailing_separator = false |
| |
|
bool | is_absolute = false |
| |
◆ GetTrailingSeparator()
| string duckdb::Path::GetTrailingSeparator |
( |
| ) |
const |
|
inline |
7987 {
7988 return !segments.empty() && has_trailing_separator ? string(1, separator) : "";
7989 }
◆ GetScheme()
| const string & duckdb::Path::GetScheme |
( |
| ) |
const |
|
inline |
7990 {
7991 return scheme;
7992 }
◆ GetAuthority()
| const string & duckdb::Path::GetAuthority |
( |
| ) |
const |
|
inline |
7993 {
7994 return authority;
7995 }
◆ GetAnchor()
| const string & duckdb::Path::GetAnchor |
( |
| ) |
const |
|
inline |
7996 {
7997 return anchor;
7998 }
◆ GetSeparator()
| char duckdb::Path::GetSeparator |
( |
| ) |
const |
|
inline |
7999 {
8000 return separator;
8001 }
◆ HasScheme()
| bool duckdb::Path::HasScheme |
( |
| ) |
const |
|
inline |
8003 {
8004 return !scheme.empty();
8005 }
◆ HasAuthority()
| bool duckdb::Path::HasAuthority |
( |
| ) |
const |
|
inline |
8006 {
8007 return !authority.empty();
8008 }
◆ HasAnchor()
| bool duckdb::Path::HasAnchor |
( |
| ) |
const |
|
inline |
8009 {
8010 return !anchor.empty();
8011 }
◆ HasPathSegments()
| bool duckdb::Path::HasPathSegments |
( |
| ) |
const |
|
inline |
8016 {
8017 return !segments.empty();
8018 }
◆ HasTrailingSeparator()
| bool duckdb::Path::HasTrailingSeparator |
( |
| ) |
const |
|
inline |
8020 {
8021 return has_trailing_separator;
8022 }
◆ IsAbsolute()
| bool duckdb::Path::IsAbsolute |
( |
| ) |
const |
|
inline |
8024 {
8025 return is_absolute;
8026 }
◆ IsLocal()
| bool duckdb::Path::IsLocal |
( |
| ) |
const |
|
inline |
8029 {
8030
8032 }
static DUCKDB_API bool StartsWith(string str, string prefix)
Returns true if the target string starts with the given prefix.
◆ IsRemote()
| bool duckdb::Path::IsRemote |
( |
| ) |
const |
|
inline |
8034 {
8035 return !IsLocal();
8036 }
◆ GetPathSegments()
| const vector< string > & duckdb::Path::GetPathSegments |
( |
| ) |
const |
|
inline |
8038 {
8039 return segments;
8040 }
◆ Join() [1/2]
template<typename... Args>
| Path duckdb::Path::Join |
( |
const string & |
first, |
|
|
const Args &... |
rest |
|
) |
| const |
|
inline |
8047 {
8048 return Join(first).Join(rest...);
8049 }
◆ Join() [2/2]
8051 {
8052 Path result = *this;
8053 for (const auto &rhs : paths) {
8054 result = result.Join(rhs);
8055 }
8056 return result;
8057 }
◆ Normalize()
| static string duckdb::Path::Normalize |
( |
const string & |
input | ) |
|
|
inlinestatic |
8062 {
8063 return FromString(input).ToString();
8064 }
The documentation for this class was generated from the following file: