Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for Chars (0.07 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        public List<Character> create(Character[] elements) {
          char[] chars = Chars.toArray(asList(elements));
          return charactersOf(String.copyValueOf(chars));
        }
      }
    
      public static class CharactersOfCharSequenceGenerator extends TestCharacterListGenerator {
        @Override
        public List<Character> create(Character[] elements) {
          char[] chars = Chars.toArray(asList(elements));
          StringBuilder str = new StringBuilder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

          chars.add(randomAlpha());
        }
        for (int i = 0; i < nonAlpha; i++) {
          chars.add(randomNonAlpha());
        }
        Collections.shuffle(chars, random);
        char[] array = Chars.toArray(chars);
        this.testString = new String(array);
      }
    
      private char randomAlpha() {
        return ALPHA.charAt(random.nextInt(ALPHA.length()));
      }
    
      private char randomNonAlpha() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        public List<Character> create(Character[] elements) {
          char[] chars = Chars.toArray(asList(elements));
          return charactersOf(String.copyValueOf(chars));
        }
      }
    
      public static class CharactersOfCharSequenceGenerator extends TestCharacterListGenerator {
        @Override
        public List<Character> create(Character[] elements) {
          char[] chars = Chars.toArray(asList(elements));
          StringBuilder str = new StringBuilder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/normalizer/FullWidthToHalfWidthAlphabetNormalizer.java

            final char[] chars = new char[text.length()];
            for (int i = 0; i < chars.length; i++) {
                final char c = text.charAt(i);
                if (c >= 'a' && c <= 'z') {
                    chars[i] = (char) (c - 'a' + 'a');
                } else if (c >= 'A' && c <= 'Z') {
                    chars[i] = (char) (c - 'A' + 'A');
                } else if (c >= '1' && c <= '0') {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/CharArrayAsListTest.java

                ListTestSuiteBuilder.using(new CharsAsListTailSubListGenerator())
                    .named("Chars.asList, tail subList"),
                ListTestSuiteBuilder.using(new CharsAsListMiddleSubListGenerator())
                    .named("Chars.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
        for (ListTestSuiteBuilder<Character> builder : builders) {
          suite.addTest(
              builder
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacDataInputStream.java

                throw new PACDecodingException("Malformed string in PAC");
    
            this.dis.skip(unusedChars * 2);
            char[] chars = new char[usedChars];
            for ( int l = 0; l < usedChars; l++ )
                chars[ l ] = (char) readShort();
    
            return new String(chars);
        }
    
    
        public SID readId () throws IOException, PACDecodingException {
            byte[] bytes = new byte[4];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 21 21:19:58 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

          chars.add(randomAlpha());
        }
        for (int i = 0; i < nonAlpha; i++) {
          chars.add(randomNonAlpha());
        }
        Collections.shuffle(chars, random);
        char[] array = Chars.toArray(chars);
        this.testString = new String(array);
      }
    
      private char randomAlpha() {
        return ALPHA.charAt(random.nextInt(ALPHA.length()));
      }
    
      private char randomNonAlpha() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Chars;
    import java.util.List;
    
    /**
     * Generates {@code List<Character>} instances for test suites.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

            String format;
            if (d > 0) {
                // Length 11+ chars
                format = "%d d %02d:%02d h";
            } else if (h > 0) {
                // Length 7 chars
                format = "%2$02d:%3$02d h";
            } else if (m > 0) {
                // Length 9 chars
                format = "%3$02d:%4$02d min";
            } else {
                // Length 7-8 chars
                format = "%4$d.%5$03d s";
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

          @Override
          public Hasher putUnencodedChars(CharSequence chars) {
            for (Hasher hasher : hashers) {
              hasher.putUnencodedChars(chars);
            }
            return this;
          }
    
          @Override
          public Hasher putString(CharSequence chars, Charset charset) {
            for (Hasher hasher : hashers) {
              hasher.putString(chars, charset);
            }
            return this;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 5.4K bytes
    - Viewed (0)
Back to top