summaryrefslogtreecommitdiff
path: root/vendor/github.com/yuin/goldmark/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/yuin/goldmark/util/util.go')
-rw-r--r--vendor/github.com/yuin/goldmark/util/util.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/github.com/yuin/goldmark/util/util.go b/vendor/github.com/yuin/goldmark/util/util.go
index 1bfc58520..9bf09adf2 100644
--- a/vendor/github.com/yuin/goldmark/util/util.go
+++ b/vendor/github.com/yuin/goldmark/util/util.go
@@ -836,22 +836,6 @@ func IsAlphaNumeric(c byte) bool {
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9'
}
-// IsEastAsianWideRune returns trhe if the given rune is an east asian wide character, otherwise false.
-func IsEastAsianWideRune(r rune) bool {
- // https://en.wikipedia.org/wiki/CJK_Symbols_and_Punctuation
- var CJKSymbolsAndPunctuation = &unicode.RangeTable{
- R16: []unicode.Range16{
- {0x3000, 0x303F, 1},
- },
- }
- return unicode.Is(unicode.Hiragana, r) ||
- unicode.Is(unicode.Katakana, r) ||
- unicode.Is(unicode.Han, r) ||
- unicode.Is(unicode.Lm, r) ||
- unicode.Is(unicode.Hangul, r) ||
- unicode.Is(CJKSymbolsAndPunctuation, r)
-}
-
// A BufWriter is a subset of the bufio.Writer .
type BufWriter interface {
io.Writer