/* * Copyright (c) 2023, Jonatan Klemets * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web::HTML { Optional parse_integer(StringView string); Optional parse_integer_digits(StringView string); Optional parse_non_negative_integer(StringView string); Optional parse_non_negative_integer_digits(StringView string); Optional parse_floating_point_number(StringView string); bool is_valid_floating_point_number(StringView string); WebIDL::ExceptionOr convert_non_negative_integer_to_string(JS::Realm&, WebIDL::Long); }