stringlib

package
Version: v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(t *rt.Thread, format rt.String, values []rt.Value) (rt.String, error)

Format is the base for the implementation of lua string.format()

It works by scanning the verbs in the format string and converting the argument corresponding to this verb to the correct type, then calling Go's fmt.Sprintf().

func PackSize

func PackSize(format string) (uint, error)

func PackValues

func PackValues(format string, values []rt.Value) (string, error)

func UnpackString

func UnpackString(format, pack string, j int) ([]rt.Value, int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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