Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for encoderune (0.23 sec)

  1. doc/go_spec.html

    integer-to-string conversions as potential errors.
    Library functions such as
    <a href="/pkg/unicode/utf8#AppendRune"><code>utf8.AppendRune</code></a> or
    <a href="/pkg/unicode/utf8#EncodeRune"><code>utf8.EncodeRune</code></a>
    should be used instead.
    </li>
    </ol>
    
    <h4 id="Conversions_from_slice_to_array_or_array_pointer">Conversions from slice to array or array pointer</h4>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  2. src/cmd/vendor/golang.org/x/text/cases/map.go

    		r, sz := utf8.DecodeRune(b)
    		if r <= 0xFF { // See A.6.1
    			return true
    		}
    		c.pDst = oldPDst
    		// Insert the first rune and ignore the modifiers. See A.6.2.
    		c.writeBytes(b[:sz])
    		i = len(b[sz:]) / 2 // Greek modifiers are always of length 2.
    	}
    
    	for ; i < maxIgnorable && c.next(); i++ {
    		switch r, _ := utf8.DecodeRune(c.src[c.pSrc:]); r {
    		// Above and Iota Subscript
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/range.go

    		// hv1++
    		nif.Body = []ir.Node{ir.NewAssignStmt(base.Pos, hv1, ir.NewBinaryExpr(base.Pos, ir.OADD, hv1, ir.NewInt(base.Pos, 1)))}
    
    		// } else {
    		// hv2, hv1 = decoderune(ha, hv1)
    		fn := typecheck.LookupRuntime("decoderune")
    		call := mkcall1(fn, fn.Type().ResultsTuple(), &nif.Else, ha, hv1)
    		a := ir.NewAssignListStmt(base.Pos, ir.OAS2, []ir.Node{hv2, hv1}, []ir.Node{call})
    		nif.Else.Append(a)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.slicebytetostring", 1},
    	{"runtime.slicebytetostringtmp", 1},
    	{"runtime.slicerunetostring", 1},
    	{"runtime.stringtoslicebyte", 1},
    	{"runtime.stringtoslicerune", 1},
    	{"runtime.slicecopy", 1},
    	{"runtime.decoderune", 1},
    	{"runtime.countrunes", 1},
    	{"runtime.convT", 1},
    	{"runtime.convTnoptr", 1},
    	{"runtime.convT16", 1},
    	{"runtime.convT32", 1},
    	{"runtime.convT64", 1},
    	{"runtime.convTstring", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/html/template/js.go

    	// supports ld+json content-type.
    	if len(b) == 0 {
    		// In, `x=y/{{.}}*z` a json.Marshaler that produces "" should
    		// not cause the output `x=y/*z`.
    		return " null "
    	}
    	first, _ := utf8.DecodeRune(b)
    	last, _ := utf8.DecodeLastRune(b)
    	var buf strings.Builder
    	// Prevent IdentifierNames and NumericLiterals from running into
    	// keywords: in, instanceof, typeof, void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/net/url/url.go

    		return c - 'a' + 10
    	case 'A' <= c && c <= 'F':
    		return c - 'A' + 10
    	}
    	return 0
    }
    
    type encoding int
    
    const (
    	encodePath encoding = 1 + iota
    	encodePathSegment
    	encodeHost
    	encodeZone
    	encodeUserPassword
    	encodeQueryComponent
    	encodeFragment
    )
    
    type EscapeError string
    
    func (e EscapeError) Error() string {
    	return "invalid URL escape " + strconv.Quote(string(e))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/source.go

    			s.error("I/O error: " + s.ioerr.Error())
    			s.ioerr = nil
    		}
    		s.ch = -1
    		s.chw = 0
    		return
    	}
    
    	s.ch, s.chw = utf8.DecodeRune(s.buf[s.r:s.e])
    	s.r += s.chw
    
    	if s.ch == utf8.RuneError && s.chw == 1 {
    		s.error("invalid UTF-8 encoding")
    		goto redo
    	}
    
    	// BOM's are only allowed as the first character in a file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 19:25:46 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  8. src/regexp/regexp.go

    // about this property, see
    //
    //	https://swtch.com/~rsc/regexp/regexp1.html
    //
    // or any book about automata theory.
    //
    // All characters are UTF-8-encoded code points.
    // Following [utf8.DecodeRune], each byte of an invalid UTF-8 sequence
    // is treated as if it encoded utf8.RuneError (U+FFFD).
    //
    // There are 16 methods of [Regexp] that match a regular expression and identify
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  9. src/encoding/xml/xml.go

    }
    
    func isName(s []byte) bool {
    	if len(s) == 0 {
    		return false
    	}
    	c, n := utf8.DecodeRune(s)
    	if c == utf8.RuneError && n == 1 {
    		return false
    	}
    	if !unicode.Is(first, c) {
    		return false
    	}
    	for n < len(s) {
    		s = s[n:]
    		c, n = utf8.DecodeRune(s)
    		if c == utf8.RuneError && n == 1 {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    	return len(in.remaining) == 0
    }
    
    // peekRune returns the next rune in the input without consuming it.
    func (in *input) peekRune() int {
    	if len(in.remaining) == 0 {
    		return 0
    	}
    	r, _ := utf8.DecodeRune(in.remaining)
    	return int(r)
    }
    
    // peekPrefix reports whether the remaining input begins with the given prefix.
    func (in *input) peekPrefix(prefix string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top