]> git.saurik.com Git - apple/system_cmds.git/blobdiff - CPPUtil/UtilString.cpp
system_cmds-735.tar.gz
[apple/system_cmds.git] / CPPUtil / UtilString.cpp
diff --git a/CPPUtil/UtilString.cpp b/CPPUtil/UtilString.cpp
deleted file mode 100644 (file)
index 80d5cc3..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-//  UtilString.cpp
-//  CPPUtil
-//
-//  Created by James McIlree on 4/17/13.
-//  Copyright (c) 2013 Apple. All rights reserved.
-//
-
-#include "CPPUtil.h"
-
-BEGIN_UTIL_NAMESPACE
-
-bool ends_with(std::string& str, std::string postfix) {
-       size_t pos = str.rfind(postfix);
-       return ((pos != std::string::npos) && (pos == (str.length() - postfix.length())));
-}
-
-END_UTIL_NAMESPACE