Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for canEncode (0.05 seconds)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java

                assertNotNull(result, "Icon result should not be null for " + icon);
    
                // Result should be consistent with charset's canEncode capability
                boolean canEncode = StandardCharsets.ISO_8859_1.newEncoder().canEncode(icon.getUnicodeChar());
                String expected = canEncode ? String.valueOf(icon.getUnicodeChar()) : icon.getAsciiFallback();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/ConsoleIcon.java

         * @return the Unicode character if supported, otherwise the ASCII fallback
         */
        public String getIcon(Terminal terminal) {
            Charset charset = getTerminalCharset(terminal);
            return charset.newEncoder().canEncode(unicodeChar) ? String.valueOf(unicodeChar) : asciiFallback;
        }
    
        /**
         * Gets the charset used by the terminal for output.
         * Falls back to the system default charset if terminal charset is not available.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. cmd/erasure-decode.go

    	// to try reading the next disk.
    	for readTrigger := range readTriggerCh {
    		newBufLK.RLock()
    		canDecode := p.canDecode(newBuf)
    		newBufLK.RUnlock()
    		if canDecode {
    			break
    		}
    		if readerIndex == len(p.readers) {
    			break
    		}
    		if !readTrigger {
    			continue
    		}
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 29 01:40:52 GMT 2024
    - 9.5K bytes
    - Click Count (0)
Back to Top