1
0
Fork 0
mirror of https://gitlab.com/niansa/libjustlm.git synced 2025-03-06 20:49:17 +01:00
libjustlm/libjustlm_core.cpp
2023-03-30 07:03:33 -05:00

9 lines
229 B
C++

#include "justlm.hpp"
#include <string_view>
bool LLM::ends_with(std::string_view str, std::string_view suffix) {
return str.size() >= suffix.size() && 0 == str.compare(str.size()-suffix.size(), suffix.size(), suffix);
}