Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for subexpressions (0.22 sec)

  1. doc/go1.17_spec.html

    )
    
    func f() int {
    	d++
    	return d
    }
    </pre>
    
    <p>
    the initialization order is <code>d</code>, <code>b</code>, <code>c</code>, <code>a</code>.
    Note that the order of subexpressions in initialization expressions is irrelevant:
    <code>a = c + b</code> and <code>a = b + c</code> result in the same initialization
    order in this example.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    )
    
    func f() int {
    	d++
    	return d
    }
    </pre>
    
    <p>
    the initialization order is <code>d</code>, <code>b</code>, <code>c</code>, <code>a</code>.
    Note that the order of subexpressions in initialization expressions is irrelevant:
    <code>a = c + b</code> and <code>a = b + c</code> result in the same initialization
    order in this example.
    </p>
    
    <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)
  3. src/regexp/all_test.go

    	{"(?P<x>hi)|(?P<x>bye)", "hello $$x", "hi", "hello $x"},
    	{"a+", "${oops", "aaa", "${oops"},
    	{"a+", "$$", "aaa", "$"},
    	{"a+", "$", "aaa", "$"},
    
    	// Substitution when subexpression isn't found
    	{"(x)?", "$1", "123", "123"},
    	{"abc", "$1", "123", "123"},
    
    	// Substitutions involving a (x){0}
    	{"(a)(b){0}(c)", ".$1|$3.", "xacxacx", "x.a|c.x.a|c.x"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vcs/vcs.go

    		if m == nil {
    			if srv.pathPrefix != "" {
    				return nil, importErrorf(importPath, "invalid %s import path %q", srv.pathPrefix, importPath)
    			}
    			continue
    		}
    
    		// Build map of named subexpression matches for expand.
    		match := map[string]string{
    			"prefix": srv.pathPrefix + "/",
    			"import": importPath,
    		}
    		for i, name := range srv.regexp.SubexpNames() {
    			if name != "" && match[name] == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top