add comments
This commit is contained in:
@@ -11,6 +11,10 @@ namespace hgl
|
|||||||
|
|
||||||
namespace filesystem
|
namespace filesystem
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 组合文件名.<Br>
|
||||||
|
* 根据离散的每一级目录名称和最终名称合成完整文件名
|
||||||
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline const String<T> ComboFilename(const StringList<String<T>> &sl,const T spear_char=(T)HGL_DIRECTORY_SEPARATOR_RAWCHAR)
|
inline const String<T> ComboFilename(const StringList<String<T>> &sl,const T spear_char=(T)HGL_DIRECTORY_SEPARATOR_RAWCHAR)
|
||||||
{
|
{
|
||||||
@@ -55,6 +59,10 @@ namespace hgl
|
|||||||
return String<T>::newOf(fullname,p-fullname);
|
return String<T>::newOf(fullname,p-fullname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合成文件名<br>
|
||||||
|
* 根据路径名和文件名
|
||||||
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline String<T> MergeFilename(const String<T> &pathname,const String<T> &filename,const T directory_separator_char,const T *directory_separator_str)
|
inline String<T> MergeFilename(const String<T> &pathname,const String<T> &filename,const T directory_separator_char,const T *directory_separator_str)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user