]> granicus.if.org Git - postgresql/commit
Doc: improve description of regexp character classes.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 May 2019 22:39:53 +0000 (18:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 May 2019 22:39:53 +0000 (18:39 -0400)
commitcf92226e9f7f985a678287167b954a831a3b660c
treea159c588f3b29713ed37024eefd2e3b9771987f8
parenta240570b1e3802d1e82da08a9d72abeade370249
Doc: improve description of regexp character classes.

Define the meanings of the POSIX-spec character classes in line,
rather than referring to the ctype(3) man page.  That man page
doesn't even exist on many modern systems, and if it does exist
it probably says the wrong things about non-ASCII characters.
Also document our non-POSIX-spec "ascii" character class.

Also, point out here that this behavior is controlled by collation or
LC_CTYPE, since the existing text explaining that is pretty far away.

Per gripe from Geert Lobbestael.  Given the lack of prior complaints,
I'm not excited about back-patching this.

Discussion: https://postgr.es/m/155837022049.1359.2948065118562813468@wrigleys.postgresql.org
doc/src/sgml/func.sgml