Skip to content

Commit

Permalink
Set Deplicated: to filter type and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Feb 7, 2023
1 parent b46d042 commit 1a72aa4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ import (

var _BOM = []byte{0xEF, 0xBB, 0xBF}

// ForceGuessAlways should be called when you should guess
// Deprecated: ForceGuessAlways should be called when you should guess
// the encoding for each line repeadedly
func (f *Filter) ForceGuessAlways() {
f.forceGuessAlways()
}

// NewFilter is the constructor for Filter
// Deprecated: NewFilter is the constructor for Filter
func NewFilter(r io.Reader, codepage uintptr) *Filter {
return newFilter(r, codepage)
}

// Scan is like bufio.Scanner.Scan for Filter
// Deprecated: Scan is like bufio.Scanner.Scan for Filter
func (f *Filter) Scan() bool {
return f.scan()
}

// Text is like "bufio".Scanner.Text for Filter
// Deprecated: Text is like "bufio".Scanner.Text for Filter
func (f *Filter) Text() string {
return f.text
}

// Err is like "bufio".Scanner.Err for Filter
// Deprecated: Err is like "bufio".Scanner.Err for Filter
func (f *Filter) Err() error {
return f.err
}
2 changes: 1 addition & 1 deletion filter_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
)

// Filter is the class like bufio.Scanner but detects the encoding-type
// Deprecated: Filter is the class like bufio.Scanner but detects the encoding-type
// and converts to utf8 on Windows. On other OSes, it works like bufio.Scanner
type Filter struct {
sc *bufio.Scanner
Expand Down
2 changes: 1 addition & 1 deletion filter_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
_Utf8Fixed
)

// Filter is the class like bufio.Scanner but detects the encoding-type
// Deprecated: Filter is the class like bufio.Scanner but detects the encoding-type
// and converts to utf8 on Windows. On other OSes, it works like bufio.Scanner
type Filter struct {
sc *bufio.Scanner
Expand Down

0 comments on commit 1a72aa4

Please sign in to comment.