1、实现目录读取功能

This commit is contained in:
asypost committed 2026-06-27 18:37:37 +08:00
1 parent 6e60886fd3
commit fe476dff69
11 files changed
+320 -116

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
//
// Created by Shell on 2026-04-13.
//
#ifndef FORCAST_API_ICU_RAII_H
#define FORCAST_API_ICU_RAII_H
#include <unicode/ucsdet.h>
struct UCharsetDetectorDeleter final
{
void operator ()(UCharsetDetector* ptr) const
{
if (ptr)
{
ucsdet_close(ptr);
}
}
};
using UCharsetDetectorPtr = std::unique_ptr<UCharsetDetector, UCharsetDetectorDeleter>;
#endif //FORCAST_API_ICU_RAII_H