value

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package value is how tutor reads a value as the module format's checks read it: the normalization of steps 1 to 4, a number's value read in steps 1 to 5 and 7, and a text in a notation of number as a rational number, exactly. The reading compares the texts of parts by it and finds a value in its part's writing, the leak check finds the key's number, and the reports compare what was read with what was written. The verdict is module-kit's.

The normalization follows Unicode 17.0.0, the version of the tables of Go 1.27 and of golang.org/x/text v0.42.0 (norm.Version); the format's test vectors use only characters that every version from 15.0 on normalizes alike.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lowercase

func Lowercase(runes []rune) []rune

Lowercase maps each character to its simple lowercase mapping, as unicode.ToLower does: a character at a time, so that no context, such as a final sigma, counts.

func Normalize

func Normalize(text string) string

Normalize is steps 1 to 4 of the format's checks, which a value goes through: the superscript and subscript digits, and the vulgar fractions a number touches, become U+FFFD; NFKC; the dashes and the minus become "-" and the fraction and division slashes "/"; every run of white space becomes one space, and white space at either end is dropped.

func Rational

func Rational(text string) (*big.Rat, bool)

Rational is a text in a notation of number as a rational number, exactly, and false when the text is in none.

func Read

func Read(value string) (string, bool)

Read reads a value as the kind number reads it with no units, in steps 1 to 5 and 7 of the format's checks: the text that is left, and false when it is blank.

Types

This section is empty.

Jump to

Keyboard shortcuts

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