utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 121

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decompose added in v0.9.0

func Decompose(rawBytes []byte, modulo *big.Int) (decomposed []byte)

Decompose interpret rawBytes as a bigInt x in big endian, and returns the digits of x (from LSB to MSB) when x is written in basis modulo.

func ToSubscript

func ToSubscript(s string) string

ToSubscript converts a string to subscript to the utmost. It will use original rune if there has no corresponding subscript for a letter.

func ToSuperscript

func ToSuperscript(s string) string

ToSuperscript converts a string to superscript to the utmost. It will use original rune if there has no corresponding superscript for a letter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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