Skip to content

Commit

Permalink
Add note about UCP in PCRE.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84799 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Jul 31, 2023
1 parent 5e177f3 commit 64b28a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/library/base/man/regex.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@
\samp{\p{xx}} and \samp{\P{xx}} which match characters with and
without property \samp{xx} respectively. For a list of supported
properties see the PCRE documentation, but for example \samp{Lu} is
\sQuote{upper case letter} and \samp{Sc} is \sQuote{currency symbol}.
\sQuote{upper case letter} and \samp{Sc} is \sQuote{currency symbol}. Note
that for some properties to work, one may have to start the pattern with
\samp{(*UCP)} and accept a performance penalty.
(This support depends on the PCRE library being compiled with
\sQuote{Unicode property support} which can be checked \emph{via}
\code{\link{pcre_config}}. PCRE2 when compiled with Unicode support always
Expand Down

0 comments on commit 64b28a5

Please sign in to comment.