diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-21 13:37:34 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-21 13:37:49 +0200 |
| commit | 738833a0470ce93b7809ca4bdea253677f27fb57 (patch) | |
| tree | 4517ac676fb64bf80d85303b5596844f056027d1 /dev/kernel/NeKit/Json.h | |
| parent | 27fd1ba438eecbe184a5deda6d9f468509ec4f42 (diff) | |
feat!: Breaking changes, reworked the KString API inside the ne_kernel.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/NeKit/Json.h')
| -rw-r--r-- | dev/kernel/NeKit/Json.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/kernel/NeKit/Json.h b/dev/kernel/NeKit/Json.h index 2b2c9c04..ebd4acf9 100644 --- a/dev/kernel/NeKit/Json.h +++ b/dev/kernel/NeKit/Json.h @@ -26,7 +26,7 @@ class Json final { public: explicit Json() { auto len = kJSONMaxLen; - KString key = KString(len); + BasicKString<> key = KString(len); key += kJSONNullObj; this->AsKey() = key; @@ -43,17 +43,17 @@ class Json final { private: Bool fUndefined; // is this instance undefined? - KString fKey; - KString fValue; + BasicKString<> fKey; + BasicKString<> fValue; public: /// @brief returns the key of the json /// @return the key as string view. - KString& AsKey() { return fKey; } + BasicKString<>& AsKey() { return fKey; } /// @brief returns the value of the json. /// @return the key as string view. - KString& AsValue() { return fValue; } + BasicKString<>& AsValue() { return fValue; } static Json kNull; }; |
