Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 0x2d (0.04 sec)

  1. src/bufio/bufio_test.go

    	r13 := new(rot13Reader)
    	r13.r = r
    	return r13
    }
    
    func (r13 *rot13Reader) Read(p []byte) (int, error) {
    	n, err := r13.r.Read(p)
    	for i := 0; i < n; i++ {
    		c := p[i] | 0x20 // lowercase byte
    		if 'a' <= c && c <= 'm' {
    			p[i] += 13
    		} else if 'n' <= c && c <= 'z' {
    			p[i] -= 13
    		}
    	}
    	return n, err
    }
    
    // Call ReadByte to accumulate the text of a file
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top