#ifndef ICU4X_LineBreakStrictness_HPP
#define ICU4X_LineBreakStrictness_HPP

#include "LineBreakStrictness.d.hpp"

#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <memory>
#include <functional>
#include <optional>
#include <cstdlib>
#include "diplomat_runtime.hpp"


namespace icu4x {
namespace capi {

} // namespace capi
} // namespace

inline icu4x::capi::LineBreakStrictness icu4x::LineBreakStrictness::AsFFI() const {
    return static_cast<icu4x::capi::LineBreakStrictness>(value);
}

inline icu4x::LineBreakStrictness icu4x::LineBreakStrictness::FromFFI(icu4x::capi::LineBreakStrictness c_enum) {
    switch (c_enum) {
        case icu4x::capi::LineBreakStrictness_Loose:
        case icu4x::capi::LineBreakStrictness_Normal:
        case icu4x::capi::LineBreakStrictness_Strict:
        case icu4x::capi::LineBreakStrictness_Anywhere:
            return static_cast<icu4x::LineBreakStrictness::Value>(c_enum);
        default:
            std::abort();
    }
}
#endif // ICU4X_LineBreakStrictness_HPP
