Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 318 for unicode (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                // When even alignment (offset 2), Unicode string starts immediately
                assertTrue(bytesWritten >= 8); // "Test" in Unicode + null terminator
                // First byte should be 'T' in UTF-16LE
                assertEquals(0x54, buffer[2] & 0xFF);
            }
    
            @Test
            @DisplayName("Test read string with odd Unicode alignment")
            void testReadStringUnicodeAlignment() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/rpcTest.java

            }
        }
    
        @Nested
        @DisplayName("Unicode String Tests")
        class UnicodeStringTests {
    
            @Test
            @DisplayName("Should encode unicode string with null buffer correctly")
            void testUnicodeStringEncodeNullBuffer() throws NdrException {
                // Given: A unicode string with null buffer
                rpc.unicode_string unicodeString = new rpc.unicode_string();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            assertEquals(expectedNextEntryOffset, fileBothDirectoryInfo.getNextEntryOffset());
        }
    
        @Test
        @DisplayName("Test decode with Unicode filename")
        void testDecodeWithUnicodeFilename() throws SMBProtocolDecodingException {
            // Prepare test data with Unicode filename
            String expectedFilename = "日本語ファイル.txt";
            byte[] buffer = createValidBuffer(expectedFilename, "~1.TXT", true);
    
            // Decode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  4. src/bytes/example_test.go

    }
    
    func ExampleTrimFunc() {
    	fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsLetter)))
    	fmt.Println(string(bytes.TrimFunc([]byte("\"go-gopher!\""), unicode.IsLetter)))
    	fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsPunct)))
    	fmt.Println(string(bytes.TrimFunc([]byte("1234go-gopher!567"), unicode.IsNumber)))
    	// Output:
    	// -gopher!
    	// "go-gopher!"
    	// go-gopher
    	// go-gopher!
    }
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 12 16:07:54 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. api/go1.7.txt

    pkg testing, type InternalExample struct, Unordered bool
    pkg unicode, const Version = "9.0.0"
    pkg unicode, var Adlam *RangeTable
    pkg unicode, var Bhaiksuki *RangeTable
    pkg unicode, var Marchen *RangeTable
    pkg unicode, var Newa *RangeTable
    pkg unicode, var Osage *RangeTable
    pkg unicode, var Prepended_Concatenation_Mark *RangeTable
    pkg unicode, var Sentence_Terminal *RangeTable
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jun 28 15:08:11 UTC 2016
    - 13.6K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    			}
    			b[i] = c
    		}
    		return b
    	}
    	return Map(unicode.ToLower, s)
    }
    
    // ToTitle treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their title case.
    func ToTitle(s []byte) []byte { return Map(unicode.ToTitle, s) }
    
    // ToUpperSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * @param dstIndex the starting offset in the buffer
         * @param unicode true to use Unicode encoding, false for OEM encoding
         * @return the number of bytes written
         */
        protected int writeString(final String str, final byte[] dst, int dstIndex, final boolean unicode) {
            final int start = dstIndex;
            if (unicode) {
                // Unicode requires word alignment
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertEquals((byte) 0x04, dst[secondBufferFormatIndex]);
        }
    
        /**
         * Test writeBytesWireFormat with Unicode encoding
         */
        @Test
        @DisplayName("Test writeBytesWireFormat writes file names correctly in Unicode")
        public void testWriteBytesWireFormatUnicode() throws Exception {
            // Given
            String oldFileName = "oldFile.txt";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. api/go1.4.txt

    pkg unicode, var Linear_A *RangeTable
    pkg unicode, var Mahajani *RangeTable
    pkg unicode, var Manichaean *RangeTable
    pkg unicode, var Mende_Kikakui *RangeTable
    pkg unicode, var Modi *RangeTable
    pkg unicode, var Mro *RangeTable
    pkg unicode, var Nabataean *RangeTable
    pkg unicode, var Old_North_Arabian *RangeTable
    pkg unicode, var Old_Permic *RangeTable
    pkg unicode, var Pahawh_Hmong *RangeTable
    pkg unicode, var Palmyrene *RangeTable
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Dec 12 03:01:01 UTC 2014
    - 34K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Receive buffer size in bytes */
        int RCV_BUF_SIZE = Config.getInt("jcifs.smb1.smb.client.rcv_buf_size", DEFAULT_RCV_BUF_SIZE);
        /** Whether to use Unicode strings */
        boolean USE_UNICODE = Config.getBoolean("jcifs.smb1.smb.client.useUnicode", true);
        /** Whether to force Unicode usage */
        boolean FORCE_UNICODE = Config.getBoolean("jcifs.smb1.smb.client.useUnicode", false);
        /** Whether to use NT status codes */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top