Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for backslashes (0.16 sec)

  1. platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt

    #
    # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
    #
    # In Bash we could simply go:
    #
    #   readarray ARGS < <( xargs -n1 <<<"\$var" ) &&
    #   set -- "\${ARGS[@]}" "\$@"
    #
    # but POSIX shell has neither arrays nor command substitution, so instead we
    # post-process each arg (as a line of input to sed) to backslash-escape any
    # character that might be a shell metacharacter, then use eval to reverse
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 13:43:33 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. ci/official/utilities/extract_resultstore_links.py

                                 else 0)
        while k > bazel_comm_min_line_i:
          backtrack_line = log_lines[k]
          # Don't attempt to parse multi-line commands broken up by backslashes
          if 'bazel ' in backtrack_line and not backtrack_line.endswith('\\'):
            bazel_line = BAZEL_COMMAND_RE.search(backtrack_line)
            if bazel_line:
              lines['command'] = bazel_line.group('command')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 17:50:27 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderGroovyTest.groovy

    }
    
    // another block
    block2 {
        method1()
        foo = 'bar'
    }
    
    foo = 'second last'
    foo = 'last'
    """)
        }
    
        def "generates basic Groovy build script with proper escaping for backslashes and single quotes"() {
            when:
            builder
                .propertyAssignment(null, "description", input)
                .create(target)
                .generate()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. src/regexp/example_test.go

    package regexp_test
    
    import (
    	"fmt"
    	"regexp"
    	"strings"
    )
    
    func Example() {
    	// Compile the expression once, usually at init time.
    	// Use raw strings to avoid having to quote the backslashes.
    	var validID = regexp.MustCompile(`^[a-z]+\[[0-9]+\]$`)
    
    	fmt.Println(validID.MatchString("adam[23]"))
    	fmt.Println(validID.MatchString("eve[7]"))
    	fmt.Println(validID.MatchString("Job[48]"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:22:53 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/SingleIncludePatternFileTreeSpec.groovy

            1 * visitor.visitFile({ it.file == tempDir.file("dir1/file1") })
            1 * visitor.visitFile({ it.file == tempDir.file("dir3/file1") })
            0 * _
        }
    
        def "use backslashes"() {
            fileTree = new SingleIncludePatternFileTree(tempDir.testDirectory, "dir?\\file1")
    
            when:
            fileTree.visit(visitor)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderKotlinTest.groovy

    }
    
    // another block
    block2 {
        method1()
        foo = "bar"
    }
    
    foo = "second last"
    foo = "last"
    """)
        }
    
        def "generates basic Kotlin build script with proper escaping for backslashes, double quotes, and dollar signs"() {
            when:
            builder
                .propertyAssignment(null, "description", input)
                .create(target)
                .generate()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    				}
    				args = append(args, arg)
    				acceptArg = false
    			default:
    				in.Error("bad definition for macro:", name)
    			}
    		}
    	}
    	var tokens []Token
    	// Scan to newline. Backslashes escape newlines.
    	for tok != '\n' {
    		if tok == scanner.EOF {
    			in.Error("missing newline in definition for macro:", name)
    		}
    		if tok == '\\' {
    			tok = in.Stack.Next()
    			if tok != '\n' && tok != '\\' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/LibrariesSourceGeneratorTest.groovy

            sources.hasDependencyAlias('other', 'getOther', "This dependency was declared in ${context}")
        }
    
        @Issue("https://github.com/gradle/gradle/issues/19752")
        def "backslashes are escaped when outputting context in javadocs"() {
            def context = "Windows path: C:\\Users\\user\\Documents\\ultimate plugin"
            def escapedContext = "Windows path: C:\\Users\\u005cuser\\Documents\\u005cultimate plugin"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    func escapeAllForDot(in []string) []string {
    	var out = make([]string, len(in))
    	for i := range in {
    		out[i] = escapeForDot(in[i])
    	}
    	return out
    }
    
    // escapeForDot escapes double quotes and backslashes, and replaces Graphviz's
    // "center" character (\n) with a left-justified character.
    // See https://graphviz.org/docs/attr-types/escString/ for more info.
    func escapeForDot(str string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  10. pkg/util/taints/taints_test.go

    			spec:        []string{"foo=Tama-nui-te-rā.is.Māori.sun:NoSchedule"},
    			expectedErr: true,
    		},
    		{
    			name:        "invalid spec taint value with special chars '\\'",
    			spec:        []string{"foo=\\backslashes\\are\\bad:NoSchedule"},
    			expectedErr: true,
    		},
    		{
    			name:        "invalid spec taint value with start with an non-alphanumeric character '-'",
    			spec:        []string{"foo=-starts-with-dash:NoSchedule"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 22.6K bytes
    - Viewed (0)
Back to top