20 #ifndef KERNEL_UTILITIES_CORD_H 21 #define KERNEL_UTILITIES_CORD_H 26 #include "pedigree/kernel/compiler.h" 27 #include "pedigree/kernel/processor/types.h" 28 #include "pedigree/kernel/utilities/template.h" 29 #include "pedigree/kernel/utilities/Vector.h" 47 char operator*()
const;
77 void assign(
const Cord &other);
80 size_t length()
const;
86 void append(
const char *s,
size_t len=0);
87 void prepend(
const char *s,
size_t len=0);
96 CordSegment(
const char *s,
size_t len) : ptr(s), length(len) {}
98 const char *ptr =
nullptr;
108 #endif // KERNEL_UTILITIES_CORD_H
A vector / dynamic array.
char operator[](size_t index) const
void reserve(size_t segments)
T operator++(T &x, int)
Global postincrement operator for types with overloaded preincrement operator.
T operator--(T &x, int)
Global postdecrement operator for types with overloaded predecrement operator.
bool operator==(const Iterator< originalT, Struct, FunctionPrev, FunctionNext, T1 > &x1, const Iterator< originalT, Struct, FunctionPrev, FunctionNext, T2 > &x2)
bool operator!=(const T1 &x1, const T2 &x2)
Global != operator for types with overloaded == operator.