iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
path_and_file_verifier.hpp File Reference
#include "iox2/bb/static_string.hpp"
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  iox2
 
namespace  iox2::bb
 
namespace  iox2::bb::platform
 
namespace  iox2::bb::detail
 

Enumerations

enum class  iox2::bb::detail::RelativePathComponents : uint8_t { iox2::bb::detail::Reject , iox2::bb::detail::Accept }
 

Functions

template<uint64_t StringCapacity>
auto iox2::bb::detail::is_valid_path_entry (const bb::StaticString< StringCapacity > &name, RelativePathComponents relative_path_components) noexcept -> bool
 checks if the given string is a valid path entry. A path entry is the string between two path separators.
 
template<uint64_t StringCapacity>
auto iox2::bb::detail::is_valid_file_name (const bb::StaticString< StringCapacity > &name) noexcept -> bool
 checks if the given string is a valid filename. It must fulfill the requirements of a valid path entry (see, isValidPathEntry) and is not allowed to contain relative path components
 
template<uint64_t StringCapacity>
auto iox2::bb::detail::does_end_with_path_separator (const bb::StaticString< StringCapacity > &name) noexcept -> bool
 returns true if the provided name ends with a path separator, otherwise false
 
template<uint64_t StringCapacity>
auto iox2::bb::detail::is_valid_path_to_file (const StaticString< StringCapacity > &name) noexcept -> bool
 verifies if the given string is a valid path to a file
 
template<uint64_t StringCapacity>
auto iox2::bb::detail::is_valid_path_to_directory (const StaticString< StringCapacity > &name) noexcept -> bool
 returns true if the provided name is a valid path, otherwise false
 

Variables

constexpr uint64_t iox2::bb::platform::IOX2_NUMBER_OF_PATH_SEPARATORS = 1U
 
constexpr const char iox2::bb::platform::IOX2_PATH_SEPARATORS [IOX2_NUMBER_OF_PATH_SEPARATORS] = { '/' }
 
constexpr char iox2::bb::detail::ASCII_A { 'a' }
 
constexpr char iox2::bb::detail::ASCII_Z { 'z' }
 
constexpr char iox2::bb::detail::ASCII_CAPITAL_A { 'A' }
 
constexpr char iox2::bb::detail::ASCII_CAPITAL_Z { 'Z' }
 
constexpr char iox2::bb::detail::ASCII_0 { '0' }
 
constexpr char iox2::bb::detail::ASCII_9 { '9' }
 
constexpr char iox2::bb::detail::ASCII_DASH { '-' }
 
constexpr char iox2::bb::detail::ASCII_DOT { '.' }
 
constexpr char iox2::bb::detail::ASCII_COLON { ':' }
 
constexpr char iox2::bb::detail::ASCII_UNDERSCORE { '_' }