1#ifndef LIBS_CORE_CSTRINGTOOLS_HPP_
2#define LIBS_CORE_CSTRINGTOOLS_HPP_
4#include <bits/stdint-uintn.h>
32 static char *
copy(
const char *str);
33 static void copyBuffer(
const std::string &str, uint64_t sizeBuffer,
char *buffer);
34 static void copyMemory(
void *bufferDst,
const void *bufferSrc, uint64_t numBytes);
35 static void copyMemoryReversed(
void *bufferDst,
const void *bufferSrc, uint64_t numBytes);
39 static void insertCharIntoString(
char *stringBuffer, uint64_t tamBuffer, uint64_t indPos,
char charInsert);
40 static void memoryInitialize(
void *buffer, uint64_t numBytes,
unsigned char value);
43 bool upperTypes,
bool numTypes);
45 static std::vector<std::string>
split(
const std::string &str, std::string_view separator);
46 static std::vector<std::string>
splitByLength(
const std::string &str, uint64_t maxLength);
48 static std::string
strDate(uint16_t day, uint16_t month, uint16_t year);
49 static std::string
strTime(uint16_t hour, uint16_t minutes, uint16_t seconds);