Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for delim (0.02 sec)

  1. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      int assignDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          String delim = "";
          for (String comp : components) {
            sb.append(delim);
            sb.append(comp);
            delim = DELIMITER_STRING;
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java

            final String delim = NumberConversionUtil.findDecimalSeparator(Locale.JAPAN);
            assertEquals(".", delim);
        }
    
        /**
         * @throws Exception
         */
        public void testFindFractionDelimeter2() throws Exception {
            final String delim = NumberConversionUtil.findDecimalSeparator(Locale.FRANCE);
            assertEquals(",", delim);
        }
    
        /**
         * @throws Exception
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      int assignDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          String delim = "";
          for (String comp : components) {
            sb.append(delim);
            sb.append(comp);
            delim = DELIMITER_STRING;
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  4. src/bufio/bufio.go

    // [Reader.ReadBytes] or ReadString instead.
    // ReadSlice returns err != nil if and only if line does not end in delim.
    func (b *Reader) ReadSlice(delim byte) (line []byte, err error) {
    	s := 0 // search start index
    	for {
    		// Search buffer.
    		if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
    			i += s
    			line = b.buf[b.r : b.r+i+1]
    			b.r += i + 1
    			break
    		}
    
    		// Pending error?
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  5. src/bytes/buffer.go

    // ReadBytes reads until the first occurrence of delim in the input,
    // returning a slice containing the data up to and including the delimiter.
    // If ReadBytes encounters an error before finding a delimiter,
    // it returns the data read before the error and the error itself (often [io.EOF]).
    // ReadBytes returns err != nil if and only if the returned data does not end in
    // delim.
    func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/Config.java

         * value containting a <tt>delim</tt> separated list of hostnames and/or
         * ipaddresses.
         */
    
        public static InetAddress[] getInetAddressArray( String key, String delim, InetAddress[] def ) {
            String p = getProperty( key );
            if( p != null ) {
                StringTokenizer tok = new StringTokenizer( p, delim );
                int len = tok.countTokens();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/Config.java

         * value containing a <tt>delim</tt> separated list of host names and/or
         * ip addresses.
         */
        public static InetAddress[] getInetAddressArray ( Properties props, String key, String delim, InetAddress[] def ) {
            String p = props.getProperty(key);
            if ( p != null ) {
                StringTokenizer tok = new StringTokenizer(p, delim);
                int len = tok.countTokens();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/StringUtil.java

         *            文字列
         * @param delim
         *            分割するためのデリミタ
         * @return 分割された文字列の配列
         */
        public static String[] split(final String str, final String delim) {
            if (isEmpty(str)) {
                return EMPTY_STRINGS;
            }
            final List<String> list = newArrayList();
            final StringTokenizer st = new StringTokenizer(str, delim);
            while (st.hasMoreElements()) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  9. internal/s3select/csv/reader_contrib_test.go

    `,
    			totalFields: 308*2 + 1,
    		}, {
    			file:            "nyc-taxi-data-100k-single-delim.csv",
    			recordDelimiter: "^",
    			fieldDelimiter:  ",",
    			header:          true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
  10. src/bytes/buffer_test.go

    					if v != byte(l+i) {
    						t.Fatalf("in %d,%d: Next(%d)[%d] = %d, want %d", i, j, k, l, v, l+i)
    					}
    				}
    			}
    		}
    	}
    }
    
    var readBytesTests = []struct {
    	buffer   string
    	delim    byte
    	expected []string
    	err      error
    }{
    	{"", 0, []string{""}, io.EOF},
    	{"a\x00", 0, []string{"a\x00"}, nil},
    	{"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top