| 586 | } |
| 587 | |
| 588 | static bool string_endswith(const std::string & str, const std::string & suffix) { |
| 589 | if (str.length() < suffix.length()) return false; |
| 590 | return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0; |
| 591 | } |
| 592 | |
| 593 | [[noreturn]] static value string_join_not_implemented(const func_args &) { |
| 594 | throw not_implemented_exception("String join builtin not implemented"); |