initial commits
parent
6c94144485
commit
7d9c047db5
|
@ -0,0 +1,13 @@
|
|||
package sp
|
||||
|
||||
// ByteIsSpacingTolerant is a more tolerant version of ByteIsSpacing.
|
||||
// Where ByteIsSpacing only returns whether the byte is a 'SP' (spacing) character, as defined by IETF RFC-2616:
|
||||
//
|
||||
// SP = <US-ASCII SP, space (32)>
|
||||
//
|
||||
// ByteIsSpacingTolerant also allows:
|
||||
//
|
||||
// HT = <US-ASCII HT, horizontal-tab (9)>
|
||||
func ByteIsSpacingTolerant(value byte) bool {
|
||||
return ' ' == value || '\t' == value
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,13 @@
|
|||
package sp
|
||||
|
||||
// RuneIsSpacingTolerant is a more tolerant version of RuneIsSpacing.
|
||||
// Where RuneIsSpacing only returns whether the rune is a 'SP' (spacing) character, as defined by IETF RFC-2616:
|
||||
//
|
||||
// SP = <US-ASCII SP, space (32)>
|
||||
//
|
||||
// RuneIsSpacingTolerant also allows:
|
||||
//
|
||||
// HT = <US-ASCII HT, horizontal-tab (9)>
|
||||
func RuneIsSpacingTolerant(value rune) bool {
|
||||
return ' ' == value || '\t' == value
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue