From: naruse@... Date: 2017-04-27T10:00:46+00:00 Subject: [ruby-core:80902] [Ruby trunk Feature#9116] String#rsplit missing Issue #9116 has been updated by naruse (Yui NARUSE). I find a use case. >test_priv=# SELECT * FROM pg_database; > datname | datdba | encoding | datcollate | datctype | datistemplate | datallowconn | datconnlimit | datlastsysoid | datfrozenxid | datminmxid | dattablespace | datacl > ----------------------+--------+----------+-------------+-------------+---------------+--------------+--------------+---------------+--------------+------------+---------------+----------------------------------------- > test_prev | 16384 | 6 | en_US.UTF-8 | en_US.UTF-8 | f | t | -1 | 12668 | 1917 | 1 | 1663 | {=Tc/pg,pg=CTc/pg,"\"foo=bar\"=CTc/pg"} On PostgreSQL, I can retrieve databases information by SQL, and its ACL data is "datacl" column as key-value. Its key is rolename (user/group name) and the value is the privilege, with separated "=". The rolename may include "=" as above. ---------------------------------------- Feature #9116: String#rsplit missing https://bugs.ruby-lang.org/issues/9116#change-64507 * Author: artagnon (Ramkumar Ramachandra) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- There's nothing corresponding to Python's rsplit(). A quick glance at rb_str_split_m() tells me that it should be pretty trivial to implement. Is there any specific reason it hasn't already been done? -- https://bugs.ruby-lang.org/ Unsubscribe: