#pragma once #include namespace StringUtils { /** * Sanitize a string for use as a filename. * Replaces invalid characters with underscores, trims spaces/dots, * and limits length to maxBytes bytes. */ std::string sanitizeFilename(const std::string& name, size_t maxBytes = 100); } // namespace StringUtils