#pragma once
#include "cow_string.hpp"
#include "transformer/base.hpp"
#include <string_view>
namespace ddwaf::transformer {
class lowercase : public base<lowercase> {
public:
static transformer_id id() { return transformer_id::lowercase; }
static std::string_view name() { return "lowercase"; }
protected:
#if !defined(__SSE2__) || !defined(LIBDDWAF_VECTORIZED_TRANSFORMERS)
static bool needs_transform(std::string_view ) { return true; }
#else
static bool needs_transform(std::string_view str);
#endif
static bool transform_impl(cow_string &str);
friend class base<lowercase>;
};
}