mbs

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFullWidth

func HasFullWidth(s string) bool

HasFullWidth checks if the string contains any full-width chars.

func HasHalfWidth

func HasHalfWidth(s string) bool

HasHalfWidth checks if the string contains any unicode half-width chars.

func IsFullWidth

func IsFullWidth(s string) bool

IsFullWidth checks if the string contains full-width chars only.

func IsHalfRune

func IsHalfRune(c rune) bool

IsHalfRune checks if the rune c is unicode half-width char. \u0000-\u00FF\uFF61-\uFFDF\uFFE8-\uFFEE

func IsHalfWidth

func IsHalfWidth(s string) bool

IsHalfWidth checks if the string contains half-width chars only.

func IsHankaku

func IsHankaku(s string) bool

IsHankaku return true if s is Hankaku string

func IsHankakuKatakana

func IsHankakuKatakana(s string) bool

IsHankakuKatakana return true if s is HankakuKatakana string

func IsHankakuKatakanaRune

func IsHankakuKatakanaRune(c rune) bool

IsHankakuKatakanaRune return true if c is Hankaku Katakana rune http://charset.7jp.net/jis0201.html

func IsHankakuKatakanaSpace

func IsHankakuKatakanaSpace(s string) bool

IsHankakuKatakanaSpace return true if s is HankakuKatakana or space string

func IsHankakuRune

func IsHankakuRune(c rune) bool

IsHankakuRune return true if c is Hankaku rune

func IsVariableWidth

func IsVariableWidth(s string) bool

IsVariableWidth checks if the string contains a mixture of full and half-width chars.

func IsZenkaku

func IsZenkaku(s string) bool

IsZenkaku return true if s is Zenkaku string

func IsZenkakuHiragana

func IsZenkakuHiragana(s string) bool

IsZenkakuHiragana return true if s is ZenkakuHiragana string

func IsZenkakuHiraganaRune

func IsZenkakuHiraganaRune(c rune) bool

IsZenkakuHiraganaRune return true if c is Zenkaku Hiragana rune https://ja.wikipedia.org/wiki/平仮名_(Unicodeのブロック)

func IsZenkakuHiraganaSpace

func IsZenkakuHiraganaSpace(s string) bool

IsZenkakuHiraganaSpace return true if s is Zenkaku Hiragana or Space string

func IsZenkakuHiraganaSpaces

func IsZenkakuHiraganaSpaces(s string) bool

IsZenkakuHiraganaSpaces return true if s is Zenkaku Hiragana or Space(Zenkaku or Hankaku) string

func IsZenkakuKatakana

func IsZenkakuKatakana(s string) bool

IsZenkakuKatakana return true if s is ZenkakuKatakana string

func IsZenkakuKatakanaRune

func IsZenkakuKatakanaRune(c rune) bool

IsZenkakuKatakanaRune return true if c is Zenkaku Katakana rune https://ja.wikipedia.org/wiki/片仮名_(Unicodeのブロック)

func IsZenkakuKatakanaSpace

func IsZenkakuKatakanaSpace(s string) bool

IsZenkakuKatakanaSpace return true if s is Zenkaku Katakana or Space string

func IsZenkakuKatakanaSpaces

func IsZenkakuKatakanaSpaces(s string) bool

IsZenkakuKatakanaSpaces return true if s is Zenkaku Katakana or Space (Zenkaku or Hankaku) string

func IsZenkakuRune

func IsZenkakuRune(c rune) bool

IsZenkakuRune return true if c is Zenkaku

func ToASCII

func ToASCII(s string) string

ToASCII convert the string from multi byte to single byte ascii

func ToASCIIRune

func ToASCIIRune(c rune) rune

ToASCIIRune convert multi ascii rune c to single ascii rune

func ToFullRune

func ToFullRune(c rune) rune

ToFullRune convert single ascii rune c to multi ascii rune

func ToFullWidth

func ToFullWidth(s string) string

ToFullWidth convert the string from single ascii to multi ascii

func ToHankaku

func ToHankaku(s string) string

ToHankaku convert the string from zenkaku to hankaku

func ToHankakuDakuRune

func ToHankakuDakuRune(c rune) rune

ToHankakuDakuRune convert the rune c to hankaku Daku

func ToHankakuHandakuRune

func ToHankakuHandakuRune(c rune) rune

ToHankakuHandakuRune convert the rune c to hankaku Handaku

func ToHankakuRune

func ToHankakuRune(c rune) rune

ToHankakuRune convert the rune c to hankaku

func ToZenkaku

func ToZenkaku(s string) string

ToZenkaku convert the string from hankaku to Zenkaku

func ToZenkakuDakuRune

func ToZenkakuDakuRune(c rune) rune

ToZenkakuDakuRune convert the rune c to zenkaku Daku

func ToZenkakuHandakuRune

func ToZenkakuHandakuRune(c rune) rune

ToZenkakuHandakuRune convert the rune c to zenkaku Handaku

func ToZenkakuRune

func ToZenkakuRune(c rune) rune

ToZenkakuRune convert the rune c to zenkaku

Types

This section is empty.

Jump to

Keyboard shortcuts

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