X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/ac27e6b4e9f2f269ad11856171ae8e1f51fa26f0..cf37c2996a8b83ccbcb7e2e413f749f6e60a3845:/CPPUtil/UtilString.cpp diff --git a/CPPUtil/UtilString.cpp b/CPPUtil/UtilString.cpp deleted file mode 100644 index 80d5cc3..0000000 --- a/CPPUtil/UtilString.cpp +++ /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