invert

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: BSD-2-Clause Imports: 1 Imported by: 1

README

invert

Go Reference

go get github.com/jimmyfrasche/invert

Package invert exists to invert indices as returned by the regexp Index family of functions. It also contains inverting helpers for FindAll(String)?(Index)?.


Automatically generated by autoreadme

Documentation

Overview

Package invert exists to invert indices as returned by the regexp Index family of functions. It also contains inverting helpers for FindAll(String)?(Index)?.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAll

func FindAll(r *regexp.Regexp, b []byte, n int) (out [][]byte)

FindAll returns the inverse of Regexp.FindAll.

func FindAllIndex

func FindAllIndex(r *regexp.Regexp, b []byte, n int) [][]int

FindAllIndex returns the inverse of Regexp.FindAllIndex.

func FindAllString

func FindAllString(r *regexp.Regexp, s string, n int) (out []string)

FindAllString returns the inverse of Regexp.FindAllString.

func FindAllStringIndex

func FindAllStringIndex(r *regexp.Regexp, s string, n int) [][]int

FindAllStringIndex returns the inverse of Regexp.FindAllStringIndex.

func Indicies

func Indicies(idc [][]int, slen int) (out [][]int)

Indicies takes a slice of len-2 slices describing non-overlapping subsequences of a sequence and the length of that sequence and returns the inverse of those subsequences.

Types

This section is empty.

Jump to

Keyboard shortcuts

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