Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 139 for myrunes (0.22 sec)

  1. src/bytes/bytes_test.go

    		}
    		if !Equal(actual, tc.out) {
    			t.Errorf("%s(%q) = %q; want %q", funcName, tc.in, actual, tc.out)
    		}
    	}
    }
    
    func tenRunes(r rune) string {
    	runes := make([]rune, 10)
    	for i := range runes {
    		runes[i] = r
    	}
    	return string(runes)
    }
    
    // User-defined self-inverse mapping function
    func rot13(r rune) rune {
    	const step = 13
    	if r >= 'a' && r <= 'z' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    	{"%+q", "abc\xffdef", `"abc\xffdef"`},
    	{"%#q", "abc\xffdef", `"abc\xffdef"`},
    	{"%#+q", "abc\xffdef", `"abc\xffdef"`},
    	// Runes that are not printable.
    	{"%q", "\U0010ffff", `"\U0010ffff"`},
    	{"%+q", "\U0010ffff", `"\U0010ffff"`},
    	{"%#q", "\U0010ffff", "`􏿿`"},
    	{"%#+q", "\U0010ffff", "`􏿿`"},
    	// Runes that are not valid.
    	{"%q", string(rune(0x110000)), `"�"`},
    	{"%+q", string(rune(0x110000)), `"\ufffd"`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    package norm
    
    import (
    	"fmt"
    	"unicode/utf8"
    )
    
    // MaxSegmentSize is the maximum size of a byte buffer needed to consider any
    // sequence of starter and non-starter runes for the purpose of normalization.
    const MaxSegmentSize = maxByteBufferSize
    
    // An Iter iterates over a string or byte slice, while normalizing it
    // to a given Form.
    type Iter struct {
    	rb     reorderBuffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/cmd/internal/archive/archive_test.go

    	}
    	for _, str := range tests {
    		got := exactly16Bytes(str)
    		if len(got) != 16 {
    			t.Errorf("exactly16Bytes(%q) is %q, length %d", str, got, len(got))
    		}
    		// Make sure it is full runes.
    		for _, c := range got {
    			if c == utf8.RuneError {
    				t.Errorf("exactly16Bytes(%q) is %q, has partial rune", str, got)
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go

    		// Strictly speaking, control chars include the range [0x7f, 0x9f], not just
    		// [0x00, 0x1f], but in practice, we ignore the multi-byte control characters
    		// as it is simpler to inspect the tag's bytes than the tag's runes.
    		i = 0
    		for i < len(tag) && tag[i] > ' ' && tag[i] != ':' && tag[i] != '"' && tag[i] != 0x7f {
    			i++
    		}
    		if i == 0 {
    			return errTagKeySyntax
    		}
    		if i+1 >= len(tag) || tag[i] != ':' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  6. src/strings/builder_test.go

    		}()
    		if got := <-didPanic; got != tt.wantPanic {
    			t.Errorf("%s: panicked = %v; want %v", tt.name, got, tt.wantPanic)
    		}
    	}
    }
    
    func TestBuilderWriteInvalidRune(t *testing.T) {
    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var b Builder
    		b.WriteRune(r)
    		check(t, &b, "\uFFFD")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. src/strconv/isprint.go

    	0xee60,
    	0xee63,
    	0xee6b,
    	0xee73,
    	0xee78,
    	0xee7d,
    	0xee7f,
    	0xee8a,
    	0xeea4,
    	0xeeaa,
    	0xf0c0,
    	0xf0d0,
    	0xfabe,
    	0xfb93,
    }
    
    // isGraphic lists the graphic runes not matched by IsPrint.
    var isGraphic = []uint16{
    	0x00a0,
    	0x1680,
    	0x2000,
    	0x2001,
    	0x2002,
    	0x2003,
    	0x2004,
    	0x2005,
    	0x2006,
    	0x2007,
    	0x2008,
    	0x2009,
    	0x200a,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 04:29:53 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go

    		if s.MaxLength() != nil {
    			// multiply the user-provided max length by 4 in the case of an otherwise-untyped string
    			// we do this because the OpenAPIv3 spec indicates that maxLength is specified in runes/code points,
    			// but we need to reason about length for things like request size, so we use bytes in this code (and an individual
    			// unicode code point can be up to 4 bytes long)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 18:00:45 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. src/strconv/quote_test.go

    	{"\u263a", `"☺"`, `"\u263a"`, `"☺"`},
    	{"\U0010ffff", `"\U0010ffff"`, `"\U0010ffff"`, `"\U0010ffff"`},
    	{"\x04", `"\x04"`, `"\x04"`, `"\x04"`},
    	// Some non-printable but graphic runes. Final column is double-quoted.
    	{"!\u00a0!\u2000!\u3000!", `"!\u00a0!\u2000!\u3000!"`, `"!\u00a0!\u2000!\u3000!"`, "\"!\u00a0!\u2000!\u3000!\""},
    	{"\x7f", `"\x7f"`, `"\x7f"`, `"\x7f"`},
    }
    
    func TestQuote(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  10. src/html/template/error.go

    	// Example:
    	//   <a href = /search?q=foo>
    	//   <href=foo>
    	//   <form na<e=...>
    	//   <option selected<
    	// Discussion:
    	//   This is often due to a typo in an HTML element, but some runes
    	//   are banned in tag names, attribute names, and unquoted attribute
    	//   values because they can tickle parser ambiguities.
    	//   Quoting all attributes is the best policy.
    	ErrBadHTML
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top