Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for scopes (0.14 sec)

  1. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // 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>"));
    
        // Test all escapes.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/UrlEscapers.java

          new PercentEscaper(URL_FORM_PARAMETER_OTHER_SAFE_CHARS, true);
    
      /**
       * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a
       * href="https://goo.gl/m2MIf0">URL path segments</a>. The returned escaper escapes all non-ASCII
       * characters, even though <a href="https://goo.gl/e7E0In">many of these are accepted in modern
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Strings.java

        return Platform.stringIsNullOrEmpty(string);
      }
    
      /**
       * Returns a string, of length at least {@code minLength}, consisting of {@code string} prepended
       * with as many copies of {@code padChar} as are necessary to reach that length. For example,
       *
       * <ul>
       *   <li>{@code padStart("7", 3, '0')} returns {@code "007"}
       *   <li>{@code padStart("2010", 3, '0')} returns {@code "2010"}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

              || c > safeMaxChar
              || c < safeMinChar) {
            return escapeSlow(s, i);
          }
        }
        return s;
      }
    
      /**
       * Escapes a single Unicode code point using the replacement array and safe range values. If the
       * given character does not have an explicit replacement and lies outside the safe range then
       * {@link #escapeUnsafe} is called.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

          Iterable<? extends T> iterable, @ParametricNullness T defaultValue) {
        return Iterators.getOnlyElement(iterable.iterator(), defaultValue);
      }
    
      /**
       * Copies an iterable's elements into an array.
       *
       * @param iterable the iterable to copy
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterable have been copied
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

      /**
       * The number of other exception types in the cache of known-good exceptions and the number of
       * other {@code ClassValue} entries for the exception type to be tested. This lets us evaluate
       * whether our solution scales to use with multiple exception types and to whether it is affected
       * by other {@code ClassValue} users. Some of the benchmarked implementations don't use one or
       * both of these mechanisms, so they will be unaffected.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 22 03:01:34 GMT 2022
    - 6.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Cache.java

       * otherwise create, cache and return" pattern.
       *
       * @since 11.0
       */
      void put(K key, V value);
    
      /**
       * Copies all of the mappings from the specified map to the cache. The effect of this call is
       * equivalent to that of calling {@code put(k, v)} on this map once for each mapping from key
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (1)
  8. guava/src/com/google/common/collect/ImmutableRangeMap.java

          checkNotNull(value);
          checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range);
          entries.add(Maps.immutableEntry(range, value));
          return this;
        }
    
        /** Copies all associations from the specified range map into this builder. */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            segment.expand();
          }
          assertEquals(i, segment.table.length());
          assertEquals(liveCount, countLiveEntries(map));
          // expansion cleanup is sloppy, with a goal of avoiding unnecessary copies
          assertTrue(segment.count >= liveCount);
          assertTrue(segment.count <= originalCount);
          assertEquals(originalMap, ImmutableMap.copyOf(map));
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            segment.expand();
          }
          assertEquals(i, segment.table.length());
          assertEquals(liveCount, countLiveEntries(map));
          // expansion cleanup is sloppy, with a goal of avoiding unnecessary copies
          assertTrue(segment.count >= liveCount);
          assertTrue(segment.count <= originalCount);
          assertEquals(originalMap, ImmutableMap.copyOf(map));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
Back to top