Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 112 for backslashes (0.16 sec)

  1. 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: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 11:20:16 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. src/path/path.go

    // paths.
    //
    // The path package should only be used for paths separated by forward
    // slashes, such as the paths in URLs. This package does not deal with
    // Windows paths with drive letters or backslashes; to manipulate
    // operating system paths, use the [path/filepath] package.
    package path
    
    import "internal/bytealg"
    
    // A lazybuf is a lazily constructed path buffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top