| Line 72... |
Line 72... |
| 72 |
A list of the same length as \code{x}, the \code{i}-th element of which
|
72 |
A list of the same length as \code{x}, the \code{i}-th element of which
|
| 73 |
contains the vector of splits of \code{x[i]}.
|
73 |
contains the vector of splits of \code{x[i]}.
|
| 74 |
|
74 |
|
| 75 |
If any element of \code{x} or \code{split} is declared to be in UTF-8
|
75 |
If any element of \code{x} or \code{split} is declared to be in UTF-8
|
| 76 |
(see \code{\link{Encoding}}), all non-ASCII character strings in the
|
76 |
(see \code{\link{Encoding}}), all non-ASCII character strings in the
|
| 77 |
result will be in UTF-8 and have their encoding declared as UTF-8. As
|
77 |
result will be in UTF-8 and have their encoding declared as UTF-8.
|
| 78 |
from \R 2.10.0, for \code{perl = TRUE, useBytes = FALSE} all non-ASCII
|
78 |
For \code{perl = TRUE, useBytes = FALSE} all non-ASCII strings in a
|
| 79 |
strings in a multibyte locale are translated to UTF-8.
|
79 |
multibyte locale are translated to UTF-8.
|
| 80 |
}
|
80 |
}
|
| 81 |
|
81 |
|
| 82 |
\note{
|
82 |
\note{
|
| 83 |
Prior to \R 2.11.0 there was an argument \code{extended} which could
|
83 |
Prior to \R 2.11.0 there was an argument \code{extended} which could
|
| 84 |
be used to select \sQuote{basic} regular expressions: this was often
|
84 |
be used to select \sQuote{basic} regular expressions: this was often
|
| 85 |
used when \code{fixed = TRUE} would be preferable. In the actual
|
85 |
used when \code{fixed = TRUE} would be preferable.
|
| 86 |
implementation (as distinct from the POSIX standard) the only
|
- |
|
| 87 |
difference was that \samp{?}, \samp{+}, \samp{\{}, \samp{|}, \samp{(},
|
- |
|
| 88 |
and \samp{)} were not interpreted as metacharacters.
|
- |
|
| 89 |
}
|
86 |
}
|
| 90 |
|
87 |
|
| 91 |
\seealso{
|
88 |
\seealso{
|
| 92 |
\code{\link{paste}} for the reverse,
|
89 |
\code{\link{paste}} for the reverse,
|
| 93 |
\code{\link{grep}} and \code{\link{sub}} for string search and
|
90 |
\code{\link{grep}} and \code{\link{sub}} for string search and
|