Method: Textbringer::Buffer#char_after

Defined in:
lib/textbringer/buffer.rb

#char_after(location = @point) ⇒ Object



493
494
495
496
497
498
499
500
# File 'lib/textbringer/buffer.rb', line 493

def char_after(location = @point)
  if @binary
    byte_after(location)
  else
    s = substring(location, location + UTF8_CHAR_LEN[byte_after(location)])
    s.empty? ? nil : s
  end
end