strconv

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 strconv provides a mockable wrapper for strconv.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) AppendBool

func (*Impl) AppendBool(dst []byte, b bool) []byte

func (*Impl) AppendFloat

func (*Impl) AppendFloat(dst []byte, f float64, fmt byte, prec int, bitSize int) []byte

func (*Impl) AppendInt

func (*Impl) AppendInt(dst []byte, i int64, base int) []byte

func (*Impl) AppendQuote

func (*Impl) AppendQuote(dst []byte, s string) []byte

func (*Impl) AppendQuoteRune

func (*Impl) AppendQuoteRune(dst []byte, r rune) []byte

func (*Impl) AppendQuoteRuneToASCII

func (*Impl) AppendQuoteRuneToASCII(dst []byte, r rune) []byte

func (*Impl) AppendQuoteRuneToGraphic

func (*Impl) AppendQuoteRuneToGraphic(dst []byte, r rune) []byte

func (*Impl) AppendQuoteToASCII

func (*Impl) AppendQuoteToASCII(dst []byte, s string) []byte

func (*Impl) AppendQuoteToGraphic

func (*Impl) AppendQuoteToGraphic(dst []byte, s string) []byte

func (*Impl) AppendUint

func (*Impl) AppendUint(dst []byte, i uint64, base int) []byte

func (*Impl) Atoi

func (*Impl) Atoi(s string) (int, error)

func (*Impl) CanBackquote

func (*Impl) CanBackquote(s string) bool

func (*Impl) FormatBool

func (*Impl) FormatBool(b bool) string

func (*Impl) FormatComplex

func (*Impl) FormatComplex(c complex128, fmt byte, prec int, bitSize int) string

func (*Impl) FormatFloat

func (*Impl) FormatFloat(f float64, fmt byte, prec int, bitSize int) string

func (*Impl) FormatInt

func (*Impl) FormatInt(i int64, base int) string

func (*Impl) FormatUint

func (*Impl) FormatUint(i uint64, base int) string

func (*Impl) IsGraphic

func (*Impl) IsGraphic(r rune) bool

func (*Impl) IsPrint

func (*Impl) IsPrint(r rune) bool

func (*Impl) Itoa

func (*Impl) Itoa(i int) string

func (*Impl) ParseBool

func (*Impl) ParseBool(str string) (bool, error)

func (*Impl) ParseComplex

func (*Impl) ParseComplex(s string, bitSize int) (complex128, error)

func (*Impl) ParseFloat

func (*Impl) ParseFloat(s string, bitSize int) (float64, error)

func (*Impl) ParseInt

func (*Impl) ParseInt(s string, base int, bitSize int) (i int64, err error)

func (*Impl) ParseUint

func (*Impl) ParseUint(s string, base int, bitSize int) (uint64, error)

func (*Impl) Quote

func (*Impl) Quote(s string) string

func (*Impl) QuoteRune

func (*Impl) QuoteRune(r rune) string

func (*Impl) QuoteRuneToASCII

func (*Impl) QuoteRuneToASCII(r rune) string

func (*Impl) QuoteRuneToGraphic

func (*Impl) QuoteRuneToGraphic(r rune) string

func (*Impl) QuoteToASCII

func (*Impl) QuoteToASCII(s string) string

func (*Impl) QuoteToGraphic

func (*Impl) QuoteToGraphic(s string) string

func (*Impl) QuotedPrefix

func (*Impl) QuotedPrefix(s string) (string, error)

func (*Impl) Unquote

func (*Impl) Unquote(s string) (string, error)

func (*Impl) UnquoteChar

func (*Impl) UnquoteChar(s string, quote byte) (value rune, multibyte bool, tail string, err error)

type Interface

type Interface interface {
	AppendBool(dst []byte, b bool) []byte
	AppendFloat(dst []byte, f float64, fmt byte, prec int, bitSize int) []byte
	AppendInt(dst []byte, i int64, base int) []byte
	AppendQuote(dst []byte, s string) []byte
	AppendQuoteRune(dst []byte, r rune) []byte
	AppendQuoteRuneToASCII(dst []byte, r rune) []byte
	AppendQuoteRuneToGraphic(dst []byte, r rune) []byte
	AppendQuoteToASCII(dst []byte, s string) []byte
	AppendQuoteToGraphic(dst []byte, s string) []byte
	AppendUint(dst []byte, i uint64, base int) []byte
	Atoi(s string) (int, error)
	CanBackquote(s string) bool
	FormatBool(b bool) string
	FormatComplex(c complex128, fmt byte, prec int, bitSize int) string
	FormatFloat(f float64, fmt byte, prec int, bitSize int) string
	FormatInt(i int64, base int) string
	FormatUint(i uint64, base int) string
	IsGraphic(r rune) bool
	IsPrint(r rune) bool
	Itoa(i int) string
	ParseBool(str string) (bool, error)
	ParseComplex(s string, bitSize int) (complex128, error)
	ParseFloat(s string, bitSize int) (float64, error)
	ParseInt(s string, base int, bitSize int) (i int64, err error)
	ParseUint(s string, base int, bitSize int) (uint64, error)
	Quote(s string) string
	QuoteRune(r rune) string
	QuoteRuneToASCII(r rune) string
	QuoteRuneToGraphic(r rune) string
	QuoteToASCII(s string) string
	QuoteToGraphic(s string) string
	QuotedPrefix(s string) (string, error)
	Unquote(s string) (string, error)
	UnquoteChar(s string, quote byte) (value rune, multibyte bool, tail string, err error)
}

Jump to

Keyboard shortcuts

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