Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for separator (3.61 sec)

  1. android/guava/src/com/google/common/base/Joiner.java

      /** Returns a joiner which automatically places {@code separator} between consecutive elements. */
      public static Joiner on(String separator) {
        return new Joiner(separator);
      }
    
      /** Returns a joiner which automatically places {@code separator} between consecutive elements. */
      public static Joiner on(char separator) {
        return new Joiner(String.valueOf(separator));
      }
    
      private final String separator;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Splitter.java

       * Returns a splitter that uses the given single-character separator. For example, {@code
       * Splitter.on(',').split("foo,,bar")} returns an iterable containing {@code ["foo", "", "bar"]}.
       *
       * @param separator the character to recognize as a separator
       * @return a splitter, with default settings, that recognizes that separator
       */
      public static Splitter on(char separator) {
        return on(CharMatcher.is(separator));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testEncoding(encoding, decoded, encoded);
    
        // test separators work
        for (int sepLength = 3; sepLength <= 5; sepLength++) {
          for (String separator : ImmutableList.of(",", "\n", ";;", "")) {
            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
                Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded)));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/BaseEncoding.java

        public BaseEncoding withSeparator(String separator, int afterEveryChars) {
          for (int i = 0; i < separator.length(); i++) {
            checkArgument(
                !alphabet.matches(separator.charAt(i)),
                "Separator (%s) cannot contain alphabet characters",
                separator);
          }
          if (paddingChar != null) {
            checkArgument(
                separator.indexOf(paddingChar.charValue()) < 0,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Splitter.java

       * Returns a splitter that uses the given single-character separator. For example, {@code
       * Splitter.on(',').split("foo,,bar")} returns an iterable containing {@code ["foo", "", "bar"]}.
       *
       * @param separator the character to recognize as a separator
       * @return a splitter, with default settings, that recognizes that separator
       */
      public static Splitter on(char separator) {
        return on(CharMatcher.is(separator));
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Ascii.java

       * interpretation of a limited number of contiguously following characters.
       *
       * @since 8.0
       */
      public static final byte ESC = 27;
    
      /**
       * File Separator: These four information separators may be used within data in optional fashion,
       * except that their hierarchical relationship shall be: FS is the most inclusive, then GS, then
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testEncoding(encoding, decoded, encoded);
    
        // test separators work
        for (int sepLength = 3; sepLength <= 5; sepLength++) {
          for (String separator : ImmutableList.of(",", "\n", ";;", "")) {
            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
                Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded)));
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       */
      public static String join(String separator, byte... array) {
        checkNotNull(separator);
        if (array.length == 0) {
          return "";
        }
    
        // For pre-sizing a builder, just get the right order of magnitude
        StringBuilder builder = new StringBuilder(array.length * (3 + separator.length()));
        builder.append(toInt(array[0]));
        for (int i = 1; i < array.length; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInts.java

      public static String join(String separator, int... array) {
        checkNotNull(separator);
        if (array.length == 0) {
          return "";
        }
    
        // For pre-sizing a builder, just get the right order of magnitude
        StringBuilder builder = new StringBuilder(array.length * 5);
        builder.append(toString(array[0]));
        for (int i = 1; i < array.length; i++) {
          builder.append(separator).append(toString(array[i]));
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

       */
      public static String join(String separator, char... array) {
        checkNotNull(separator);
        int len = array.length;
        if (len == 0) {
          return "";
        }
    
        StringBuilder builder = new StringBuilder(len + separator.length() * (len - 1));
        builder.append(array[0]);
        for (int i = 1; i < len; i++) {
          builder.append(separator).append(array[i]);
        }
        return builder.toString();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top