clangify includes
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
#ifndef UTILS_HPP
|
||||
#define UTILS_HPP
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
#include <format>
|
||||
#include <log.hpp>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#define FILL_CHAR ' '
|
||||
|
||||
@@ -22,8 +14,8 @@ std::string pad(std::string s, uint8_t len, bool ljust = false);
|
||||
std::string center(std::string str, uint8_t len);
|
||||
std::string pBytes(double bytes, bool isKbytes = false);
|
||||
std::string readFile(std::string path, size_t trim = 4096);
|
||||
ssize_t readFile2(std::string path, char *buffer, size_t maxlen);
|
||||
ssize_t readFile2(const char *path, char *buffer, size_t maxlen);
|
||||
ssize_t readFile2(std::string path, char* buffer, size_t maxlen);
|
||||
ssize_t readFile2(const char* path, char* buffer, size_t maxlen);
|
||||
int get_val(std::string_view target, std::string_view content);
|
||||
std::string getFirstDir(std::string_view path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user