Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 151 for endsWith (0.14 sec)

  1. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        abstract Optional<String> chop(String str);
    
        static Chopper suffix(String suffix) {
          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              if (str.endsWith(suffix)) {
                return Optional.of(str.substring(0, str.length() - suffix.length()));
              } else {
                return Optional.absent();
              }
            }
          };
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/ClassPath.java

        private final File file;
        private final String resourceName;
    
        final ClassLoader loader;
    
        static ResourceInfo of(File file, String resourceName, ClassLoader loader) {
          if (resourceName.endsWith(CLASS_FILE_NAME_EXTENSION)) {
            return new ClassInfo(file, resourceName, loader);
          } else {
            return new ResourceInfo(file, resourceName, loader);
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

        // Normalize:
        // * ASCII characters to lowercase
        // * All dot-like characters to '.'
        // * Strip trailing '.'
    
        name = Ascii.toLowerCase(DOTS_MATCHER.replaceFrom(name, '.'));
    
        if (name.endsWith(".")) {
          name = name.substring(0, name.length() - 1);
        }
    
        checkArgument(name.length() <= MAX_LENGTH, "Domain name too long: '%s':", name);
        this.name = name;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/StringUtil.java

            if (text == null) {
                return null;
            }
            if (suffix == null) {
                return text;
            }
            if (text.endsWith(suffix)) {
                return text.substring(0, text.length() - suffix.length());
            }
            return text;
        }
    
        /**
         * プレフィックスを削ります。
         *
         * @param text
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

            case Constants.FESEN_TYPE_AWS:
                // nothing
                break;
            default:
                for (final String path : getDictionaryPaths()) {
                    if (path.endsWith("mapping.txt")) {
                        logger.debug("Updating {}", path);
                        final String content = getDictionaryContent(path);
                        if (content != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 54K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                setting.accept(true);
            }
        }
    
        int calculateDegreeOfConcurrency(String threadConfiguration) {
            try {
                if (threadConfiguration.endsWith("C")) {
                    String str = threadConfiguration.substring(0, threadConfiguration.length() - 1);
                    float coreMultiplier = Float.parseFloat(str);
    
                    if (coreMultiplier <= 0.0f) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  7. fastapi/routing.py

                                    if message.get_content_maintype() == "application":
                                        subtype = message.get_content_subtype()
                                        if subtype == "json" or subtype.endswith("+json"):
                                            json_body = await request.json()
                                if json_body != Undefined:
                                    body = json_body
                                else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NbtAddress.java

                    }
                    IP = ( IP << 8 ) + b;
                    hitDots++;
                }
                if( hitDots != 4 || host.endsWith( "." )) {
                    return (NbtAddress)doNameQuery( new Name( host, type, scope ), svr );
                }
                return new NbtAddress( UNKNOWN_NAME, IP, false, B_NODE );
            }
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 30.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                        }
                    }
                }
            }
        }
    
        protected int calculateDegreeOfConcurrency(String threadConfiguration) {
            try {
                if (threadConfiguration.endsWith("C")) {
                    String str = threadConfiguration.substring(0, threadConfiguration.length() - 1);
                    float coreMultiplier = Float.parseFloat(str);
    
                    if (coreMultiplier <= 0.0f) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFile.java

                    dunc = "\\" + dr.path + dunc;
    
                unc = dunc;
                if (request != null &&
                            request.path != null &&
                            request.path.endsWith("\\") &&
                            dunc.endsWith("\\") == false) {
                    dunc += "\\";
                }
                if (request != null) {
                    request.path = dunc;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
Back to top