Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for escape (0.16 sec)

  1. src/test/java/org/codelibs/core/text/JsonUtilTest.java

    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author shinsuke
     *
     */
    public class JsonUtilTest {
        @Test
        public void escape() {
            assertThat(JsonUtil.escape("abc123あア亜"), is("abc123あア亜"));
            assertThat(JsonUtil.escape("\\\"/\b\t\n\f\r\0"), is("\\\\\\\"\\/\\b\\t\\n\\f\\r\\u0000"));
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/text/JsonUtil.java

     *
     */
    public class JsonUtil {
    
        /**
         * Defualt constructor.
         */
        protected JsonUtil() {
        }
    
        /**
         * Escapes a value as Json string.
         *
         * @param value input
         * @return escaped string.
         */
        public static String escape(final String value) {
            if (value == null) {
                return null;
            }
    
            char c;
            final int len = value.length();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <p><b>Warning:</b> a new random seed for these functions is chosen each time the {@code
       * Hashing} class is loaded. <b>Do not use this method</b> if hash codes may escape the current
       * process in any way, for example being sent over RPC, or saved to disk. For a general-purpose,
       * non-cryptographic hash function that will never change behavior, we suggest {@link
       * #murmur3_128}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Ordering.java

            // faster than using the implementation for Iterator, which is
            // specialized for k much smaller than n.
    
            @SuppressWarnings("unchecked") // c only contains E's and doesn't escape
            E[] array = (E[]) collection.toArray();
            Arrays.sort(array, this);
            if (array.length > k) {
              array = Arrays.copyOf(array, k);
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

              "foo.uk.com",
              "foo.bar.co.il",
              "state.CA.us",
              "www.state.pa.us",
              "pvt.k12.ca.us",
              "www.google.com",
              "www4.yahoo.co.uk",
              "home.netscape.com",
              "web.MIT.edu",
              "foo.eDu.au",
              "utenti.blah.IT",
              "dominio.com.co");
    
      private static final ImmutableSet<String> NON_RS =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            }
            URI source = baseURI.resolve(relativeSource);
            if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) {
                throw new IllegalArgumentException("Supplied relative URI escapes baseUrl");
            }
            GetTask getTask = new GetTask(source);
            getTask.setDataPath(target);
            try {
                transporter.get(getTask);
                return true;
            } catch (Exception e) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top