string

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(L *lua.LState) int

Contains lua strings.contains(string, cutset) Port of go string.Contains() returns bool

func Fields

func Fields(L *lua.LState) int

Fields lua strings.fields(string) Port of go string.Fields() returns table

func HasPrefix

func HasPrefix(L *lua.LState) int

HasPrefix lua strings.has_prefix(string, suffix): port of go string.HasPrefix() return bool

func HasSuffix

func HasSuffix(L *lua.LState) int

HasSuffix lua strings.has_suffix(string, prefix): port of go string.HasSuffix() returns bool

func Join

func Join(state *lua.LState) int

func Loader

func Loader(L *lua.LState) int

Loader is the module loader function.

func Preload

func Preload(L *lua.LState)

Preload adds strings to the given Lua state's package.preload table. After it has been preloaded, it can be loaded using require:

local strings = require("strings")

func Split

func Split(L *lua.LState) int

Split lua strings.split(string, sep): port of go string.Split() returns table

func Trim

func Trim(L *lua.LState) int

Trim lua strings.trim(string, cutset) Port of go string.Trim() returns string

func TrimPrefix

func TrimPrefix(L *lua.LState) int

TrimPrefix lua strings.trim_prefix(string, cutset) Port of go string.TrimPrefix() returns string

func TrimSpace

func TrimSpace(L *lua.LState) int

TrimSpace lua strings.trim_space(string) Port of go string.TrimSpace() returns string

func TrimSuffix

func TrimSuffix(L *lua.LState) int

TrimSuffix lua strings.trim_suffix(string, cutset) Port of go string.TrimSuffix() returns string

Types

This section is empty.

Jump to

Keyboard shortcuts

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