1% Generated by roxygen2 (4.1.1): do not edit by hand
2% Please edit documentation in R/pystr_startswith.R
3\name{pystr_startswith}
4\alias{pystr_startswith}
5\title{Check the prefix of a string.}
6\usage{
7pystr_startswith(str, prefix, start = 1, end = nchar(str))
8}
9\arguments{
10\item{str}{A character vector.}
11
12\item{prefix}{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} starts with the specified
23\code{prefix}, otherwise return \code{FALSE}.
24}
25\details{
26With optional \code{start}, test string beginning at that position.
27With optional \code{end}, stop comparing string at that position.
28}
29\examples{
30pystr_startswith("www.example.com", "www.")
31pystr_startswith("example.com", "www.")
32pystr_startswith("www.example.com", "example", 5)
33}
34\references{
35\url{https://docs.python.org/3/library/stdtypes.html#str.startswith}
36}
37\seealso{
38\code{\link{pystr_endswith}}
39}
40
41