Changeset 101926 in vbox for trunk/src/libs/xpcom18a4/xpcom
- Timestamp:
- Nov 7, 2023 10:30:05 AM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4/xpcom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/build/nsStringAPI.cpp
r1 r101926 228 228 CopyUTF8toUTF16(aSrc, aDest); 229 229 break; 230 case NS_CSTRING_ENCODING_NATIVE_FILESYSTEM:231 NS_CopyNativeToUnicode(aSrc, aDest);232 break;233 230 default: 234 231 return NS_ERROR_NOT_IMPLEMENTED; … … 251 248 CopyUTF16toUTF8(aSrc, aDest); 252 249 break; 253 case NS_CSTRING_ENCODING_NATIVE_FILESYSTEM:254 NS_CopyUnicodeToNative(aSrc, aDest);255 break;256 250 default: 257 251 return NS_ERROR_NOT_IMPLEMENTED; -
trunk/src/libs/xpcom18a4/xpcom/string/public/nsStringAPI.h
r11551 r101926 590 590 591 591 /* Conversion between UTF-8 and UTF-16 is non-lossy. */ 592 NS_CSTRING_ENCODING_UTF8 = 1, 593 594 /* Conversion from UTF-16 to the native filesystem charset may result in a 595 * loss of information. No attempt is made to protect against data loss in 596 * this case. The native filesystem charset applies to strings passed to 597 * the "Native" method variants on nsIFile and nsILocalFile. */ 598 NS_CSTRING_ENCODING_NATIVE_FILESYSTEM = 2 592 NS_CSTRING_ENCODING_UTF8 = 1 599 593 }; 600 594
Note:
See TracChangeset
for help on using the changeset viewer.