Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for abcdabcy (0.28 sec)

  1. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        CharSource source = CharSource.wrap("abcd");
        Iterable<CharSource> cycle = Iterables.cycle(ImmutableList.of(source));
        CharSource concatenated = CharSource.concat(cycle);
    
        String expected = "abcdabcd";
    
        // read the first 8 chars manually, since there's no equivalent to ByteSource.slice
        // TODO(cgdecker): Add CharSource.slice?
        StringBuilder builder = new StringBuilder();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharSourceTest.java

        CharSource source = CharSource.wrap("abcd");
        Iterable<CharSource> cycle = Iterables.cycle(ImmutableList.of(source));
        CharSource concatenated = CharSource.concat(cycle);
    
        String expected = "abcdabcd";
    
        // read the first 8 chars manually, since there's no equivalent to ByteSource.slice
        // TODO(cgdecker): Add CharSource.slice?
        StringBuilder builder = new StringBuilder();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/StringUtilTest.java

         */
        @Test
        public void testSubstringFromLast() throws Exception {
            assertEquals("ab", StringUtil.substringFromLast("abc", "c"));
            assertEquals("abcab", StringUtil.substringFromLast("abcabc", "c"));
            assertEquals("abc", StringUtil.substringFromLast("abc", ""));
            assertEquals("abc", StringUtil.substringFromLast("abc", null));
            assertEquals("abc", StringUtil.substringFromLast("abc", "dddd"));
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top