Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EscapeValue (0.17 sec)

  1. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

            if (keyObj instanceof final UrlQueue<?> urlQueue) {
                return escapeValue(urlQueue.getUrl());
            }
            if (keyObj instanceof final StatsKeyObject statsKey) {
                return escapeValue(statsKey.getUrl());
            }
            if (keyObj instanceof final String key) {
                return escapeValue(key);
            }
            if (keyObj instanceof final Number key) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/fields/selector.go

    	// escape \ characters
    	`\`, `\\`,
    	// then escape , and = characters to allow unambiguous parsing of the value in a fieldSelector
    	`,`, `\,`,
    	`=`, `\=`,
    )
    
    // EscapeValue escapes an arbitrary literal string for use as a fieldSelector value
    func EscapeValue(s string) string {
    	return valueEscaper.Replace(s)
    }
    
    // InvalidEscapeSequence indicates an error occurred unescaping a field selector
    type InvalidEscapeSequence struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 23 20:40:07 UTC 2020
    - 12.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/fields/selector_test.go

    		`=`:     `\=`,
    		`,`:     `\,`,
    		`\`:     `\\`,
    		`\=\,\`: `\\\=\\\,\\`,
    	}
    
    	for unescapedValue, escapedValue := range testcases {
    		actualEscaped := EscapeValue(unescapedValue)
    		if actualEscaped != escapedValue {
    			t.Errorf("EscapeValue(%s): expected %s, got %s", unescapedValue, escapedValue, actualEscaped)
    		}
    
    		actualUnescaped, err := UnescapeValue(escapedValue)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 08:00:38 UTC 2017
    - 11.2K bytes
    - Viewed (0)
Back to top