Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 420 for Parses (0.13 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/BasicParsingTest.kt

    import org.gradle.internal.declarativedsl.parsing.ParseTestUtil
    import org.gradle.internal.declarativedsl.parsing.assert
    import org.junit.jupiter.api.Test
    
    
    class BasicParsingTest {
    
        @Test
        fun `parses literals`() {
            val results = parse(
                """
                a = 1
                b = "test"
                c = ${'"'}""test${'"'}""
                e = true
                d = false
                """.trimIndent()
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. src/net/mail/message.go

    }
    
    // An AddressParser is an RFC 5322 address parser.
    type AddressParser struct {
    	// WordDecoder optionally specifies a decoder for RFC 2047 encoded-words.
    	WordDecoder *mime.WordDecoder
    }
    
    // Parse parses a single RFC 5322 address of the
    // form "Gogh Fir <******@****.***>" or "******@****.***".
    func (p *AddressParser) Parse(address string) (*Address, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

                map.put(parser.getName(), parse(parser, toType));
            }
            return map;
        }
    
        /**
         * Parses a sequence of XML elements and converts them to the appropriate {@link Collection} type.
         *
         * @param parser The XML parser
         * @return Converted Collection instance
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 18 00:24:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/catalog/parser/TomlCatalogFileParserTest.groovy

            parse('one-version')
    
            then:
            hasVersion('guava', '17')
        }
    
        def "parses a file with a single plugin and nothing else"() {
            when:
            parse('one-plugin')
    
            then:
            hasPlugin('greeter', 'org.example.greeter', '1.13')
        }
    
        def "parses dependencies with various notations"() {
            when:
            parse 'dependency-notations'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 05:41:21 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    		p.start(op)
    		if name, abi, ok := p.funcAddress(); ok {
    			fmt.Fprintf(w, "ref %s %s\n", name, abi)
    		}
    	}
    }
    
    func (p *Parser) start(operand []lex.Token) {
    	p.input = operand
    	p.inputPos = 0
    }
    
    // address parses the operand into a link address structure.
    func (p *Parser) address(operand []lex.Token) obj.Addr {
    	p.start(operand)
    	addr := obj.Addr{}
    	p.operand(&addr)
    	return addr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. src/net/http/cookie.go

    		case "partitioned":
    			c.Partitioned = true
    			continue
    		}
    		c.Unparsed = append(c.Unparsed, parts[i])
    	}
    	return c, nil
    }
    
    // readSetCookies parses all "Set-Cookie" values from
    // the header h and returns the successfully parsed Cookies.
    func readSetCookies(h Header) []*Cookie {
    	cookieCount := len(h["Set-Cookie"])
    	if cookieCount == 0 {
    		return []*Cookie{}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. src/html/template/template.go

    // such as
    //
    //	var t = template.Must(template.New("name").Parse("html"))
    func Must(t *Template, err error) *Template {
    	if err != nil {
    		panic(err)
    	}
    	return t
    }
    
    // ParseFiles creates a new [Template] and parses the template definitions from
    // the named files. The returned template's name will have the (base) name and
    // (parsed) contents of the first file. There must be at least one file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  8. src/text/template/parse/parse.go

    	case *WithNode:
    	default:
    		panic("unknown node: " + n.String())
    	}
    	return false
    }
    
    // parse is the top-level parser for a template, essentially the same
    // as itemList except it also parses {{define}} actions.
    // It runs to EOF.
    func (t *Tree) parse() {
    	t.Root = t.newList(t.peek().pos)
    	for t.peek().typ != itemEOF {
    		if t.peek().typ == itemLeftDelim {
    			delim := t.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. internal/bucket/object/lock/lock.go

    		}
    	}
    
    	return r
    }
    
    // Maximum 4KiB size per object lock config.
    const maxObjectLockConfigSize = 1 << 12
    
    // ParseObjectLockConfig parses ObjectLockConfig from xml
    func ParseObjectLockConfig(reader io.Reader) (*Config, error) {
    	config := Config{}
    	if err := xml.NewDecoder(io.LimitReader(reader, maxObjectLockConfigSize)).Decode(&config); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/net/url/url.go

    func (u *URL) IsAbs() bool {
    	return u.Scheme != ""
    }
    
    // Parse parses a [URL] in the context of the receiver. The provided URL
    // may be relative or absolute. Parse returns nil, err on parse
    // failure, otherwise its return value is the same as [URL.ResolveReference].
    func (u *URL) Parse(ref string) (*URL, error) {
    	refURL, err := Parse(ref)
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top