Documentation ¶
Overview ¶
Package searchvietnamese provide tool to search Vietnamese text more pleasant.
Index ¶
- func Contains(text, keyword string) bool
- func ContainsSensitive(text, keyword string) bool
- func Equal(target, source string) bool
- func EqualSensitive(target, source string) bool
- func FuzzyMatch(text, keyword string) bool
- func FuzzyMatchSensitive(text, keyword string) bool
- func Index(text, keyword string) int
- func IndexSensitive(text, keyword string) int
- func StrictContains(text, keyword string) bool
- func StrictContainsSensitive(text, keyword string) bool
- func StrictIndex(text, keyword string) int
- func StrictIndexSensitive(text, keyword string) int
- func StrictToAlphabetSensitive(text []rune) string
- func ToAlphabetSensitive(text []rune) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsSensitive ¶
ContainsSensitive check keyword in Vietnamese text with case-sensitive.
func EqualSensitive ¶
EqualSensitive check two Vietnamese string equal with case-sensitive.
func FuzzyMatch ¶
FuzzyMatch fuzzy check keyword in Vietnamese text. Credit https://github.com/lithammer/fuzzysearch/blob/master/fuzzy/fuzzy.go
func FuzzyMatchSensitive ¶
FuzzyMatchSensitive fuzzy check keyword in Vietnamese text with case-sensitive. Credit https://github.com/lithammer/fuzzysearch/blob/master/fuzzy/fuzzy.go
func IndexSensitive ¶
IndexSensitive find keyword in Vietnamese text with case-sensitive.
func StrictContains ¶
StrictContains check keyword in Vietnamese text. This function assume that your text is valid Vietnamese paragraph. It mean there are no other UTF-8 characters than Vietnamese characters.
func StrictContainsSensitive ¶
StrictContainsSensitive check keyword in Vietnamese text with case-sensitive. This function assume that your text is valid Vietnamese paragraph. It mean there are no other UTF-8 characters than Vietnamese characters.
func StrictIndex ¶
StrictIndex find keyword in Vietnamese text. This function assume that your text is valid Vietnamese paragraph. It mean there are no other UTF-8 characters than Vietnamese characters.
func StrictIndexSensitive ¶
StrictIndexSensitive find keyword in Vietnamese text with case-sensitive. This function assume that your text is valid Vietnamese paragraph. It mean there are no other UTF-8 characters than Vietnamese characters.
func StrictToAlphabetSensitive ¶
StrictToAlphabetSensitive convert slice of rune to a string that replace all Vietnamese characters with alphabet characters, respectively. This function assume that your text is valid Vietnamese paragraph. It mean there are no other UTF-8 characters than Vietnamese characters.
func ToAlphabetSensitive ¶
ToAlphabetSensitive convert slice of rune to a string that replace all Vietnamese characters with alphabet characters, respectively.
Types ¶
This section is empty.