Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for toUpperCase (0.12 sec)

  1. android/guava-tests/test/com/google/common/base/AsciiTest.java

        assertEquals("foobar", Ascii.toLowerCase("fOobaR"));
      }
    
      public void testToUpperCase() {
        assertEquals(UPPER, Ascii.toUpperCase(LOWER));
        assertSame(UPPER, Ascii.toUpperCase(UPPER));
        assertEquals(IGNORED, Ascii.toUpperCase(IGNORED));
        assertEquals("FOOBAR", Ascii.toUpperCase("FoOBAr"));
      }
    
      public void testCharsIgnored() {
        for (char c : IGNORED.toCharArray()) {
          String str = String.valueOf(c);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      }
    
      @Benchmark
      int asciiStringToUpperCase(int reps) {
        String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Ascii.toUpperCase(string).length();
        }
        return dummy;
      }
    
      @Benchmark
      int asciiCharSequenceToUpperCase(int reps) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      }
    
      @Benchmark
      int asciiStringToUpperCase(int reps) {
        String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Ascii.toUpperCase(string).length();
        }
        return dummy;
      }
    
      @Benchmark
      int asciiCharSequenceToUpperCase(int reps) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                            this.accountName = a.getUsername();
                            if ( this.isUseUnicode() )
                                this.accountName = this.accountName.toUpperCase();
                            this.primaryDomain = a.getUserDomain() != null ? a.getUserDomain().toUpperCase() : "?";
                        }
                        else {
                            this.accountName = "";
                            this.primaryDomain = "";
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 17 10:20:23 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                        writeString( password, lmHash, 0 );
                    }
                    accountName = auth.username;
                    if (useUnicode)
                        accountName = accountName.toUpperCase();
                    primaryDomain = auth.domain.toUpperCase();
                } else if (cred instanceof byte[]) {
                    blob = (byte[])cred;
                } else {
                    throw new SmbException("Unsupported credential type");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CaseFormat.java

        @Override
        String convert(CaseFormat format, String s) {
          if (format == LOWER_UNDERSCORE) {
            return s.replace('-', '_');
          }
          if (format == UPPER_UNDERSCORE) {
            return Ascii.toUpperCase(s.replace('-', '_'));
          }
          return super.convert(format, s);
        }
      },
    
      /** C++ variable naming convention, e.g., "lower_underscore". */
      LOWER_UNDERSCORE(CharMatcher.is('_'), "_") {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                NtlmPasswordAuthenticator ntlm = (NtlmPasswordAuthenticator) obj;
                String domA = ntlm.getUserDomain() != null ? ntlm.getUserDomain().toUpperCase() : null;
                String domB = this.getUserDomain() != null ? this.getUserDomain().toUpperCase() : null;
                return ntlm.type == this.type && Objects.equals(domA, domB) && ntlm.getUsername().equalsIgnoreCase(this.getUsername())
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/DfsTest.java

            String path = link != null ? link : dfsSharePath + relative;
    
            if ( upper ) {
                dfsShare = dfsShare.toUpperCase(Locale.ROOT);
                path = path.toUpperCase(Locale.ROOT);
                target = target.toUpperCase(Locale.ROOT);
            }
    
            log.debug("Resolving \\" + target + "\\" + dfsShare + path);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 13.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            if( obj instanceof NtlmPasswordAuthentication ) {
                NtlmPasswordAuthentication ntlm = (NtlmPasswordAuthentication)obj;
                if( ntlm.domain.toUpperCase().equals( domain.toUpperCase() ) &&
                            ntlm.username.toUpperCase().equals( username.toUpperCase() )) {
                    if( hashesExternal && ntlm.hashesExternal ) {
                        return Arrays.equals( ansiHash, ntlm.ansiHash ) &&
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/Lmhosts.java

        void populate ( Reader r, CIFSContext tc ) throws IOException {
            String line;
            BufferedReader br = new BufferedReader(r);
    
            while ( ( line = br.readLine() ) != null ) {
                line = line.toUpperCase().trim();
                if ( line.length() == 0 ) {
                    continue;
                }
                else if ( line.charAt(0) == '#' ) {
                    if ( line.startsWith("#INCLUDE ") ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.1K bytes
    - Viewed (0)
Back to top