Registers a subclass of EncodingScheme.
Obtains a subclass of EncodingScheme which is capable of encoding and decoding the named encoding scheme.
Returns the standard name of the encoding scheme
Returns an array of all known names for this encoding scheme
Returns true if the character c can be represented in this encoding scheme.
Returns the number of ubytes required to encode this code point.
Encodes a single code point into a user-supplied, fixed-size buffer.
Decodes a single code point.
Decodes a single code point. The input does not have to be valid.
Returns the sequence of ubytes to be used to represent any character which cannot be represented in the encoding scheme.
Returns true if the array is encoded correctly
Returns the length of the longest possible substring, starting from the first element, which is validly encoded.
Sanitizes an array by replacing malformed ubyte sequences with valid ubyte sequences. The result is guaranteed to be valid for this encoding scheme.
Returns the length of the first encoded sequence.
Returns the total number of code points encoded in a ubyte array.
Returns the array index at which the (n+1)th code point begins.
EncodingScheme to handle Windows-1251
This scheme recognises the following names: "windows-1251"