Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for Colon (0.46 sec)

  1. src/cmd/compile/internal/syntax/parser_test.go

    		{"//line\n", valid, filename, 2, 1},        // missing colon
    		{"//line foo\n", valid, filename, 2, 1},    // missing colon
    		{"  //line foo:\n", valid, filename, 2, 1}, // not a line start
    		{"//  line foo:\n", valid, filename, 2, 1}, // space between // and line
    
    		// invalid //line directives with one colon
    		{"//line :\n", "invalid line number: ", filename, 1, 9},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/go/ast/ast.go

    		return true
    	}
    
    	// "//[a-z0-9]+:[a-z0-9]"
    	// (The // has been removed.)
    	colon := strings.Index(c, ":")
    	if colon <= 0 || colon+1 >= len(c) {
    		return false
    	}
    	for i := 0; i <= colon+1; i++ {
    		if i == colon {
    			continue
    		}
    		b := c[i]
    		if !('a' <= b && b <= 'z' || '0' <= b && b <= '9') {
    			return false
    		}
    	}
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/HostAndPort.java

          portString = hostAndPort[1];
        } else {
          int colonPos = hostPortString.indexOf(':');
          if (colonPos >= 0 && hostPortString.indexOf(':', colonPos + 1) == -1) {
            // Exactly 1 colon. Split into host:port.
            host = hostPortString.substring(0, colonPos);
            portString = hostPortString.substring(colonPos + 1);
          } else {
            // 0 or 2+ colons. Bare hostname or IPv6 literal.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Aug 22 20:55:57 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    		}
    		if len(items) > 0 {
    			operands = append(operands, items)
    			if colon >= 0 && len(operands) == colon+2 {
    				// AX:DX becomes DX, AX.
    				operands[colon], operands[colon+1] = operands[colon+1], operands[colon]
    				colon = -1
    			}
    		} else if len(operands) > 0 || tok == ',' || colon >= 0 {
    			// Had a separator with nothing after.
    			p.errorf("missing operand")
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  5. src/net/url/url.go

    func splitHostPort(hostPort string) (host, port string) {
    	host = hostPort
    
    	colon := strings.LastIndexByte(host, ':')
    	if colon != -1 && validOptionalPort(host[colon:]) {
    		host, port = host[:colon], host[colon+1:]
    	}
    
    	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
    		host = host[1 : len(host)-1]
    	}
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  6. src/net/textproto/reader.go

    	}
    
    	for {
    		kv, err := r.readContinuedLineSlice(maxMemory, mustHaveFieldNameColon)
    		if len(kv) == 0 {
    			return m, err
    		}
    
    		// Key ends at first colon.
    		k, v, ok := bytes.Cut(kv, colon)
    		if !ok {
    			return m, ProtocolError("malformed MIME header line: " + string(kv))
    		}
    		key, ok := canonicalMIMEHeaderKey(k)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/HostAndPort.java

          portString = hostAndPort[1];
        } else {
          int colonPos = hostPortString.indexOf(':');
          if (colonPos >= 0 && hostPortString.indexOf(':', colonPos + 1) == -1) {
            // Exactly 1 colon. Split into host:port.
            host = hostPortString.substring(0, colonPos);
            portString = hostPortString.substring(colonPos + 1);
          } else {
            // 0 or 2+ colons. Bare hostname or IPv6 literal.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Aug 22 20:55:57 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    	case *ast.InterfaceType:
    		children = append(children,
    			tok(n.Interface, len("interface")))
    
    	case *ast.KeyValueExpr:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.LabeledStmt:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.MapType:
    		children = append(children,
    			tok(n.Map, len("map")))
    
    	case *ast.ParenExpr:
    		children = append(children,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  9. src/net/textproto/reader_test.go

    func TestReadMIMEHeaderMalformed(t *testing.T) {
    	inputs := []string{
    		"No colon first line\r\nFoo: foo\r\n\r\n",
    		" No colon first line with leading space\r\nFoo: foo\r\n\r\n",
    		"\tNo colon first line with leading tab\r\nFoo: foo\r\n\r\n",
    		" First: line with leading space\r\nFoo: foo\r\n\r\n",
    		"\tFirst: line with leading tab\r\nFoo: foo\r\n\r\n",
    		"Foo: foo\r\nNo colon second line\r\n\r\n",
    		"Foo-\n\tBar: foo\r\n\r\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/TreeFormatter.java

        private enum State {
            CollectValue, TraverseChildren, Done
        }
    
        private enum Separator {
            NewLine(true, TextUtil.getPlatformLineSeparator()),
            Empty(false, " "),
            Colon(false, ": "),
            ColonNewLine(true, ":" + TextUtil.getPlatformLineSeparator());
    
            Separator(boolean newLine, String text) {
                this.newLine = newLine;
                this.text = text;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top