#ifndef QuotesData_h
#define QuotesData_h
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
namespace WebCore {
#if COMPILER(MSVC)
#pragma warning(push)
#pragma warning(disable: 4200) // Disable "zero-sized array in struct/union" warning
#endif
class QuotesData : public RefCounted<QuotesData> {
public:
static PassRefPtr<QuotesData> create(const Vector<std::pair<String, String>>& quotes);
~QuotesData();
friend bool operator==(const QuotesData&, const QuotesData&);
const String& openQuote(unsigned index) const;
const String& closeQuote(unsigned index) const;
private:
explicit QuotesData(const Vector<std::pair<String, String>>& quotes);
unsigned m_quoteCount;
std::pair<String, String> m_quotePairs[0];
};
#if COMPILER(MSVC)
#pragma warning(pop)
#endif
inline bool operator!=(const QuotesData& a, const QuotesData& b)
{
return !(a == b);
}
}
#endif // QuotesData_h