#pragma once

// ==========================================================
// item_parser.hpp - Fast C++23 Native POE2 Item & Waystone Parser
// Poe2VisualTool v2.0.0 (100% C++23 Native Fusion)
// ==========================================================

#include "inspector/item_types.hpp"
#include <string>
#include <string_view>
#include <vector>
#include <optional>

namespace inspector {

class ItemParser {
public:
    // Parses raw clipboard string into structured ItemInspectionReport
    static ItemInspectionReport Parse(std::string_view clipboardText);

    // Helper functions
    static ItemCategory DeduceCategory(std::string_view itemClass, std::string_view name);
    static ItemRarity ParseRarity(std::string_view rarityStr);
    static AffixType ClassifyAffix(std::string_view modText);
    static bool IsPrefix(std::string_view modText);
    static bool IsSuffix(std::string_view modText);
};

} // namespace inspector
