Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LINE_TERMINATORS = []LineTerminatorType{LF, CR, CRLF, LFCR, RS}
Functions ¶
func DecodeNonUTF8Bytes ¶ added in v0.0.76
func DecodeNonUTF8String ¶ added in v0.0.70
func ReplaceLineTerminator ¶ added in v0.0.40
ReplaceLineTerminator is delegated to find the line terminator of the given byte array and replace them without the one provided in input
Types ¶
type LineTerminatorType ¶
type LineTerminatorType string
const ( LF LineTerminatorType = "\n" // 0a -- 10 CR LineTerminatorType = "\r" // 0d -- 13 CRLF LineTerminatorType = "\r\n" // 0d,0a -- 13,10 LFCR LineTerminatorType = "\n\r" // 0a,0d -- 10,13 RS LineTerminatorType = "\036" // 1e -- 30 ND LineTerminatorType = `unable to detect line terminator` BUFFER_SIZE = 1024 )
func DetectLineTerminator ¶
func DetectLineTerminator(reader io.Reader, buffer int) (LineTerminatorType, error)
Click to show internal directories.
Click to hide internal directories.