diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 16:07:14 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-17 19:52:52 -0500 |
commit | efe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (patch) | |
tree | 25fb369c28dc3749c8cb462f0dbb63667a2aeeca /AK/JsonObject.h | |
parent | 6d939472123951b1a5867ae2f32a11338a0ac88e (diff) | |
download | serenity-efe4329f9fe448eb17784d7a9b9e6e519ec4fa57.zip |
AK: Add JsonValue::{is,as}_integer() methods
The existing `is_i32()` and friends only check if `i32` is their
internal type, but a value such as `0` could be literally any integer
type internally. `is_integer<T>()` instead determines whether the
contained value is an integer and can fit inside T.
Diffstat (limited to 'AK/JsonObject.h')
0 files changed, 0 insertions, 0 deletions