// // Created by Shell on 2026-04-13. // #ifndef FORCAST_API_ICU_RAII_H #define FORCAST_API_ICU_RAII_H #include struct UCharsetDetectorDeleter final { void operator ()(UCharsetDetector* ptr) const { if (ptr) { ucsdet_close(ptr); } } }; using UCharsetDetectorPtr = std::unique_ptr; #endif //FORCAST_API_ICU_RAII_H