VirtualBox

Changeset 36425 in vbox


Ignore:
Timestamp:
Mar 25, 2011 12:33:12 PM (14 years ago)
Author:
vboxsync
Message:

MiniString::utf8Length -> MiniString::uniLength.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/ministring.h

    r35567 r36425  
    198198
    199199    /**
    200      * String length in UTF-8 codepoints.
    201      *
    202      * As opposed to length(), which returns the length in bytes, this counts the number
    203      * of UTF-8 codepoints. This is *not* cached so calling this is expensive.
     200     * String length in unicode codepoints.
     201     *
     202     * As opposed to length(), which returns the length in bytes, this counts
     203     * the number of unicode codepoints.  This is *not* cached so calling this
     204     * is expensive.
    204205     *
    205206     * @returns Number of codepoints in the member string.
    206207     */
    207     size_t utf8length() const
     208    size_t uniLength() const
    208209    {
    209210        return m_psz ? RTStrUniLen(m_psz) : 0;
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