Replace boost starts_with/ends_with with std::string
C++20 introduces std::string::starts_with and std::string::ends_with,
which provide standard, efficient, and header-light ways to check
string prefixes and suffixes. Replacing boost::algorithm::starts_with
and boost::algorithm::ends_with reduces Boost dependencies,
simplifies includes, and improves compilation performance.
Change-Id: I611ccb49a174dcd5433c1001cf1750907dd023ac
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/dbus-sdr/storagecommands.cpp b/dbus-sdr/storagecommands.cpp
index 8bdb7bd..f0c43c3 100644
--- a/dbus-sdr/storagecommands.cpp
+++ b/dbus-sdr/storagecommands.cpp
@@ -740,8 +740,7 @@
dynamic_sensors::ipmi::sel::selLogDir))
{
std::string filename = dirEnt.path().filename();
- if (boost::starts_with(filename,
- dynamic_sensors::ipmi::sel::selLogFilename))
+ if (filename.starts_with(dynamic_sensors::ipmi::sel::selLogFilename))
{
// If we find an ipmi_sel log file, save the path
selLogFiles.emplace_back(