Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 196 for hasExt (0.11 sec)

  1. src/os/exec/lp_windows.go

    	if d.IsDir() {
    		return fs.ErrPermission
    	}
    	return nil
    }
    
    func hasExt(file string) bool {
    	i := strings.LastIndex(file, ".")
    	if i < 0 {
    		return false
    	}
    	return strings.LastIndexAny(file, `:\/`) < i
    }
    
    func findExecutable(file string, exts []string) (string, error) {
    	if len(exts) == 0 {
    		return file, chkStat(file)
    	}
    	if hasExt(file) {
    		if chkStat(file) == nil {
    			return file, nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

      override fun find(): RealConnection {
        var firstException: IOException? = null
        try {
          while (tcpConnectsInFlight.isNotEmpty() || routePlanner.hasNext()) {
            if (routePlanner.isCanceled()) throw IOException("Canceled")
    
            // Launch a new connection if we're ready to.
            val now = taskRunner.backend.nanoTime()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/SortedMapDiffUtil.java

                        if (previousEntries.hasNext() && currentEntries.hasNext()) {
                            previousEntry = previousEntries.next();
                            currentEntry = currentEntries.next();
                        } else {
                            break;
                        }
                    }
                }
            }
    
            while (currentEntries.hasNext()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/ClassIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Integer.class)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Number.class)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Object.class)));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

        public SingleValueIterator(final E value) {
            this.value = value;
        }
    
        @Override
        public boolean hasNext() {
            return hasNext;
        }
    
        @Override
        public E next() {
            if (!hasNext) {
                throw new NoSuchElementException();
            }
            hasNext = false;
            return value;
        }
    
        @Override
        public void remove() {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/LineIteratorTest.java

            final LineIterator it = new LineIterator(reader);
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("aaa"));
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("bbb"));
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("ccc"));
            assertThat(it.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameInstance(cl3)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameInstance(cl2)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameInstance(cl1)));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/collection/MultiIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Foo"));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Bar"));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Baz"));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        assertEquals(rangeSet.asDescendingSetOfRanges().isEmpty(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asRanges().iterator().hasNext(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asDescendingSetOfRanges().iterator().hasNext(), rangeSet.isEmpty());
    
        List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
    
        // test that connected ranges are coalesced
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/main/java/org/gradle/external/javadoc/internal/JavadocOptionFileWriterContext.java

            StringBuilder builder = new StringBuilder();
            Iterator<String> valuesIt = values.iterator();
            while (valuesIt.hasNext()) {
                builder.append(valuesIt.next());
                if (valuesIt.hasNext()) {
                    builder.append(joinValuesBy);
                }
            }
            writeValueOption(option, builder.toString());
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top