A wrapping around prism’s internal encoding data structures. This is used for reflection and debugging purposes.

Attributes
Read

The name of the encoding, that can be passed to Encoding.find.

Class Methods

Initialize a new encoding with the given name and whether or not it is a multibyte encoding.

Instance Methods

Returns true if the first character in the source string is a valid alphanumeric character for the encoding.

Returns true if the first character in the source string is a valid alphabetic character for the encoding.

Whether or not the encoding is a multibyte encoding.

Returns true if the first character in the source string is a valid uppercase character for the encoding.

Returns the number of bytes of the first character in the source string, if it is valid for the encoding. Otherwise, returns 0.