Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 144 for pos (0.14 sec)

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

        while (remaining > 0) {
          final char c = (char) random.nextInt();
          if (bitSet.get(c)) {
            final int pos = random.nextInt(result.length);
            if (bitSet.get(result[pos])) {
              result[pos] = c;
              remaining--;
            }
          }
        }
        return new String(result);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  2. src/archive/tar/tar_test.go

    	}
    	if len(s) > len(b) {
    		f.ops[0] = s[len(b):]
    	} else {
    		f.ops = f.ops[1:]
    	}
    	f.pos += int64(len(b))
    	return len(b), nil
    }
    
    func (f *testFile) Seek(pos int64, whence int) (int64, error) {
    	if pos == 0 && whence == io.SeekCurrent {
    		return f.pos, nil
    	}
    	if len(f.ops) == 0 {
    		return 0, errors.New("unexpected Seek operation")
    	}
    	s, ok := f.ops[0].(int64)
    	if !ok {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/it/admin/dict/KuromojiTests.java

            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("segmentation", "segment");
            requestBody.put("reading", "reading");
            requestBody.put("pos", "pos");
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
            final Map<String, Object> updateMap = new HashMap<>();
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        string.getChars(0, len, strCopy, 0);
    
        char[] array = new char[len * count];
    
        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
          if (count != 0) {
            System.arraycopy(strCopy, 0, strCopy, strCopyLen, strCopyLen);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                        // Filtering an array is NOT in place
                        result.acceptedApiChanges = result.acceptedApiChanges.filter((item, pos, ary) => (!pos || (JSON.stringify(item) != JSON.stringify(ary[pos - 1]))));
                        return result;
                    }
    
                    function acceptAllErrorCorrections() {
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 07 20:38:43 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

                    traverseFileSystem(rootDir, file, handler);
                } else {
                    final int pos = FileUtil.getCanonicalPath(rootDir).length();
                    final String filePath = FileUtil.getCanonicalPath(file);
                    final String resourcePath = filePath.substring(pos + 1).replace('\\', '/');
                    final InputStream is = InputStreamUtil.create(file);
                    try {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbRandomAccess.java

        /**
         * Current position in file
         * 
         * @return current position
         */
        long getFilePointer ();
    
    
        /**
         * Seek to new position
         * 
         * @param pos
         */
        void seek ( long pos );
    
    
        /**
         * Get the current file length
         * 
         * @return file length
         * @throws SmbException
         */
        long length () throws SmbException;
    
    
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

        public static String toZipFilePath(final URL zipUrl) {
            assertArgumentNotNull("zipUrl", zipUrl);
    
            final String urlString = zipUrl.getPath();
            final int pos = urlString.lastIndexOf('!');
            final String zipFilePath = urlString.substring(0, pos);
            final File zipFile = new File(URLUtil.decode(zipFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(zipFile);
        }
    
        /**
         * Zipファイルをクローズします。
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Graph.java

                    } else if (state == DfsState.VISITING) {
                        // we are already visiting this vertex, this mean we have a cycle
                        int pos = cycle.lastIndexOf(v);
                        List<String> ret = cycle.subList(pos, cycle.size());
                        ret.add(v);
                        return ret;
                    }
                }
            }
            return null;
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

                } else if (state == DfsState.VISITING) {
                    // we are already visiting this vertex, this mean we have a cycle
                    int pos = cycle.lastIndexOf(v.label);
                    List<String> ret = cycle.subList(pos, cycle.size());
                    ret.add(v.label);
                    return ret;
                }
            }
            return null;
        }
    
        static class Vertex {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
Back to top