summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/NeKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-21 15:19:01 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-21 15:19:01 +0200
commitb6ce3d25357b4e01daf212a955a6093133bc2fe4 (patch)
treeffbcf391bf186ee0c75dc982cd36da070a5159cb /dev/kernel/NeKit
parent738833a0470ce93b7809ca4bdea253677f27fb57 (diff)
feat: Reworked `hefsi_hash_64` to follow the codebase's conventions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/NeKit')
-rw-r--r--dev/kernel/NeKit/Json.h4
-rw-r--r--dev/kernel/NeKit/KString.inl18
2 files changed, 11 insertions, 11 deletions
diff --git a/dev/kernel/NeKit/Json.h b/dev/kernel/NeKit/Json.h
index ebd4acf9..24357dd7 100644
--- a/dev/kernel/NeKit/Json.h
+++ b/dev/kernel/NeKit/Json.h
@@ -25,7 +25,7 @@ namespace Kernel {
class Json final {
public:
explicit Json() {
- auto len = kJSONMaxLen;
+ auto len = kJSONMaxLen;
BasicKString<> key = KString(len);
key += kJSONNullObj;
@@ -42,7 +42,7 @@ class Json final {
Bool& IsUndefined() { return fUndefined; }
private:
- Bool fUndefined; // is this instance undefined?
+ Bool fUndefined; // is this instance undefined?
BasicKString<> fKey;
BasicKString<> fValue;
diff --git a/dev/kernel/NeKit/KString.inl b/dev/kernel/NeKit/KString.inl
index a0dd3623..1faefb08 100644
--- a/dev/kernel/NeKit/KString.inl
+++ b/dev/kernel/NeKit/KString.inl
@@ -19,22 +19,22 @@ inline void rt_string_append(Char* lhs, const Char* rhs, Int32 cur) {
}
}
-template<>
+template <>
inline Char* BasicKString<>::Data() {
return this->fData;
}
-template<>
+template <>
inline const Char* BasicKString<>::CData() const {
return const_cast<const Char*>(this->fData);
}
-template<>
+template <>
inline SizeT BasicKString<>::Length() const {
return this->fDataSz;
}
-template<>
+template <>
inline bool BasicKString<>::operator==(const BasicKString<>& rhs) const {
if (rhs.Length() != this->Length()) return false;
@@ -45,7 +45,7 @@ inline bool BasicKString<>::operator==(const BasicKString<>& rhs) const {
return true;
}
-template<>
+template <>
inline bool BasicKString<>::operator==(const Char* rhs) const {
if (rt_string_len(rhs) != this->Length()) return false;
@@ -56,7 +56,7 @@ inline bool BasicKString<>::operator==(const Char* rhs) const {
return true;
}
-template<>
+template <>
inline bool BasicKString<>::operator!=(const BasicKString<>& rhs) const {
if (rhs.Length() != this->Length()) return false;
@@ -67,7 +67,7 @@ inline bool BasicKString<>::operator!=(const BasicKString<>& rhs) const {
return true;
}
-template<>
+template <>
inline bool BasicKString<>::operator!=(const Char* rhs) const {
if (rt_string_len(rhs) != this->Length()) return false;
@@ -78,7 +78,7 @@ inline bool BasicKString<>::operator!=(const Char* rhs) const {
return true;
}
-template<>
+template <>
inline BasicKString<>& BasicKString<>::operator+=(const BasicKString<>& rhs) {
if (rt_string_len(rhs.fData) > this->Length()) return *this;
@@ -88,7 +88,7 @@ inline BasicKString<>& BasicKString<>::operator+=(const BasicKString<>& rhs) {
return *this;
}
-template<>
+template <>
inline BasicKString<>& BasicKString<>::operator+=(const Char* rhs) {
rt_string_append(this->fData, const_cast<Char*>(rhs), this->fCur);
this->fCur += rt_string_len(const_cast<Char*>(rhs));