Chore: renames stringUtils to strutil

This commit is contained in:
Carter Li
2026-05-28 15:58:08 +08:00
parent 7ce1e553b8
commit d1bf208a92
186 changed files with 185 additions and 185 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#include "fastfetch.h"
#include "battery.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/processing.h"
#include "common/properties.h"
+1 -1
View File
@@ -1,6 +1,6 @@
#include "battery.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/debug.h"
#include <dirent.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "battery.h"
#include "common/io.h"
#include "common/FFstrbuf.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <prop/prop_array.h>
#include <prop/prop_bool.h>
+1 -1
View File
@@ -1,5 +1,5 @@
#include "bluetooth.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#ifdef FF_HAVE_DBUS
#include "common/dbus.h"
@@ -1,5 +1,5 @@
#include "bluetoothradio.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#ifdef FF_HAVE_DBUS
#include "common/dbus.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "brightness.h"
#include "common/io.h"
#include "common/edidHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <dirent.h>
#include <limits.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "cpu.h"
#include "common/sysctl.h"
#include "common/apple/smc_temps.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
static double detectCpuTemp(const FFCPUOptions* options, const FFstrbuf* cpuName) {
double result = 0;
+1 -1
View File
@@ -1,6 +1,6 @@
#include "cpu.h"
#include "common/sysctl.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <sys/param.h>
#if __has_include(<sys/cpuset.h>)
+1 -1
View File
@@ -3,7 +3,7 @@
#include "common/processing.h"
#include "common/properties.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/path.h"
#include <sys/sysinfo.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "cpu.h"
#include "common/sysctl.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <errno.h>
#include <sys/time.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "cpu.h"
#include "common/processing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <kstat.h>
static const char* detectCPUTempByKstat(const FFCPUOptions* options, kstat_ctl_t* kc, FFCPUResult* cpu) {
+1 -1
View File
@@ -1,6 +1,6 @@
#include "cpucache.h"
#include "common/sysctl.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
const char* ffDetectCPUCache(FFCPUCacheResult* result) {
// https://developer.apple.com/documentation/kernel/1387446-sysctlbyname/determining_system_capabilities#3901385
+1 -1
View File
@@ -1,6 +1,6 @@
#include "cpucache.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
static const char* parseCpuCacheIndex(FFstrbuf* path, FFCPUCacheResult* result, FFstrbuf* buffer, FFstrbuf* added) {
uint32_t baseLen = path->length;
+1 -1
View File
@@ -1,6 +1,6 @@
#include "cpucache.h"
#include "common/smbios.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
typedef struct FFSmbiosCacheInfo {
FFSmbiosHeader Header;
+1 -1
View File
@@ -5,7 +5,7 @@
#include "common/properties.h"
#include "common/parsing.h"
#include "common/settings.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <stdlib.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "disk.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <stdalign.h>
#include <sys/mount.h>
+1 -1
View File
@@ -1,6 +1,6 @@
extern "C" {
#include "disk.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
}
#include <fs_info.h>
#include <Directory.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "disk.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <limits.h>
#include <ctype.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "disk.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <sys/mntent.h>
#include <sys/stat.h>
+1 -1
View File
@@ -2,7 +2,7 @@
#if __has_include(<libgeom.h>)
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <devstat.h>
#include <memory.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "diskio.h"
#include "common/io.h"
#include "common/properties.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <ctype.h>
#include <limits.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "diskio.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/mallocHelper.h"
#include <sys/iostat.h>
+1 -1
View File
@@ -1,5 +1,5 @@
#include "diskio.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/mallocHelper.h"
#include <sys/disk.h>
+1 -1
View File
@@ -1,5 +1,5 @@
#include "diskio.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <kstat.h>
static inline void kstatFreeWrap(kstat_ctl_t** pkc) {
@@ -1,6 +1,6 @@
#include "displayserver.h"
#include "common/apple/cf_helpers.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/edidHelper.h"
#include "detection/os/os.h"
+1 -1
View File
@@ -1,5 +1,5 @@
#include "displayserver_linux.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
FFDisplayType ffdsGetDisplayType(const char* name) {
if (ffStrStartsWith(name, "eDP-") || ffStrStartsWith(name, "LVDS-")) {
@@ -1,6 +1,6 @@
#include "displayserver_linux.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#ifdef __FreeBSD__
#include "common/settings.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "displayserver_linux.h"
#include "common/io.h"
#include "common/edidHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#ifdef __linux__
#include <dirent.h>
@@ -1,7 +1,7 @@
#ifdef FF_HAVE_WAYLAND
#include "wayland.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "xdg-output-unstable-v1-client-protocol.h"
static void waylandOutputModeListener(void* data, FF_A_UNUSED struct wl_output* output, uint32_t flags, int32_t width, int32_t height, int32_t refreshRate) {
@@ -1,7 +1,7 @@
#include "../displayserver_linux.h"
#include "common/io.h"
#include "common/edidHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <stdlib.h>
#include <string.h>
@@ -3,7 +3,7 @@
#ifdef FF_HAVE_WAYLAND
#include "common/library.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <wayland-client.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "displayserver_linux.h"
#include "common/io.h"
#include "common/properties.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/mallocHelper.h"
#include <stdlib.h>
+1 -1
View File
@@ -6,7 +6,7 @@
#include "common/properties.h"
#include "common/edidHelper.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <stdlib.h>
#include <string.h>
+1 -1
View File
@@ -5,7 +5,7 @@
#include "common/library.h"
#include "common/properties.h"
#include "common/edidHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <X11/extensions/Xrandr.h>
#include <X11/Xlib.h>
+1 -1
View File
@@ -2,7 +2,7 @@
#include "common/io.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/apple/cf_helpers.h"
#include "common/debug.h"
+1 -1
View File
@@ -2,7 +2,7 @@
#include "common/io.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/debug.h"
#ifdef __HAIKU__
+1 -1
View File
@@ -1,7 +1,7 @@
#include "editor.h"
#include "common/processing.h"
#include "common/library.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/path.h"
#include "common/binary.h"
+1 -1
View File
@@ -1,6 +1,6 @@
#include "gamepad.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
static void detectGamepad(FFlist* devices, FFstrbuf* name, FFstrbuf* path) {
uint32_t baseLen = path->length;
+1 -1
View File
@@ -1,6 +1,6 @@
#include "gpu.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <fcntl.h>
+1 -1
View File
@@ -32,7 +32,7 @@ static void fillGPUTypeGeneric(FFGPUResult* gpu) {
#if FF_HAVE_DRM
#include "common/library.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <xf86drm.h>
+1 -1
View File
@@ -8,7 +8,7 @@
#include "common/io.h"
#include "common/library.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "intel_drm.h"
#include "asahi_drm.h"
+1 -1
View File
@@ -5,7 +5,7 @@
#include "common/io.h"
#include "common/library.h"
#include "common/FFstrbuf.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/mallocHelper.h"
#include "modules/gpu/option.h"
+1 -1
View File
@@ -1,5 +1,5 @@
#include "gpu.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <libdevinfo.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "fastfetch.h"
#include "common/properties.h"
#include "common/thread.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "detection/gtk_qt/gtk_qt.h"
#include "detection/displayserver/displayserver.h"
+1 -1
View File
@@ -1,5 +1,5 @@
#include "host.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel) {
// Macbook Pro: https://support.apple.com/en-us/HT201300
+1 -1
View File
@@ -1,5 +1,5 @@
#include "initsystem.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/haiku/version.h"
#include "common/io.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "initsystem.h"
#include "common/processing.h"
#include "common/binary.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <libgen.h>
#include <unistd.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "keyboard.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <linux/input-event-codes.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "localip.h"
#include "common/io.h"
#include "common/netif.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/debug.h"
#include <string.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "fastfetch.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/memrchr.h"
#include "detection/media/media.h"
+1 -1
View File
@@ -1,6 +1,6 @@
#include "mouse.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
const char* ffDetectMouse(FFlist* devices /* List of FFMouseDevice */) {
FF_AUTO_CLOSE_DIR DIR* dirp = opendir("/sys/class/input/");
+1 -1
View File
@@ -2,7 +2,7 @@
#include "common/io.h"
#include "common/netif.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <fcntl.h>
#include <net/if.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "netio.h"
#include "common/netif.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <kstat.h>
+1 -1
View File
@@ -9,7 +9,7 @@
#include "common/library.h"
#include "common/parsing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <string.h>
#define CL_TARGET_OPENCL_VERSION 110
+1 -1
View File
@@ -1,7 +1,7 @@
#include "os.h"
#include "common/io.h"
#include "common/sysctl.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/mallocHelper.h"
#include <stdlib.h>
+1 -1
View File
@@ -3,7 +3,7 @@
#include "common/parsing.h"
#include "common/io.h"
#include "common/processing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <string.h>
#include <stdlib.h>
+1 -1
View File
@@ -1,5 +1,5 @@
#include "os.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/windows/registry.h"
#include "common/windows/unicode.h"
+1 -1
View File
@@ -2,7 +2,7 @@
#include "common/io.h"
#include "common/parsing.h"
#include "common/processing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
static void countBrewPackages(FFstrbuf* baseDir, FFPackagesResult* result) {
uint32_t baseDirLength = baseDir->length;
+1 -1
View File
@@ -3,7 +3,7 @@
#include "common/parsing.h"
#include "common/properties.h"
#include "common/settings.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "detection/os/os.h"
static uint32_t getNumElements(FFstrbuf* baseDir, const char* dirname, bool isdir) {
+1 -1
View File
@@ -1,7 +1,7 @@
#include "packages.h"
#include "common/io.h"
#include "common/processing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
static bool isValidNixPkg(FFstrbuf* pkg) {
if (!ffPathExists(pkg->chars, FF_PATHTYPE_DIRECTORY)) {
+1 -1
View File
@@ -1,6 +1,6 @@
#include "packages.h"
#include "common/processing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/path.h"
#include "common/windows/unicode.h"
#include "common/mallocHelper.h"
@@ -2,7 +2,7 @@
#if __has_include(<libgeom.h>)
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <devstat.h>
#include <memory.h>
@@ -1,7 +1,7 @@
#include "physicaldisk.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <OS.h>
#include <StorageDefs.h>
@@ -1,7 +1,7 @@
#include "physicaldisk.h"
#include "common/io.h"
#include "common/properties.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <ctype.h>
#include <limits.h>
@@ -1,5 +1,5 @@
#include "physicaldisk.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "sys/scsi/generic/inquiry.h"
#include <libdevinfo.h>
@@ -1,7 +1,7 @@
#include "physicalmemory.h"
#include "common/processing.h"
#include "common/smbios.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/apple/cf_helpers.h"
#import <Foundation/Foundation.h>
@@ -1,6 +1,6 @@
#include "poweradapter.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <dirent.h>
#include <unistd.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "processes.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
const char* ffDetectProcesses(uint32_t* result) {
FF_AUTO_CLOSE_DIR DIR* dir = opendir("/proc");
+1 -1
View File
@@ -1,6 +1,6 @@
extern "C" {
#include "sound.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
}
#include <MediaAddOn.h>
#include <MediaNode.h>
+1 -1
View File
@@ -1,5 +1,5 @@
#include "sound.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <fcntl.h>
#include <sndio.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "sound.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <fcntl.h>
#include <unistd.h>
+1 -1
View File
@@ -3,7 +3,7 @@
#include "common/properties.h"
#include "common/processing.h"
#include "common/debug.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "detection/terminalshell/terminalshell.h"
static void detectAlacritty(FFTerminalFontResult* terminalFont) {
@@ -6,7 +6,7 @@
#include "common/io.h"
#include "common/processing.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/binary.h"
#include "detection/terminalshell/terminalshell.h"
#include "detection/displayserver/displayserver.h"
@@ -5,7 +5,7 @@
#include "common/properties.h"
#include "common/windows/unicode.h"
#include "common/windows/registry.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "detection/terminalshell/terminalshell.h"
#include "terminalfont.h"
+1 -1
View File
@@ -3,7 +3,7 @@
#include "common/processing.h"
#include "common/properties.h"
#include "common/path.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/binary.h"
#include <ctype.h>
@@ -3,7 +3,7 @@
#include "common/parsing.h"
#include "common/processing.h"
#include "common/thread.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <string.h>
#include <stdlib.h>
@@ -7,7 +7,7 @@
#include "common/windows/unicode.h"
#include "common/windows/version.h"
#include "common/windows/nt.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <stdalign.h>
#include <windows.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "terminaltheme.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <inttypes.h>
+1 -1
View File
@@ -7,7 +7,7 @@
#include "common/library.h"
#include "common/io.h"
#include "common/parsing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <stdlib.h>
#include <vulkan/vulkan.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "wifi.h"
#include "common/processing.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#import <CoreWLAN/CoreWLAN.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "wifi.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <sys/ioctl.h>
#include <sys/socket.h>
+1 -1
View File
@@ -1,7 +1,7 @@
#include "wifi.h"
#include "common/io.h"
#include "common/debug.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <sys/time.h>
#include <sys/socket.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "wifi.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#define COMPAT_FREEBSD_NET80211 1
#include <sys/ioctl.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "wifi.h"
#include "common/io.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include <sys/ioctl.h>
#include <sys/socket.h>
+1 -1
View File
@@ -2,7 +2,7 @@
#include "common/sysctl.h"
#include "common/mallocHelper.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/apple/version.h"
#include <ctype.h>
+1 -1
View File
@@ -4,7 +4,7 @@
#include "common/io.h"
#include "common/binary.h"
#include "common/path.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/debug.h"
const char* ffDetectWMPlugin(FF_A_UNUSED FFstrbuf* pluginName) {
+1 -1
View File
@@ -3,7 +3,7 @@
#include "common/properties.h"
#include "common/parsing.h"
#include "common/settings.h"
#include "common/stringUtils.h"
#include "common/strutil.h"
#include "common/mallocHelper.h"
#include "detection/gtk_qt/gtk_qt.h"
#include "detection/displayserver/displayserver.h"