Merge tag 'v0.22.10'
release v0.22.10
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "Traits.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/UriExtract.hxx"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -220,6 +221,12 @@ PathTraitsUTF8::Build(string_view a, string_view b) noexcept
|
||||
return BuildPathImpl<PathTraitsUTF8>(a, b);
|
||||
}
|
||||
|
||||
bool
|
||||
PathTraitsUTF8::IsAbsoluteOrHasScheme(const_pointer p) noexcept
|
||||
{
|
||||
return IsAbsolute(p) || uri_has_scheme(p);
|
||||
}
|
||||
|
||||
PathTraitsUTF8::const_pointer
|
||||
PathTraitsUTF8::GetBase(const_pointer p) noexcept
|
||||
{
|
||||
|
||||
@@ -274,6 +274,13 @@ struct PathTraitsUTF8 {
|
||||
return IsSeparator(*p);
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this any kind of absolute URI? (Unlike IsAbsolute(),
|
||||
* this includes URIs/URLs with a scheme)
|
||||
*/
|
||||
[[gnu::pure]] [[gnu::nonnull]]
|
||||
static bool IsAbsoluteOrHasScheme(const_pointer p) noexcept;
|
||||
|
||||
gcc_pure gcc_nonnull_all
|
||||
static bool IsSpecialFilename(const_pointer name) noexcept {
|
||||
return (name[0] == '.' && name[1] == 0) ||
|
||||
|
||||
Reference in New Issue
Block a user