Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 98 for backslashes (0.16 sec)

  1. src/cmd/cgo/internal/testcshared/cshared_test.go

    				quote = '\000'
    			} else if (quote == '\000' || quote == '"') && !backslash && c == '\\' {
    				backslash = true
    			} else {
    				backslash = false
    			}
    		}
    	}
    	if !lastSpace {
    		cc = append(cc, s[start:])
    	}
    
    	switch GOOS {
    	case "darwin", "ios":
    		// For Darwin/ARM.
    		// TODO(crawshaw): can we do better?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/Swift5.groovy

                            """
                }
    
                public func getRawString() -> String {
                    let value = 42
                    return #"Raw string are ones with "quotes", backslash (\\), but can do special string interpolation (\\#(value))"#
                }
            ''')]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/carchive_test.go

    			} else if !backslash && quote == c {
    				quote = '\000'
    			} else if (quote == '\000' || quote == '"') && !backslash && c == '\\' {
    				backslash = true
    			} else {
    				backslash = false
    			}
    		}
    	}
    	if !lastSpace {
    		cc = append(cc, s[start:])
    	}
    
    	if GOOS == "aix" {
    		// -Wl,-bnoobjreorder is mandatory to keep the same layout
    		// in .text section.
    		cc = append(cc, "-Wl,-bnoobjreorder")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/process/ArgWriterTest.groovy

            when:
            argWriter.args('"abc"', 'a" bc')
    
            then:
            writer.toString() == toPlatformLineSeparators('\\"abc\\" "a\\" bc"\n')
        }
    
        def "escapes backslash in argument"() {
            when:
            argWriter.args('a\\b', 'a \\ bc')
    
            then:
            writer.toString() == toPlatformLineSeparators('a\\\\b "a \\\\ bc"\n')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/str/path.go

    	if s == "" || os.IsPathSeparator(s[len(s)-1]) {
    		return s
    	}
    	return s + string(filepath.Separator)
    }
    
    // QuoteGlob returns s with all Glob metacharacters quoted.
    // We don't try to handle backslash here, as that can appear in a
    // file path on Windows.
    func QuoteGlob(s string) string {
    	if !strings.ContainsAny(s, `*?[]`) {
    		return s
    	}
    	var sb strings.Builder
    	for _, c := range s {
    		switch c {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/strconv/quote.go

    	buf = append(buf, quote)
    	return buf
    }
    
    func appendEscapedRune(buf []byte, r rune, quote byte, ASCIIonly, graphicOnly bool) []byte {
    	if r == rune(quote) || r == '\\' { // always backslashed
    		buf = append(buf, '\\')
    		buf = append(buf, byte(r))
    		return buf
    	}
    	if ASCIIonly {
    		if r < utf8.RuneSelf && IsPrint(r) {
    			buf = append(buf, byte(r))
    			return buf
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/FileReferenceFactory.java

            }
    
            @Override
            public String getPath() {
                return path;
            }
    
            @Override
            public String getJarURL(){
                //windows needs an additional backslash in jar urls
                return  "jar:" + file.toURI() + "!/";
    
            }
    
            @Override
            public boolean isRelativeToPathVariable() {
                return relativeToPathVariable;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultIgnoredConfigurationInputsTest.kt

            assertTrue(instance.isFileSystemCheckIgnoredFor(File("Abc")))
            assertTrue(instance.isFileSystemCheckIgnoredFor(File("Def/123/ghi")))
        }
    
        @Test
        fun `accepts backslash-separated path patterns on Windows`() {
            val instance = createFromPaths(listOf("abc\\*\\ghi"))
            val isRecognized = instance.isFileSystemCheckIgnoredFor(File("abc/test/ghi"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    </p>
    
    <p>
    Several backslash escapes allow arbitrary values to be encoded as
    ASCII text.  There are four ways to represent the integer value
    as a numeric constant: <code>\x</code> followed by exactly two hexadecimal
    digits; <code>\u</code> followed by exactly four hexadecimal digits;
    <code>\U</code> followed by exactly eight hexadecimal digits, and a
    plain backslash <code>\</code> followed by exactly three octal digits.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. src/log/slog/text_handler.go

    	}
    	return nil, false
    }
    
    func needsQuoting(s string) bool {
    	if len(s) == 0 {
    		return true
    	}
    	for i := 0; i < len(s); {
    		b := s[i]
    		if b < utf8.RuneSelf {
    			// Quote anything except a backslash that would need quoting in a
    			// JSON string, as well as space and '='
    			if b != '\\' && (b == ' ' || b == '=' || !safeSet[b]) {
    				return true
    			}
    			i++
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top