Doc #54154 [NEW]: Missing info about using \p{xx} and \P{xx} escape sequences with script names.

From: Date: Thu, 03 Mar 2011 21:27:57 +0000
Subject: Doc #54154 [NEW]: Missing info about using \p{xx} and \P{xx} escape sequences with script names.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6049@lists.php.net to get a copy of this message
From: hayk Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Missing info about using \p{xx} and \P{xx} escape sequences with script names. Description: ------------ Please update documentation and add information about using \p{xx} and \P{xx} escape sequences with script names. From http://www.pcre.org/pcre.txt When PCRE is built with Unicode character property support, three addi- tional escape sequences that match characters with specific properties are available. When not in UTF-8 mode, these sequences are of course limited to testing characters whose codepoints are less than 256, but they do work in this mode. The extra escape sequences are: \p{xx} a character with the xx property \P{xx} a character without the xx property \X an extended Unicode sequence The property names represented by xx above are limited to the Unicode script names, the general category properties, "Any", which matches any character (including newline), and some special PCRE properties (described in the next section). Other Perl properties such as "InMu- sicalSymbols" are not currently supported by PCRE. Note that \P{Any} does not match any characters, so always causes a match failure. Sets of Unicode characters are defined as belonging to certain scripts. A character from one of these sets can be matched using a script name. For example: \p{Greek} \P{Han} Those that are not part of an identified script are lumped together as "Common". The current list of scripts is: Arabic, Armenian, Avestan, Balinese, Bamum, Bengali, Bopomofo, Braille, Buginese, Buhid, Canadian_Aboriginal, Carian, Cham, Cherokee, Common, Coptic, Cuneiform, Cypriot, Cyrillic, Deseret, Devanagari, Egyp- tian_Hieroglyphs, Ethiopic, Georgian, Glagolitic, Gothic, Greek, Gujarati, Gurmukhi, Han, Hangul, Hanunoo, Hebrew, Hiragana, Impe- rial_Aramaic, Inherited, Inscriptional_Pahlavi, Inscriptional_Parthian, Javanese, Kaithi, Kannada, Katakana, Kayah_Li, Kharoshthi, Khmer, Lao, Latin, Lepcha, Limbu, Linear_B, Lisu, Lycian, Lydian, Malayalam, Meetei_Mayek, Mongolian, Myanmar, New_Tai_Lue, Nko, Ogham, Old_Italic, Old_Persian, Old_South_Arabian, Old_Turkic, Ol_Chiki, Oriya, Osmanya, Phags_Pa, Phoenician, Rejang, Runic, Samaritan, Saurashtra, Shavian, Sinhala, Sundanese, Syloti_Nagri, Syriac, Tagalog, Tagbanwa, Tai_Le, Tai_Tham, Tai_Viet, Tamil, Telugu, Thaana, Thai, Tibetan, Tifinagh, Ugaritic, Vai, Yi. Each character has exactly one Unicode general category property, spec- ified by a two-letter abbreviation. For compatibility with Perl, nega- tion can be specified by including a circumflex between the opening brace and the property name. For example, \p{^Lu} is the same as \P{Lu}. If only one letter is specified with \p or \P, it includes all the gen- eral category properties that start with that letter. In this case, in the absence of negation, the curly brackets in the escape sequence are optional; these two examples have the same effect: \p{L} \pL -- Edit bug report at http://bugs.php.net/bug.php?id=54154&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54154&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54154&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54154&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54154&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54154&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54154&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54154&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54154&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54154&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54154&r=support Expected behavior: http://bugs.php.net/fix.php?id=54154&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54154&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54154&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54154&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54154&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54154&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54154&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54154&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54154&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54154&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54154&r=mysqlcfg

« previous php.doc.bugs (#6049) next »