Replace boost ends_with with std::string

C++20 introduces std::string::ends_with, which provide standard,
efficient, and header-light ways to check string prefixes and
suffixes. Replacing boost::algorithm::ends_with reduces Boost
dependencies, simplifies includes, and improves compilation
performance.

Change-Id: I4dbb849a750f55e3fe7409ba91c63d8a379aae18
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/phosphor-ldap-config/utils.cpp b/phosphor-ldap-config/utils.cpp
index f6efdd9..0e5fbfc 100644
--- a/phosphor-ldap-config/utils.cpp
+++ b/phosphor-ldap-config/utils.cpp
@@ -4,8 +4,6 @@
 #include <ldap.h>
 #include <netdb.h>
 
-#include <boost/algorithm/string.hpp>
-
 #include <cstring>
 #include <memory>
 
@@ -22,7 +20,7 @@
     // will always return true (thus allowing the user to
     // configure port 0)
 
-    if (boost::algorithm::ends_with(uri, ":0"))
+    if (uri.ends_with(":0"))
     {
         return false;
     }