Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for rune1 (0.04 sec)

  1. src/regexp/syntax/prog_test.go

      2	rune1 "a" -> 3
      3	alt -> 2, 4
      4	cap 3 -> 5
      5	cap 4 -> 6
      6	rune1 "b" -> 7
      7	alt -> 6, 8
      8	cap 5 -> 9
      9	match
    `},
    	{"a+|b+", `  0	fail
      1	rune1 "a" -> 2
      2	alt -> 1, 6
      3	rune1 "b" -> 4
      4	alt -> 3, 6
      5*	alt -> 1, 3
      6	match
    `},
    	{"A[Aa]", `  0	fail
      1*	rune1 "A" -> 2
      2	rune "A"/i -> 3
      3	match
    `},
    	{"(?:(?:^).)", `  0	fail
      1*	empty 4 -> 2
      2	anynotnl -> 3
      3	match
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 14 04:39:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/regexp/syntax/prog.go

    	case InstNop:
    		bw(b, "nop -> ", u32(i.Out))
    	case InstRune:
    		if i.Rune == nil {
    			// shouldn't happen
    			bw(b, "rune <nil>")
    		}
    		bw(b, "rune ", strconv.QuoteToASCII(string(i.Rune)))
    		if Flags(i.Arg)&FoldCase != 0 {
    			bw(b, "/i")
    		}
    		bw(b, " -> ", u32(i.Out))
    	case InstRune1:
    		bw(b, "rune1 ", strconv.QuoteToASCII(string(i.Rune)), " -> ", u32(i.Out))
    	case InstRuneAny:
    		bw(b, "any -> ", u32(i.Out))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. test/rune.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test rune constants, expressions and types.
    // Compiles but does not run.
    
    package rune
    
    var (
    	r0 = 'a'
    	r1 = 'a'+1
    	r2 = 1+'a'
    	r3 = 'a'*2
    	r4 = 'a'/2
    	r5 = 'a'<<1
    	r6 = 'b'<<2
    	r7 int32
    
    	r = []rune{r0, r1, r2, r3, r4, r5, r6, r7}
    )
    
    var (
    	f0 = 1.2
    	f1 = 1.2/'a'
    
    	f = []float64{f0, f1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 603 bytes
    - Viewed (0)
  4. test/fixedbugs/issue23814.go

    	_ = myString([]myByte{'\xf0', '\x9f', '\x8c', '\x8d'}) // "🌍
    
    	// 3
    	_ = string([]rune{0x767d, 0x9d6c, 0x7fd4}) // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    	_ = string([]rune{})                       // ""
    	_ = string([]rune(nil))                    // ""
    
    	type runes []rune
    	_ = string(runes{0x767d, 0x9d6c, 0x7fd4}) // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    
    	type myRune rune
    	_ = string([]myRune{0x266b, 0x266c}) // "\u266b\u266c" == "♫♬"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 15 00:06:24 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    //	2..0  case mode
    //
    // For the non-exceptional cases, a rune must be either uncased, lowercase or
    // uppercase. If the rune is cased, the XOR pattern maps either a lowercase
    // rune to uppercase or an uppercase rune to lowercase (applied to the 10
    // least-significant bits of the rune).
    //
    // See the definitions below for a more detailed description of the various
    // bits.
    type info uint16
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. src/unicode/example_test.go

    	// 	is graphic rune
    	// 	is number rune
    	// 	is printable rune
    	// For 'Ὂ':
    	// 	is graphic rune
    	// 	is letter rune
    	// 	is printable rune
    	// 	is upper case rune
    	// For 'g':
    	// 	is graphic rune
    	// 	is letter rune
    	// 	is lower case rune
    	// 	is printable rune
    	// For '̀':
    	// 	is graphic rune
    	// 	is mark rune
    	// 	is printable rune
    	// For '9':
    	// 	is digit rune
    	// 	is graphic rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 00:18:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  7. src/unicode/utf8/example_test.go

    	buf := []byte("Hello, 世界")
    	fmt.Println("bytes =", len(buf))
    	fmt.Println("runes =", utf8.RuneCount(buf))
    	// Output:
    	// bytes = 13
    	// runes = 9
    }
    
    func ExampleRuneCountInString() {
    	str := "Hello, 世界"
    	fmt.Println("bytes =", len(str))
    	fmt.Println("runes =", utf8.RuneCountInString(str))
    	// Output:
    	// bytes = 13
    	// runes = 9
    }
    
    func ExampleRuneLen() {
    	fmt.Println(utf8.RuneLen('a'))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 21:29:18 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  8. src/regexp/onepass_test.go

    		[]rune{69, 74},
    		[]rune{65, 69},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// overlap from above
    		[]rune{69, 74},
    		[]rune{71, 74},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// overlap from below
    		[]rune{69, 74},
    		[]rune{65, 71},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// out of order []rune
    		[]rune{69, 74, 60, 65},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. src/encoding/json/fold.go

    		}
    		// Handle multi-byte Unicode.
    		r, n := utf8.DecodeRune(in[i:])
    		out = utf8.AppendRune(out, foldRune(r))
    		i += n
    	}
    	return out
    }
    
    // foldRune is returns the smallest rune for all runes in the same fold set.
    func foldRune(r rune) rune {
    	for {
    		r2 := unicode.SimpleFold(r)
    		if r2 <= r {
    			return r2
    		}
    		r = r2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/strconv/makeisprint.go

    		fmt.Fprintf(&buf, "\t%#04x,\n", r-0x10000)
    	}
    	fmt.Fprintf(&buf, "}\n\n")
    
    	// The list of graphic but not "printable" runes is short. Just make one easy table.
    	fmt.Fprintf(&buf, "// isGraphic lists the graphic runes not matched by IsPrint.\n")
    	fmt.Fprintf(&buf, "var isGraphic = []uint16{\n")
    	for r := rune(0); r <= unicode.MaxRune; r++ {
    		if unicode.IsPrint(r) != unicode.IsGraphic(r) {
    			// Sanity check.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top