1% Generated by roxygen2 (4.1.1): do not edit by hand
2% Please edit documentation in R/pystr_endswith.R
3\name{pystr_endswith}
4\alias{pystr_endswith}
5\title{Check the suffix of a string.}
6\usage{
7pystr_endswith(str, suffix, start = 1, end = nchar(str))
8}
9\arguments{
10\item{str}{A character vector.}
11
12\item{suffix}{A character vector.}
13
14\item{start}{A numeric vector.}
15
16\item{end}{A numeric vector.}
17}
18\value{
19A logical vector.
20}
21\description{
22Return \code{TRUE} if the string \code{str} ends with the specified
23\code{suffix}, otherwise return \code{FALSE}.
24}
25\details{
26With optional \code{start}, test beginning at that position.
27With optional \code{end}, stop comparing at that position.
28}
29\examples{
30pystr_endswith("selfie.jpg", ".jpg")
31pystr_endswith("selfie.jpg", ".png")
32pystr_endswith("hello world", "ello", 1, 5)
33}
34\references{
35\url{https://docs.python.org/3/library/stdtypes.html#str.endswith}
36}
37\seealso{
38\code{\link{pystr_startswith}}
39}
40
41