iconv

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

* Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func (*Converter) Convert

func (t *Converter) Convert(reader io.Reader) io.Reader

func (*Converter) ConvertBytes

func (t *Converter) ConvertBytes(input []byte) ([]byte, error)

func (*Converter) ConvertString

func (t *Converter) ConvertString(input string) (transformedStr string, err error)

func (*Converter) String

func (t *Converter) String() string

type ICharsetConverter

type ICharsetConverter interface {
	// ConvertString converts the charset of an input string
	ConvertString(input string) (string, error)

	// ConvertBytes converts the charset of an input byte array
	ConvertBytes(input []byte) ([]byte, error)

	// Convert converts the charset of a reader
	Convert(reader io.Reader) io.Reader

	// String describes the conversion
	String() string
}

func NewConverter

func NewConverter(fromEncoding encoding.Encoding, toEncoding encoding.Encoding) ICharsetConverter

Jump to

Keyboard shortcuts

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