Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 98 for backslashes (0.18 sec)

  1. 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)
  2. gradlew

    #
    # 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: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 24 09:00:26 UTC 2023
    - 8.5K 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/mime/mediatype.go

    		// escape backslashes: "C:\dev\go\foo.txt", not "C:\\dev\\go\\foo.txt".
    		//
    		// No known MIME generators emit unnecessary backslash escapes
    		// for simple token characters like numbers and letters.
    		//
    		// If we see an unnecessary backslash escape, assume it is from MSIE
    		// and intended as a literal backslash. This makes Go servers deal better
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/internal/objabi/flag.go

    	var wasBS bool
    	for _, r := range arg {
    		if wasBS {
    			switch r {
    			case '\\':
    				b.WriteByte('\\')
    			case 'n':
    				b.WriteByte('\n')
    			default:
    				// This shouldn't happen. The only backslashes that reach here
    				// should encode '\n' and '\\' exclusively.
    				panic("badly formatted input")
    			}
    		} else if r == '\\' {
    			wasBS = true
    			continue
    		} else {
    			b.WriteRune(r)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 23:08:09 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top