package utf8internal
Import Path
	golang.org/x/text/internal/utf8internal (on go.dev)
Dependency Relation
	imports 0 packages, and imported by one package
Involved Source Files
	
		Package utf8internal contains low-level utf8-related constants, tables, etc.
		that are used internally by the text package.
Package-Level Type Names (only one)
	
		AcceptRange gives the range of valid values for the second byte in a UTF-8
		sequence for any value for First that is not ASCII or FirstInvalid.
		
			
				// highest value for second byte.
			
				// lowest value for second byte.
Package-Level Variables (total 2)
	
		AcceptRanges is a slice of AcceptRange values. For a given byte sequence b
		
			AcceptRanges[First[b[0]]>>AcceptShift]
		
		will give the value of AcceptRange for the multi-byte UTF-8 sequence starting
		at b[0].
	
		First is information about the first byte in a UTF-8 sequence.
Package-Level Constants (total 6)
	
		AcceptShift is the right-shift count for the first byte info byte to get
		the index into the AcceptRanges table. See AcceptRanges.
	
		ASCII identifies a UTF-8 byte as ASCII.
	
		FirstInvalid indicates a byte is invalid as a first byte of a UTF-8
		sequence.
	
		The default lowest and highest continuation byte.
	
		The default lowest and highest continuation byte.
	
		SizeMask is a mask for the size bits. Use use x&SizeMask to get the size.
![]()  | 
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |