VirtualBox

Changeset 104773 in vbox for trunk/include


Ignore:
Timestamp:
May 24, 2024 12:56:32 PM (8 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Make ShClUtf16LFLenUtf8 to provide proper length in characters for LF -> CRLF conversion, bugref:10694.

Also rename the function into ShClUtf16CalcNormalizedEolToCRLFLength and update documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/clipboard-helper.h

    r101878 r104773  
    6262
    6363/**
    64  * Returns the length (in UTF-8 characters) of an UTF-16 string with LF EOL.
     64 * Returns calculated length (in UTF-8 characters) of normalized UTF-16 string with CRLF EOL.
     65 *
     66 * This function should be used in order to calculate number of UTF-8 characters
     67 * in normalized UTF-16. Normalized string is expected to have LF characters replaced
     68 * with CRLF sequences.
    6569 *
    6670 * @returns VBox status code.
     
    7074 *                              Does not include terminator.
    7175 */
    72 int ShClUtf16LFLenUtf8(PCRTUTF16 pcwszSrc, size_t cwcSrc, size_t *pchLen);
     76int ShClUtf16CalcNormalizedEolToCRLFLength(PCRTUTF16 pcwszSrc, size_t cwcSrc, size_t *pchLen);
    7377
    7478/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette