diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-10 20:05:48 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-10 20:05:48 +0100 |
commit | e86b3cce47e62c263301322ce24b56cf04b8cdb8 (patch) | |
tree | 91eaa77e5d56290e2d06e6d8340f6831fbd0b139 /Doc | |
parent | 3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd (diff) | |
download | zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.tar.gz zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.tar.xz zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.zip |
36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Zsh/expn.yo | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index d44b40a3b..5ea8610f2 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1956,6 +1956,20 @@ ifzman(the zmanref(zshparam) manual page)\ ifnzman(noderef(Parameters Used By The Shell))\ . ) +item(tt([:INCOMPLETE:]))( +Matches a byte that starts an incomplete multibyte character. +Note that there may be a sequence of more than one bytes that +taken together form the prefix of a multibyte character. To +test for a potentially incomplete byte sequence, use the pattern +`tt([[:INCOMPLETE:]]*)'. This will never match a sequence starting +with a valid multibyte character. +) +item(tt([:INVALID:]))( +Matches a byte that does not start a valid multibyte character. +Note this may be a continuation byte of an incomplete multibyte +character as any part of a multibyte string consisting of invalid and +incomplete multibyte characters is treated as single bytes. +) item(tt([:WORD:]))( The character is treated as part of a word; this test is sensitive to the value of the tt(WORDCHARS) parameter |