summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/src/BootString.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/boot/src/BootString.cc')
-rw-r--r--dev/boot/src/BootString.cc81
1 files changed, 0 insertions, 81 deletions
diff --git a/dev/boot/src/BootString.cc b/dev/boot/src/BootString.cc
deleted file mode 100644
index 6dadda3f..00000000
--- a/dev/boot/src/BootString.cc
+++ /dev/null
@@ -1,81 +0,0 @@
-/* ========================================
-
- Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
- File: BootString.cc
- Purpose: BootZ string library
-
- Revision History:
-
-
-
-======================================== */
-
-#include <BootKit/BootKit.h>
-#include <BootKit/Platform.h>
-#include <BootKit/Protocol.h>
-
-/// BUGS: 0
-
-/////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-Kernel::SizeT Boot::BCopyMem(CharacterTypeUTF16* dest, CharacterTypeUTF16* src,
- const Kernel::SizeT len) {
- if (!dest || !src) return 0;
-
- SizeT index = 0UL;
- for (; index < len; ++index) {
- dest[index] = src[index];
- }
-
- return index;
-}
-
-Kernel::SizeT Boot::BStrLen(const CharacterTypeUTF16* ptr) {
- if (!ptr) return 0;
-
- Kernel::SizeT cnt = 0;
-
- while (*ptr != (CharacterTypeUTF16) 0) {
- ++ptr;
- ++cnt;
- }
-
- return cnt;
-}
-
-Kernel::SizeT Boot::BSetMem(CharacterTypeUTF16* src, const CharacterTypeUTF16 byte,
- const Kernel::SizeT len) {
- if (!src) return 0;
-
- Kernel::SizeT cnt = 0UL;
-
- while (*src != 0) {
- if (cnt > len) break;
-
- *src = byte;
- ++src;
-
- ++cnt;
- }
-
- return cnt;
-}
-
-Kernel::SizeT Boot::BSetMem(CharacterTypeASCII* src, const CharacterTypeASCII byte,
- const Kernel::SizeT len) {
- if (!src) return 0;
-
- Kernel::SizeT cnt = 0UL;
-
- while (*src != 0) {
- if (cnt > len) break;
-
- *src = byte;
- ++src;
-
- ++cnt;
- }
-
- return cnt;
-}