Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,835 for runes (0.04 sec)

  1. src/go/types/conversions.go

    	if isComplex(Vu) && isComplex(Tu) {
    		return true
    	}
    
    	// "V is an integer or a slice of bytes or runes and T is a string type"
    	if (isInteger(Vu) || isBytesOrRunes(Vu)) && isString(Tu) {
    		return true
    	}
    
    	// "V is a string and T is a slice of bytes or runes"
    	if isString(Vu) && isBytesOrRunes(Tu) {
    		return true
    	}
    
    	// package unsafe:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/universe.go

    	}
    
    	// We create separate byte and rune types for better error messages
    	// rather than just creating type alias *Sym's for the uint8 and
    	// int32  Hence, (bytetype|runtype).Sym.isAlias() is false.
    	// TODO(gri) Should we get rid of this special case (at the cost
    	// of less informative error messages involving bytes and runes)?
    	// NOTE(rsc): No, the error message quality is important.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/runtime/utf8.go

    	hicb = 0xBF // 1011 1111
    )
    
    // countrunes returns the number of runes in s.
    func countrunes(s string) int {
    	n := 0
    	for range s {
    		n++
    	}
    	return n
    }
    
    // decoderune returns the non-ASCII rune at the start of
    // s[k:] and the index after the rune in s.
    //
    // decoderune assumes that caller has checked that
    // the to be decoded rune is a non-ASCII rune.
    //
    // If the string appears to be incomplete or decoding problems
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 02:46:02 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/unicode/norm/readwriter.go

    		w.rb.src = inputBytes(data[:m])
    		w.rb.nsrc = m
    		w.buf = doAppend(&w.rb, w.buf, 0)
    		data = data[m:]
    		n += m
    
    		// Write out complete prefix, save remainder.
    		// Note that lastBoundary looks back at most 31 runes.
    		i := lastBoundary(&w.rb.f, w.buf)
    		if i == -1 {
    			i = 0
    		}
    		if i > 0 {
    			if _, err = w.w.Write(w.buf[:i]); err != nil {
    				break
    			}
    			bn := copy(w.buf, w.buf[i:])
    			w.buf = w.buf[:bn]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/unicode/utf16/utf16.go

    func Decode(s []uint16) []rune {
    	// Preallocate capacity to hold up to 64 runes.
    	// Decode inlines, so the allocation can live on the stack.
    	buf := make([]rune, 0, 64)
    	return decode(s, buf)
    }
    
    // decode appends to buf the Unicode code point sequence represented
    // by the UTF-16 encoding s and return the extended buffer.
    func decode(s []uint16, buf []rune) []rune {
    	for i := 0; i < len(s); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    // as defined in Section 5.4 of RFC 5891. This includes testing for correct use
    // of hyphens ('-'), normalization, validity of runes, and the context rules.
    // In particular, ValidateLabels also sets the CheckHyphens and CheckJoiners flags
    // in UTS #46.
    func ValidateLabels(enable bool) Option {
    	return func(o *options) {
    		// Don't override existing mappings, but set one that at least checks
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/text/unicode/norm/readwriter.go

    		w.rb.src = inputBytes(data[:m])
    		w.rb.nsrc = m
    		w.buf = doAppend(&w.rb, w.buf, 0)
    		data = data[m:]
    		n += m
    
    		// Write out complete prefix, save remainder.
    		// Note that lastBoundary looks back at most 31 runes.
    		i := lastBoundary(&w.rb.f, w.buf)
    		if i == -1 {
    			i = 0
    		}
    		if i > 0 {
    			if _, err = w.w.Write(w.buf[:i]); err != nil {
    				break
    			}
    			bn := copy(w.buf, w.buf[i:])
    			w.buf = w.buf[:bn]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  8. src/net/http/cookiejar/punycode.go

    // the result.
    //
    // The "while h < length(input)" line in the specification becomes "for
    // remaining != 0" in the Go code, because len(s) in Go is in bytes, not runes.
    func encode(prefix, s string) (string, error) {
    	output := make([]byte, len(prefix), len(prefix)+1+2*len(s))
    	copy(output, prefix)
    	delta, n, bias := int32(0), initialN, initialBias
    	b, remaining := int32(0), int32(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 10 23:42:56 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/text/unicode/norm/normalize.go

    			ss = 0
    			continue
    		}
    		info := f.info(src, i)
    		if info.size == 0 {
    			if atEOF {
    				// include incomplete runes
    				return n, true
    			}
    			return lastSegStart, true
    		}
    		// This block needs to be before the next, because it is possible to
    		// have an overflow for runes that are starters (e.g. with U+FF9E).
    		switch ss.next(info) {
    		case ssStarter:
    			lastSegStart = i
    		case ssOverflow:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:26:23 UTC 2022
    - 14.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/warning_test.go

    		t.Errorf("expected\n%#v\ngot\n%#v", e, a)
    	}
    	// add an item that exceeds the length and triggers truncation, reducing existing items to 15 runes
    	warningRecorder.AddWarning("", "e")          // triggering item, 16 total
    	warningRecorder.AddWarning("", "ffffffffff") // long item to get truncated, 21 total
    	warningRecorder.AddWarning("", "ffffffffff") // duplicate item
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 01 16:14:06 UTC 2020
    - 4K bytes
    - Viewed (0)
Back to top