MCPcopy Create free account

hub / github.com/axgle/mahonia / functions

Functions63 in github.com/axgle/mahonia

↓ 28 callersFunctiongb18030Linear
Data tables for 4-byte characters in GB18030 encoding. Based on http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/gb-18030-2005.ucm
gb18030-data.go:9
↓ 9 callersFunctionRegisterCharset
RegisterCharset adds a charset to the charsetMap.
charset.go:80
↓ 8 callersMethodAddCharacter
AddCharacter adds a character to the table. rune is its Unicode code point, and bytes contains the bytes used to encode it in the character set.
mbcs.go:24
↓ 6 callersFunctionNewDecoder
NewDecoder returns a Decoder to decode the named charset. If the name is not found, it returns nil.
charset.go:97
↓ 5 callersFunctionsimplifyName
simplifyName converts a name to lower case and removes non-alphanumeric characters. This is how the names are used as keys to the maps.
charset.go:63
↓ 3 callersMethodConvertString
ConvertString converts a string from UTF-8 to e's encoding.
convert_string.go:4
↓ 3 callersMethodfill
fill reads a new chunk into the buffer.
reader.go:38
↓ 2 callersMethodDecoder
()
mbcs.go:44
↓ 2 callersMethodEncoder
()
mbcs.go:74
↓ 2 callersFunctionFallbackDecoder
FallbackDecoder combines a series of Decoders into one. If the first Decoder returns a status of INVALID_CHAR, the others are tried as well. Note: if
fallback.go:9
↓ 2 callersFunctionGetCharset
GetCharset fetches a charset by name. If the name is not found, it returns nil.
charset.go:91
↓ 2 callersFunctionNewEncoder
NewEncoder returns an Encoder to encode the named charset.
charset.go:106
↓ 2 callersMethodNewReader
NewReader creates a new Reader that uses the receiver to decode text.
reader.go:29
↓ 2 callersMethodNewWriter
NewWriter creates a new Writer that uses the receiver to encode text.
writer.go:17
↓ 2 callersMethodWrite
Write encodes and writes the data from p.
writer.go:25
↓ 2 callersMethodWriteRune
(c rune)
writer.go:79
↓ 2 callersFunctiondoubleLength
(b []byte)
translate.go:46
↓ 2 callersMethodunpack
()
8bit.go:91
↓ 1 callersMethodConvertString
ConvertString converts a string from d's encoding to UTF-8.
convert_string.go:31
↓ 1 callersFunctionEntityDecoder
EntityDecoder returns a Decoder that decodes HTML character entities. If there is no valid character entity at the current position, it returns INVALI
entity.go:46
↓ 1 callersMethodRead
Read reads data into p. It returns the number of bytes read into p. It calls Read at most once on the underlying Reader, hence n may be less than len(
reader.go:59
↓ 1 callersMethodTranslate
Translate enables a Decoder to implement go-charset's Translator interface.
translate.go:6
↓ 1 callersFunctionencodeUTF16beRune
(p []byte, c rune)
utf16.go:99
↓ 1 callersMethodregister
()
8bit.go:32
MethodReadRune
ReadRune reads a single Unicode character and returns the rune and its size in bytes.
reader.go:125
FunctionTestDecode
(t *testing.T)
mahonia_test.go:68
FunctionTestDecodeTranslate
(t *testing.T)
mahonia_test.go:84
FunctionTestEncode
(t *testing.T)
mahonia_test.go:101
FunctionTestEntities
(t *testing.T)
mahonia_test.go:165
FunctionTestFallback
(t *testing.T)
mahonia_test.go:155
FunctionTestReader
(t *testing.T)
mahonia_test.go:117
FunctionTestSimplifyName
(t *testing.T)
mahonia_test.go:16
FunctionTestWriter
(t *testing.T)
mahonia_test.go:136
FunctionbuildEntityTrie
()
entity.go:19
FunctionbuildGB18030Tables
()
gb18030.go:149
FunctiondecodeASCIIRune
(p []byte)
ASCII.go:26
FunctiondecodeBig5Rune
(p []byte)
big5.go:23
FunctiondecodeGB18030Rune
(p []byte)
gb18030.go:23
FunctiondecodeGBKRune
(p []byte)
gbk.go:17
FunctiondecodeLatin1Rune
(p []byte)
ASCII.go:54
FunctiondecodeUTF16beRune
(p []byte)
utf16.go:72
FunctiondecodeUTF16leRune
(p []byte)
utf16.go:122
FunctiondecodeUTF8Rune
(p []byte)
utf8.go:13
FunctionencodeASCIIRune
(p []byte, c rune)
ASCII.go:39
FunctionencodeBig5Rune
(p []byte, r rune)
big5.go:48
FunctionencodeGB18030Rune
(p []byte, r rune)
gb18030.go:83
FunctionencodeGBKRune
(p []byte, r rune)
gbk.go:46
FunctionencodeLatin1Rune
(p []byte, c rune)
ASCII.go:63
FunctionencodeUTF16leRune
(p []byte, c rune)
utf16.go:149
FunctionencodeUTF8Rune
(p []byte, c rune)
utf8.go:38
Functioninit
Converters for GB18030 encoding.
gb18030.go:9
Functioninit
()
big5.go:9
Functioninit
()
8bit.go:108
Functioninit
Converters for GBK encoding.
gbk.go:5
Functioninit
()
shiftjis.go:9
Functioninit
()
utf16.go:7
Functioninit
Converters for ASCII and ISO-8859-1
ASCII.go:5
Functioninit
()
utf8.go:5
Functioninit
()
euc-jp.go:9
Functionmain
()
mahoniconv/mahoniconv.go:16
FunctionmakeEUCJPTable
()
euc-jp.go:27
FunctionmakeSjisTable
()
shiftjis.go:28
FunctionreverseBig5Table
()
big5.go:81