index

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitIn

func BitIn(index int, bitset uint) uint

BitIn test whether the bit at index is set to 1, if true, return 1 << index, else 0

func BitNotIn

func BitNotIn(index int, bitset uint) uint

BitNotIn test whether the bit at index is set to 0, if true, return 1 << index, else 0

func ByteIn

func ByteIn(b byte, bs ...byte) int

ByteIn return the index that byte in byte list or -1 if not exist

func CharIn

func CharIn(b byte, s string) int

CharIn search index of char in sorted string with ascending order

func RuneIn

func RuneIn(ru rune, rs ...rune) int

RuneIn return the index that rune in rune list or -1 if not exist

func SortedNumberIn

func SortedNumberIn(n int, nums ...int) int

SortedNumberIn search index of number in sorted numbers with ascending order

func StringIn

func StringIn(str string, strs []string) int

StringIn return the index of string to find in a string slice or -1 if not found

Types

This section is empty.

Jump to

Keyboard shortcuts

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