onnxruntime/onnxruntime/core/common/path_utils.h
Xueyun Zhu 183098e344
adding concat logic when initial path is empty (#4525)
* concat

* add path_utils

* address feedback

* use string in test

* convert wstring to sting in windows

* address feedback

* address feedback

* fix comment
2020-07-16 23:46:12 -07:00

23 lines
600 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/common/common.h"
#include "core/common/path_string.h"
namespace onnxruntime {
namespace path_utils {
/** Return a PathString with concatenated args.
* TODO: add support for arguments of type std::wstring. Currently it is not supported as the underneath
* MakeString doesn't support this type.
*/
template <typename... Args>
PathString MakePathString(const Args&... args) {
const std::string str = onnxruntime::MakeString(args...);
return ToPathString(str);
}
}
}