class Hpdf::Encoder

Included Modules

Defined in:

hpdf/encoding.cr

Constructors

Instance Method Summary

Instance methods inherited from module Hpdf::Helper

bool(val : Bool) : Int32 bool, nilable_str(v : Pointer(UInt8)) : String | Nil nilable_str, real(val : Number) : LibHaru::Real real, uint(val : Number) : LibHaru::UInt uint, uint16(val : Number) : UInt16 uint16

Constructor Detail

def self.new(name : String, encoder : LibHaru::Encoder, doc : Doc) #

[View source]

Instance Method Detail

def byte_type(text : String | Bytes, idx : Number) : ByteType #

returns the type of byte in the text at position index.


[View source]
def name : String #

name of the encoding, one of Encodings


[View source]
def to_unsafe : LibHaru::Encoder #

[View source]
def type : EncoderType #

gets the type of an encoding object.


[View source]
def unicode(code : UInt16) : Char #

converts a specified character code to unicode.


[View source]
def writing_mode #

returns the writing mode for the encoding object.


[View source]