utf16

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package utf16 provides a mockable wrapper for unicode/utf16.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Decode

func (*Impl) Decode(s []uint16) []rune

func (*Impl) DecodeRune

func (*Impl) DecodeRune(r1 rune, r2 rune) rune

func (*Impl) Encode

func (*Impl) Encode(s []rune) []uint16

func (*Impl) EncodeRune

func (*Impl) EncodeRune(r rune) (r1 rune, r2 rune)

func (*Impl) IsSurrogate

func (*Impl) IsSurrogate(r rune) bool

type Interface

type Interface interface {
	Decode(s []uint16) []rune
	DecodeRune(r1 rune, r2 rune) rune
	Encode(s []rune) []uint16
	EncodeRune(r rune) (r1 rune, r2 rune)
	IsSurrogate(r rune) bool
}

Jump to

Keyboard shortcuts

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