initial commits

master
Charles Iliya Krempeaux 2023-12-06 07:58:29 -08:00
parent 6c94144485
commit 7d9c047db5
4 changed files with 2210 additions and 0 deletions

View File

@ -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

View File

@ -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