Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,398 for mescapes (0.2 sec)

  1. guava/src/com/google/common/net/PercentEscaper.java

    import com.google.common.escape.UnicodeEscaper;
    import javax.annotation.CheckForNull;
    
    /**
     * A {@code UnicodeEscaper} that escapes some set of Java characters using a UTF-8 based percent
     * encoding scheme. The set of safe characters (those which remain unescaped) can be specified on
     * construction.
     *
     * <p>This class is primarily used for creating URI escapers in {@link UrlEscapers} but can be used
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  2. pkg/config/analysis/diag/messages.go

    }
    
    // SetDocRef sets the doc URL reference tracker for the messages
    func (ms *Messages) SetDocRef(docRef string) *Messages {
    	for i := range *ms {
    		(*ms)[i].DocRef = docRef
    	}
    	return ms
    }
    
    // FilterOutLowerThan only keeps messages at or above the specified output level
    func (ms *Messages) FilterOutLowerThan(outputLevel Level) Messages {
    	outputMessages := Messages{}
    	for _, m := range *ms {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 02:47:46 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. pkg/config/analysis/msg/messages.go

    // limitations under the License.
    
    package msg
    
    // Create static initializers file
    //go:generate go run generate.main.go messages.yaml messages.gen.go
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 28 16:55:31 UTC 2023
    - 762 bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/UrlEscapersTest.java

        assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF');
    
        assertEquals("", e.escape(""));
        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      // Helper to assert common expected behaviour of uri escapers.
      static void assertBasicUrlEscaper(UnicodeEscaper e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        // Test quotes are escaped.
        assertEquals("&quot;test&quot;", xmlAttributeEscaper.escape("\"test\""));
        assertEquals("&apos;test&apos;", xmlAttributeEscaper.escape("\'test'"));
        // Test all escapes
        assertEquals(
            "a&quot;b&lt;c&gt;d&amp;e&quot;f&apos;", xmlAttributeEscaper.escape("a\"b<c>d&e\"f'"));
        // Test '\t', '\n' and '\r' are escaped.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 4.7K bytes
    - Viewed (0)
  6. test/escape5.go

    	f8(&j)
    }
    
    func f10() {
    	// These don't escape but are too big for the stack
    	var x [1 << 30]byte         // ERROR "moved to heap: x"
    	var y = make([]byte, 1<<30) // ERROR "make\(\[\]byte, 1073741824\) escapes to heap"
    	_ = x[0] + y[0]
    }
    
    // Test for issue 19687 (passing to unnamed parameters does not escape).
    func f11(**int) {
    }
    func f12(_ **int) {
    }
    func f13() {
    	var x *int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. test/escape3.go

    // run
    
    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test the run-time behavior of escape analysis-related optimizations.
    
    package main
    
    func main() {
    	test1()
    }
    
    func test1() {
    	check1(0)
    	check1(1)
    	check1(2)
    }
    
    type T1 struct {
    	X, Y, Z int
    }
    
    func f() int {
    	return 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 524 bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

       */
      @Override
      public final String escape(String s) {
        checkNotNull(s); // GWT specific check (do not optimize).
        for (int i = 0; i < s.length(); i++) {
          char c = s.charAt(i);
          if ((c < replacementsLength && replacements[c] != null) || c > safeMax || c < safeMin) {
            return escapeSlow(s, i);
          }
        }
        return s;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // Test simple escape of '&'.
        assertEquals("foo&amp;bar", htmlEscaper().escape("foo&bar"));
    
        // If the string contains no escapes, it should return the arg.
        // Note: assert<b>Same</b> for this implementation.
        String s = "blah blah farhvergnugen";
        assertSame(s, htmlEscaper().escape(s));
    
        // Tests escapes at begin and end of string.
        assertEquals("&lt;p&gt;", htmlEscaper().escape("<p>"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/escaping.go

    // Unescape unescapes an CEL identifier containing the escape sequences described in Escape, or return false if the
    // string contains invalid escape sequences. The escaped input is expected to be a valid CEL identifier, but is
    // not checked.
    func Unescape(escaped string) (string, bool) {
    	ok := true
    	escaped = unexpandMatcher.ReplaceAllStringFunc(escaped, func(s string) string {
    		contents := s[2 : len(s)-2]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top