Lines Matching defs:context
19 type context struct { struct
20 dst, src []byte
21 atEOF bool
23 pDst int // pDst points past the last written rune in dst.
24 pSrc int // pSrc points to the start of the currently scanned rune.
27 nDst, nSrc int
28 err error
30 sz int // size of current rune
31 info info // case information of currently scanned rune
34 isMidWord bool // false if next cased letter needs to be title-cased.
37 func (c *context) Reset() {
44 func (c *context) ret() (nDst, nSrc int, err error) {
60 func (c *context) retSpan() (n int, err error) {
67 func (c *context) checkpoint() {
75 func (c *context) unreadRune() {
79 func (c *context) next() bool {
102 func (c *context) writeBytes(b []byte) bool {
116 func (c *context) writeString(s string) bool {
130 func (c *context) copy() bool {
137 func (c *context) copyXOR() bool {
161 func (c *context) hasPrefix(s string) bool {
176 func (c *context) caseType() info {
193 func lower(c *context) bool {
209 func isLower(c *context) bool {
227 func upper(c *context) bool {
253 func isUpper(c *context) bool {
276 func title(c *context) bool {
307 func isTitle(c *context) bool {
334 func foldFull(c *context) bool {
357 func isFoldFull(c *context) bool {