mac

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mac implements the Mac Roman encoding. This is the standard Roman encoding that is used for PlatformID==1, EncodingID == 0. This is similar to the MacRomanEncoding in PDF, but adds 15 entries and replaces the currency glyph with the Euro glyph. https://en.wikipedia.org/wiki/Mac_OS_Roman

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(cc []byte) string

Decode decodes a string of MacRoman encoded bytes.

func DecodeOne

func DecodeOne(c byte) rune

DecodeOne decodes a single MacRoman encoded byte.

func Encode

func Encode(s string) []byte

Encode encodes a string of Unicode runes. Runes which cannot be represented in the MacRoman encoding are replaced by question marks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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