Lines Matching refs:std

107 // get_env_var() - returns a std::string of `name`. if report_failure is true, then it will log to stderr that it didn't find the
110 std::string get_env_var(std::string const& name, bool report_failure = true);
121 EnvVarWrapper(std::string const& name) noexcept : name(name) {
126 EnvVarWrapper(std::string const& name, std::string const& value) noexcept : name(name), cur_value(value) {
141 void set_new_value(std::string const& value) {
145 void add_to_list(std::string const& list_item) {
157 std::string name;
158 std::string cur_value;
159 std::string initial_value;
177 void print_error_message(LSTATUS status, const char* function_name, std::string optional_message = "");
184 std::string make_native(std::string const&);
195 path(std::string const& in) : contents(make_native(in)) {}
196 path(const char* in) : contents(make_native(std::string(in))) {}
200 path& operator+=(std::string const& in);
205 path& operator/=(std::string const& in);
210 path operator+(std::string const& in) const;
215 path operator/(std::string const& in) const;
231 std::string const& str() const { return contents; }
232 std::string& str() { return contents; }
240 std::string contents;
243 std::string fixup_backslashes_in_path(std::string const& in_path);
251 explicit FolderManager(path root_path, std::string name) noexcept;
259 path write_manifest(std::string const& name, std::string const& contents);
262 void add_existing_file(std::string const& file_name);
265 void remove(std::string const& name);
268 path copy_file(path const& file, std::string const& new_name);
273 std::vector<std::string> get_files() const { return files; }
277 std::vector<std::string> files;
281 // copy the contents of a std::string into a char array and add a null terminator at the end
282 // src - std::string to read from
285 inline void copy_string_to_char_array(std::string const& src, char* dst, size_t size_dst) { dst[src.copy(dst, size_dst - 1)] = 0; }
289 std::string narrow(const std::wstring& utf16);
291 std::wstring widen(const std::string& utf8);
297 std::wstring lib_path_utf16 = widen(lib_path);
435 inline std::ostream& operator<<(std::ostream& os, const VkResult& result) {
542 inline std::string version_to_string(uint32_t version) {
543 std::string out = std::to_string(VK_API_VERSION_MAJOR(version)) + "." + std::to_string(VK_API_VERSION_MINOR(version)) + "." +
544 std::to_string(VK_API_VERSION_PATCH(version));
545 if (VK_API_VERSION_VARIANT(version) != 0) out += std::to_string(VK_API_VERSION_VARIANT(version)) + "." + out;
567 std::vector<type> name; \
572 class_name& add_##singular_name##s(std::vector<type> const& singular_name) { \
578 std::vector<type> name; \
580 this->name.push_back(std::move(singular_name)); \
589 std::string get_version_str() const noexcept {
590 return std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(patch);
600 BUILDER_VALUE(ManifestICD, std::string, library_arch, "")
601 std::string get_manifest_str() const;
608 std::string get_type_str(Type layer_type) const {
617 BUILDER_VALUE(FunctionOverride, std::string, vk_func, {})
618 BUILDER_VALUE(FunctionOverride, std::string, override_name, {})
624 Extension(std::string name, uint32_t spec_version = 0, std::vector<std::string> entrypoints = {}) noexcept
626 std::string name;
628 std::vector<std::string> entrypoints;
631 BUILDER_VALUE(LayerDescription, std::string, name, {})
636 BUILDER_VALUE(LayerDescription, std::string, description, {})
640 BUILDER_VALUE(LayerDescription, std::string, enable_environment, {})
641 BUILDER_VALUE(LayerDescription, std::string, disable_environment, {})
642 BUILDER_VECTOR(LayerDescription, std::string, component_layers, component_layer)
643 BUILDER_VECTOR(LayerDescription, std::string, blacklisted_layers, blacklisted_layer)
644 BUILDER_VECTOR(LayerDescription, std::string, override_paths, override_path)
646 BUILDER_VECTOR(LayerDescription, std::string, app_keys, app_key)
647 BUILDER_VALUE(LayerDescription, std::string, library_arch, "")
655 std::string get_manifest_str() const;
659 BUILDER_VALUE(Extension, std::string, extensionName, {})
664 Extension(std::string extensionName, uint32_t specVersion = VK_API_VERSION_1_0) noexcept
685 BUILDER_VALUE(InstanceCreateInfo, std::string, app_name, {})
686 BUILDER_VALUE(InstanceCreateInfo, std::string, engine_name, {})
727 std::vector<VkDeviceQueueCreateInfo> device_queue_infos;
753 std::string name;
758 bool check_permutation(std::initializer_list<const char*> expected, std::array<T, U> const& returned) {
761 auto found = std::find_if(std::begin(returned), std::end(returned),
763 if (found == std::end(returned)) return false;
768 bool check_permutation(std::initializer_list<const char*> expected, std::vector<T> const& returned) {
771 auto found = std::find_if(std::begin(returned), std::end(returned),
773 if (found == std::end(returned)) return false;
778 inline bool contains(std::vector<VkExtensionProperties> const& vec, const char* name) {
779 return std::any_of(std::begin(vec), std::end(vec),
782 inline bool contains(std::vector<VkLayerProperties> const& vec, const char* name) {
783 return std::any_of(std::begin(vec), std::end(vec),
790 inline std::string test_platform_executable_path() {
791 std::string buffer;
802 inline std::string test_platform_executable_path() {
803 std::string buffer;
814 inline std::string test_platform_executable_path() {
827 std::string buffer;
838 inline std::string test_platform_executable_path() { return {}; }
846 inline std::string test_platform_executable_path() {
847 std::string buffer;
868 inline std::string test_platform_executable_path() {
869 std::string buffer;
879 inline std::wstring conver_str_to_wstr(std::string const& input) {
880 std::wstring output{};