Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 663 for unquote (0.23 sec)

  1. src/runtime/debug/mod.go

    				}
    				key, _ = strconv.Unquote(rawKey)
    				rawValue = kv[len(rawKey)+1:]
    
    			default:
    				var ok bool
    				key, rawValue, ok = strings.Cut(kv, "=")
    				if !ok {
    					return nil, fmt.Errorf("build line missing '=' after key")
    				}
    				if quoteKey(key) {
    					return nil, fmt.Errorf("unquoted key %q must be quoted", key)
    				}
    			}
    
    			var value string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:51 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. src/internal/trace/testtrace/expectation.go

    		default:
    			return exp, fmt.Errorf("bad header line: %q", s.Text())
    		}
    		return exp, nil
    	}
    	return exp, s.Err()
    }
    
    func parseMatcher(quoted string) (*regexp.Regexp, error) {
    	pattern, err := strconv.Unquote(quoted)
    	if err != nil {
    		return nil, fmt.Errorf("malformed pattern: not correctly quoted: %s: %v", quoted, err)
    	}
    	matcher, err := regexp.Compile(pattern)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/errorcalls_test.go

    			}
    			format := call.ArgList[errorfFormatIndex]
    			syntax.Inspect(format, func(n syntax.Node) bool {
    				if lit, _ := n.(*syntax.BasicLit); lit != nil && lit.Kind == syntax.StringLit {
    					if s, err := strconv.Unquote(lit.Value); err == nil {
    						if !balancedParentheses(s) {
    							t.Errorf("%s: unbalanced parentheses/brackets", lit.Pos())
    						}
    					}
    					return false
    				}
    				return true
    			})
    			return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/go/doc/example_internal_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			imps := findImportGroupStarts1(file.Imports)
    			got := make([]string, len(imps))
    			for i, imp := range imps {
    				got[i], err = strconv.Unquote(imp.Path.Value)
    				if err != nil {
    					t.Fatal(err)
    				}
    			}
    			if !reflect.DeepEqual(got, test.want) {
    				t.Errorf("got %v, want %v", got, test.want)
    			}
    		})
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 14:22:16 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/imports/scan.go

    		if !explicitFiles && !ShouldBuild(data, tags) {
    			continue
    		}
    		numFiles++
    		m := imports
    		if strings.HasSuffix(name, "_test.go") {
    			m = testImports
    		}
    		for _, p := range list {
    			q, err := strconv.Unquote(p)
    			if err != nil {
    				continue
    			}
    			m[q] = true
    		}
    	}
    	if numFiles == 0 {
    		return nil, nil, ErrNoGo
    	}
    	return keys(imports), keys(testImports), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 23 19:36:38 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/fix/gotypes.go

    	var importSpec *ast.ImportSpec
    	walk(f, func(n any) {
    		if importSpec != nil {
    			return
    		}
    		spec, ok := n.(*ast.ImportSpec)
    		if !ok {
    			return
    		}
    		path, err := strconv.Unquote(spec.Path.Value)
    		if err != nil {
    			return
    		}
    		if path == "golang.org/x/tools/go/exact" {
    			importSpec = spec
    		}
    
    	})
    	if importSpec == nil {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  7. src/regexp/exec_test.go

    		if strings.Contains(flag, "$") {
    			f := `"` + field[1] + `"`
    			if field[1], err = strconv.Unquote(f); err != nil {
    				t.Errorf("%s:%d: cannot unquote %s", file, lineno, f)
    			}
    			f = `"` + field[2] + `"`
    			if field[2], err = strconv.Unquote(f); err != nil {
    				t.Errorf("%s:%d: cannot unquote %s", file, lineno, f)
    			}
    		}
    
    		//   Field 2: the regular expression pattern; SAME uses the pattern from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/KuromojiCSVUtil.java

            }
    
            return result.toArray(new String[result.size()]);
        }
    
        private static String unQuoteUnEscape(final String original) {
            String result = original;
    
            // Unquote
            if (result.indexOf('\"') >= 0) {
                final Matcher m = QUOTE_REPLACE_PATTERN.matcher(original);
                if (m.matches()) {
                    result = m.group(1);
                }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/vcstest/git/vgotest1.txt

    at 2018-02-19T17:51:24-05:00
    	# README.md at this commit lacked a trailing newline, so 'git apply' can't
    	# seem to apply it correctly as a patch. Instead, we use 'echo -e' to write
    	# the exact contents.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 15:36:24 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  10. src/encoding/json/decode.go

    			c = c - 'A' + 10
    		default:
    			return -1
    		}
    		r = r*16 + rune(c)
    	}
    	return r
    }
    
    // unquote converts a quoted JSON string literal s into an actual string t.
    // The rules are different than for Go, so cannot use strconv.Unquote.
    func unquote(s []byte) (t string, ok bool) {
    	s, ok = unquoteBytes(s)
    	t = string(s)
    	return
    }
    
    // unquoteBytes should be an internal detail,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top