Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidRune (0.21 sec)

  1. src/archive/zip/writer.go

    		//
    		// Forbid 0x7e and 0x5c since EUC-KR and Shift-JIS replace those
    		// characters with localized currency and overline characters.
    		if r < 0x20 || r > 0x7d || r == 0x5c {
    			if !utf8.ValidRune(r) || (r == utf8.RuneError && size == 1) {
    				return false, false
    			}
    			require = true
    		}
    	}
    	return true, require
    }
    
    // prepare performs the bookkeeping operations required at the start of
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/bytes/bytes.go

    	case r == utf8.RuneError:
    		for i := 0; i < len(s); {
    			r1, n := utf8.DecodeRune(s[i:])
    			if r1 == utf8.RuneError {
    				return i
    			}
    			i += n
    		}
    		return -1
    	case !utf8.ValidRune(r):
    		return -1
    	default:
    		var b [utf8.UTFMax]byte
    		n := utf8.EncodeRune(b[:], r)
    		return Index(s, b[:n])
    	}
    }
    
    // IndexAny interprets s as a sequence of UTF-8-encoded Unicode code points.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  3. api/go1.1.txt

    pkg unicode/utf8, const MaxRune = 1114111
    pkg unicode/utf8, const RuneError = 65533
    pkg unicode/utf8, const RuneSelf = 128
    pkg unicode/utf8, const UTFMax = 4
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top