Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 122 for lastIndexOf (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          // '/foo/bar' for a URL like 'http://example.com/foo/bar/baz'. It always starts with '/'.
          if (path == null || !path.startsWith("/")) {
            val encodedPath = url.encodedPath
            val lastSlash = encodedPath.lastIndexOf('/')
            path = if (lastSlash != 0) encodedPath.substring(0, lastSlash) else "/"
          }
    
          return Cookie(
            cookieName, cookieValue, expiresAt, domain, path, secureOnly, httpOnly,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertEquals(ImmutableList.of("a", "a", "b", "b", "b"), list);
        SerializableTester.reserializeAndAssert(list);
        assertEquals(2, list.indexOf("b"));
        assertEquals(4, list.lastIndexOf("b"));
      }
    
      public void testCopyOfDefensiveCopy() {
        // Depending on JDK version, either toArray() or toArray(T[]) may be called... use this class
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/ClassPath.java

         * discussion in <a href="https://github.com/google/guava/issues/3349">issue 3349</a>.
         */
        public String getSimpleName() {
          int lastDollarSign = className.lastIndexOf('$');
          if (lastDollarSign != -1) {
            String innerClassName = className.substring(lastDollarSign + 1);
            // local and anonymous classes are prefixed with number (1,2,3...), anonymous classes are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/TraversalUtil.java

            final String[] path = referenceClass.getName().split("\\.");
            String baseUrl = url.toExternalForm();
            for (final String element : path) {
                final int pos = baseUrl.lastIndexOf('/');
                baseUrl = baseUrl.substring(0, pos);
            }
            return getTraverser(URLUtil.create(baseUrl + '/'), null, null);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DfsImpl.java

                        }
                        break;
                    }
    
                    // walk up trying to find a match, do not go up to the root
                    int nextSep = link.lastIndexOf('\\');
                    if ( nextSep > 0 ) {
                        link = link.substring(0, nextSep);
                    }
                    else {
                        if ( log.isTraceEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return delegate().indexOf(o);
          }
        }
    
        @Override
        public int lastIndexOf(@CheckForNull Object o) {
          synchronized (mutex) {
            return delegate().lastIndexOf(o);
          }
        }
    
        @Override
        public ListIterator<E> listIterator() {
          return delegate().listIterator(); // manually synchronized
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return delegate().indexOf(o);
          }
        }
    
        @Override
        public int lastIndexOf(@CheckForNull Object o) {
          synchronized (mutex) {
            return delegate().lastIndexOf(o);
          }
        }
    
        @Override
        public ListIterator<E> listIterator() {
          return delegate().listIterator(); // manually synchronized
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ViewHelper.java

            if (charset == null) {
                charset = Constants.UTF_8;
            }
            final String name;
            final String url = responseData.getUrl();
            final int pos = url.lastIndexOf('/');
            try {
                if (pos >= 0 && pos + 1 < url.length()) {
                    name = URLDecoder.decode(url.substring(pos + 1), charset);
                } else {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/InetAddresses.java

          return null;
        }
        return rawBytes.array();
      }
    
      @CheckForNull
      private static String convertDottedQuadToHex(String ipString) {
        int lastColon = ipString.lastIndexOf(':');
        String initialPart = ipString.substring(0, lastColon + 1);
        String dottedQuad = ipString.substring(lastColon + 1);
        byte[] quad = textToNumericFormatV4(dottedQuad);
        if (quad == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/InetAddresses.java

          return null;
        }
        return rawBytes.array();
      }
    
      @CheckForNull
      private static String convertDottedQuadToHex(String ipString) {
        int lastColon = ipString.lastIndexOf(':');
        String initialPart = ipString.substring(0, lastColon + 1);
        String dottedQuad = ipString.substring(lastColon + 1);
        byte[] quad = textToNumericFormatV4(dottedQuad);
        if (quad == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top