jpn

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareFold added in v1.0.27

func CompareFold(s, t string) int

CompareFold returns an integer comparing two strings case & width & kana insensitive. The result will be 0 if a==b, -1 if a < b, and +1 if a > b.

func CompareKana added in v1.0.27

func CompareKana(s, t string) int

CompareKana returns an integer comparing two strings kana-insensitive. The result will be 0 if a==b, -1 if a < b, and +1 if a > b.

func HiraganaToKatagana added in v1.0.27

func HiraganaToKatagana(s string) string

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 https://www.asahi-net.or.jp/~ax2s-kmtn/ref/unicode/uff00.html

func IsHankakuKatakanaSpace

func IsHankakuKatakanaSpace(s string) bool

IsHankakuKatakanaSpace return true if s is HankakuKatakana or space string

func IsHankakuKatakanaSpaceRune

func IsHankakuKatakanaSpaceRune(c rune) bool

func IsHankakuRune

func IsHankakuRune(c rune) bool

IsHankakuRune return true if c is Hankaku rune

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 IsZenkakuHiraganaSpaceRune

func IsZenkakuHiraganaSpaceRune(c rune) bool

func IsZenkakuHiraganaSpaces

func IsZenkakuHiraganaSpaces(s string) bool

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

func IsZenkakuHiraganaSpacesRune

func IsZenkakuHiraganaSpacesRune(c rune) bool

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のブロック) https://ja.wikipedia.org/wiki/片仮名拡張

func IsZenkakuKatakanaSpace

func IsZenkakuKatakanaSpace(s string) bool

IsZenkakuKatakanaSpace return true if s is Zenkaku Katakana or Space string

func IsZenkakuKatakanaSpaceRune

func IsZenkakuKatakanaSpaceRune(c rune) bool

func IsZenkakuKatakanaSpaces

func IsZenkakuKatakanaSpaces(s string) bool

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

func IsZenkakuKatakanaSpacesRune

func IsZenkakuKatakanaSpacesRune(c rune) bool

func IsZenkakuRune

func IsZenkakuRune(c rune) bool

IsZenkakuRune return true if c is Zenkaku

func KataganaToHiragana added in v1.0.27

func KataganaToHiragana(s string) string

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