Class String
In: lib/asciidoctor/core_ext/string/limit_bytesize.rb
lib/asciidoctor/core_ext/nil_or_empty.rb
lib/asciidoctor/core_ext/1.8.7/string/limit_bytesize.rb
lib/asciidoctor/core_ext/1.8.7/string/chr.rb
Parent: Object

Educate Ruby 1.8.7 about the String#chr method.

Methods

Constants

ValidTrailingCharRx = /.$/u

External Aliases

empty? -> nil_or_empty?

Public Instance methods

Safely truncate the string to the specified number of bytes. If a multibyte char gets split, the dangling fragment is removed.

Safely truncate the string to the specified number of bytes. If a multibyte char gets split, the dangling fragment is removed.

Safely truncate the string to the specified number of bytes. If a multibyte char gets split, the dangling fragment is removed.

[Validate]