From: aycabta@... Date: 2018-07-18T05:18:27+00:00 Subject: [ruby-core:87975] [Ruby trunk Bug#14919] Add String#byteinsert Issue #14919 has been reported by aycabta (aycabta .). ---------------------------------------- Bug #14919: Add String#byteinsert https://bugs.ruby-lang.org/issues/14919 * Author: aycabta (aycabta .) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- It's important for multibyte String editing. Unicode grapheme characters sometimes have plural code points. In text editing, software sometimes should add a new code point to an existing grapheme character. String#byteinsert is important for it. I implemented by pure Ruby in my code. https://github.com/aycabta/reline/blob/b17e5fd61092adfd7e87d576301e4e19a4d9e6d8/lib/reline/line_editor.rb#L255-L260 -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>