strings

package
v0.0.0-...-a4a72b7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package strings is a package that contains all algorithms that are used to analyse and manipulate strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountChars

func CountChars(text string) map[rune]int

CountChars counts the number of a times a character has occurred in the provided string argument and returns a map with `rune` as keys and the count as value.

func IsIsogram

func IsIsogram(text string, order IsogramOrder) (bool, error)

func IsSubsequence

func IsSubsequence(s string, t string) bool

Returns true if s is subsequence of t, otherwise return false.

Types

type IsogramOrder

type IsogramOrder int
const (
	First IsogramOrder = iota + 1
	Second
	Third
)

Directories

Path Synopsis
Package combination ...
Package combination ...
Package genetic provides functions to work with strings using genetic algorithm.
Package genetic provides functions to work with strings using genetic algorithm.
Package guid provides facilities for generating random globally unique identifiers.
Package guid provides facilities for generating random globally unique identifiers.

Jump to

Keyboard shortcuts

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