Documentation ¶
Overview ¶
Package aozoraconv provides Aozora Bunko format encodings (JIS X 0208/Shift_JIS).
Index ¶
- func Conv(w io.Writer, r io.Reader, opts ...OptionFunc) error
- func ConvRev(w io.Writer, r io.Reader, opts ...OptionFunc) error
- func Decode(output io.Writer, input io.Reader, opts ...OptionFunc) (err error)
- func Encode(output io.Writer, input io.Reader, opts ...OptionFunc) (err error)
- func Is0208(men, ku, ten int) bool
- func Jis2Uni(men, ku, ten int) (str string, err error)
- func Kuten2Sjis(ku, ten int) []byte
- func NewAozoraTextScanner(r io.Reader) *bufio.Scanner
- func NewDefaultTextScanner(r io.Reader) *bufio.Scanner
- func SplitCRLF(data []byte, atEOF bool) (int, []byte, error)
- type Escaper
- type JisEntry
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kuten2Sjis ¶
Kuten2Sjis returns SJIS byte strings (2 byte) from ku-ten code
func NewAozoraTextScanner ¶
NewTextScanner aozora text line-feed 'CRLF' scanner
Types ¶
type JisEntry ¶
type JisEntry struct {
// contains filtered or unexported fields
}
JisEntry is jis character with men, ku, ten
type OptionFunc ¶
type OptionFunc func(*option)
func WithoutAnnotation ¶
func WithoutAnnotation() OptionFunc
func WithoutHeader ¶
func WithoutHeader() OptionFunc
func WithoutRepeatTwo ¶
func WithoutRepeatTwo() OptionFunc
func WithoutRuby ¶
func WithoutRuby() OptionFunc
Click to show internal directories.
Click to hide internal directories.