cmapt

package
v0.0.0-...-41de90d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2014 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Character Mappings (cmap).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMapRangeT

type CMapRangeT struct {
	Prev           *CMapRangeT
	From, To, Dest int
}

type CMapT

type CMapT struct {
	Basic    [256]int    // basic characters
	Extended map[int]int // characters > 255
	Ranges   *CMapRangeT // ranges with growing content
	DRanges  *CMapRangeT // fixed ranges
}

func New

func New() *CMapT

func (*CMapT) Add

func (m *CMapT) Add(k, dest int)

func (*CMapT) AddDef

func (m *CMapT) AddDef(from, to, dest int)

func (*CMapT) AddRange

func (m *CMapT) AddRange(from, to, dest int)

func (*CMapT) Code

func (m *CMapT) Code(s int) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL