Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 819 for quoted0 (0.4 sec)

  1. src/strconv/example_test.go

    	// Output:
    	// "", invalid syntax
    	// "\"double-quoted string\"", <nil>
    	// "`or backquoted`", <nil>
    	// "'☺'", <nil>
    }
    
    func ExampleUnquote() {
    	s, err := strconv.Unquote("You can't unquote a string without quotes")
    	fmt.Printf("%q, %v\n", s, err)
    	s, err = strconv.Unquote("\"The string must be either double-quoted\"")
    	fmt.Printf("%q, %v\n", s, err)
    	s, err = strconv.Unquote("`or backquoted.`")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 22:57:37 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. statement.go

    }
    
    // WriteQuoted write quoted value
    func (stmt *Statement) WriteQuoted(value interface{}) {
    	stmt.QuoteTo(&stmt.SQL, value)
    }
    
    // QuoteTo write quoted value to writer
    func (stmt *Statement) QuoteTo(writer clause.Writer, field interface{}) {
    	write := func(raw bool, str string) {
    		if raw {
    			writer.WriteString(str)
    		} else {
    			stmt.DB.Dialector.QuoteTo(writer, str)
    		}
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/CLanguageIntegrationTest.groovy

            '"quoted"'                         | 'quoted'
            '"with space"'                     | 'with space'
            '"with\\\\"quote\\\\"internal"'    | 'with"quote"internal'
            '"with \\\\"quote\\\\" and space"' | 'with "quote" and space'
        }
    
        @ToBeFixedForConfigurationCache
        def "compiler and linker args can contain quotes and spaces"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. src/cmd/internal/quoted/quoted_test.go

    		{name: "space", args: []string{"a ", "b"}, want: "'a ' b"},
    		{name: "newline", args: []string{"a\n", "b"}, want: "'a\n' b"},
    		{name: "quote", args: []string{`'a `, "b"}, want: `"'a " b`},
    		{name: "unquoteable", args: []string{`'"`}, wantErr: "contains both single and double quotes and cannot be quoted"},
    	} {
    		t.Run(test.name, func(t *testing.T) {
    			got, err := Join(test.args)
    			if err != nil {
    				if test.wantErr == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 16:39:27 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/main/java/org/gradle/api/internal/plugins/StartScriptTemplateBindingFactory.java

            //argument quoting:
            // - " must be encoded as \"
            // - % must be encoded as %%
            // - pathological case: \" must be encoded as \\\", but other than that, \ MUST NOT be quoted
            // - other characters (including ') will not be quoted
            // - use a state machine rather than regexps
            for (char ch = it.first(); ch != CharacterIterator.DONE; ch = it.next()) {
                String repl = Character.toString(ch);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

          when {
            token == null -> {
              // Value is "double-quoted". That's valid and our regex group already strips the quotes.
              parameter.groups[3]!!.value
            }
            token.startsWith("'") && token.endsWith("'") && token.length > 2 -> {
              // If the token is 'single-quoted' it's invalid! But we're lenient and strip the quotes.
              token.substring(1, token.length - 1)
            }
            else -> token
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modindex/build.go

    	escaped := false
    	quoted := false
    	quote := '\x00'
    	i := 0
    	for _, rune := range s {
    		switch {
    		case escaped:
    			escaped = false
    		case rune == '\\':
    			escaped = true
    			continue
    		case quote != '\x00':
    			if rune == quote {
    				quote = '\x00'
    				continue
    			}
    		case rune == '"' || rune == '\'':
    			quoted = true
    			quote = rune
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  8. doc/next/6-stdlib/99-minor/net/http/46443.md

    [Cookie] now preserves double quotes surrounding a cookie value.
    The new [Cookie.Quoted] field indicates whether the [Cookie.Value]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:33:17 UTC 2024
    - 155 bytes
    - Viewed (0)
  9. src/encoding/csv/reader.go

    //
    // Fields which start and stop with the quote character " are called
    // quoted-fields. The beginning and ending quote are not part of the
    // field.
    //
    // The source:
    //
    //	normal string,"quoted-field"
    //
    // results in the fields
    //
    //	{`normal string`, `quoted-field`}
    //
    // Within a quoted-field a quote character followed by a second quote
    // character is considered a single quote.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/script/engine.go

    			}
    			continue
    		}
    		if i >= len(line) {
    			return nil, errors.New("unterminated quoted argument")
    		}
    		if line[i] == '\'' {
    			if !quoted {
    				// starting a quoted chunk
    				if start >= 0 {
    					rawArg = append(rawArg, argFragment{s: line[start:i], quoted: false})
    				}
    				start = i + 1
    				quoted = true
    				continue
    			}
    			// 'foo''bar' means foo'bar, like in rc shell and Pascal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
Back to top