HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Namespaces | Macros | Functions
glob.hpp File Reference

Defines utilities for handling glob patterns. More...

#include "path_location.hpp"
#include "../char_maps/char_maps.hpp"
#include "../utility/utility.hpp"
#include "../macros.hpp"
#include <vector>
#include <string>
#include <string_view>
#include <filesystem>
#include <variant>
#include <type_traits>
#include <coroutine>

Go to the source code of this file.

Data Structures

class  hi::v1::glob_pattern
 A glob pattern. More...
 
class  hi::v1::glob_pattern::token_type::any_character_type
 
class  hi::v1::glob_pattern::token_type::any_text_type
 
class  hi::v1::glob_pattern::token_type::any_directory_type
 

Namespaces

namespace  hi
 The HikoGUI namespace.
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Macros

#define HI_GLOB_APPEND_TEXT()
 

Functions

 hi_export_module (hikogui.path.glob)
 
hi_export generator< std::filesystem::path > hi::v1::glob (glob_pattern pattern) noexcept
 Find paths on the filesystem that match the glob pattern.
 
hi_export generator< std::filesystem::path > hi::v1::glob (std::string_view pattern) noexcept
 Find paths on the filesystem that match the glob pattern.
 
hi_export generator< std::filesystem::path > hi::v1::glob (std::string pattern) noexcept
 Find paths on the filesystem that match the glob pattern.
 
hi_export generator< std::filesystem::path > hi::v1::glob (char const *pattern) noexcept
 Find paths on the filesystem that match the glob pattern.
 
hi_export generator< std::filesystem::path > hi::v1::glob (std::filesystem::path pattern) noexcept
 Find paths on the filesystem that match the glob pattern.
 
template<path_range Locations>
hi_export generator< std::filesystem::path > hi::v1::glob (Locations &&locations, std::filesystem::path ref) noexcept
 Find paths on the filesystem that match the glob pattern.
 
template<path_range Locations>
hi_export generator< std::filesystem::path > hi::v1::glob (Locations &&locations, std::string_view ref) noexcept
 Find paths on the filesystem that match the glob pattern.
 
template<path_range Locations>
hi_export generator< std::filesystem::path > hi::v1::glob (Locations &&locations, std::string ref) noexcept
 Find paths on the filesystem that match the glob pattern.
 
template<path_range Locations>
hi_export generator< std::filesystem::path > hi::v1::glob (Locations &&locations, char const *ref) noexcept
 Find paths on the filesystem that match the glob pattern.
 

Detailed Description

Defines utilities for handling glob patterns.

Macro Definition Documentation

◆ HI_GLOB_APPEND_TEXT

#define HI_GLOB_APPEND_TEXT ( )
Value:
do { \
if (not text.empty()) { \
r.emplace_back(make_text(std::move(text))); \
text.clear(); \
} \
} while (false)
T move(T... args)