tools

package
v0.0.0-...-d5f7082 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NormCrChar = 13
View Source
const NormLfChar = 10

Variables

This section is empty.

Functions

func AutomaticDecoder

func AutomaticDecoder(byteString []byte, tryEncodings ...*charmap.Charmap) (string, error)

func BytesEnsureIso

func BytesEnsureIso(input []byte) []byte

func BytesIsoDecoder

func BytesIsoDecoder(input []byte) ([]byte, error)

func BytesIsoEncoder

func BytesIsoEncoder(input []byte) ([]byte, error)

func BytesToIsoString

func BytesToIsoString(input []byte) (string, error)

func BytesliceEqual

func BytesliceEqual(slices ...[]byte) bool

func EnsureCrlfBytes

func EnsureCrlfBytes(b []byte) []byte

Ensure the content is using CRLF line endings

func EnsureCrlfString

func EnsureCrlfString(s string) string

Ensure the content is using CRLF line endings

func IdentifyInvalidUtf8

func IdentifyInvalidUtf8(text string) error

func IdentifyInvalidUtf8Bytes

func IdentifyInvalidUtf8Bytes(byteText []byte) error

func SliceContains

func SliceContains(slice []string, value string) bool

func SliceEqual

func SliceEqual(slices ...[]string) bool

func StringEnsureIso

func StringEnsureIso(input string) string

func StringIsoDecoder

func StringIsoDecoder(input string) (string, error)

func StringIsoEncoder

func StringIsoEncoder(input string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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