VirtualBox

Changeset 33675 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Nov 2, 2010 9:38:52 AM (14 years ago)
Author:
vboxsync
Message:

Main;Runtime: move 32bit string to int converter

File:
1 edited

Legend:

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

    r33615 r33675  
    649649
    650650    /**
     651     * Attempts to convert the member string into a 32-bit integer.
     652     *
     653     * @returns 32-bit unsigned number on success.
     654     * @returns 0 on failure.
     655     */
     656    int toInt32() const
     657    {
     658        return RTStrToInt32(m_psz);
     659    }
     660
     661    /**
     662     * Attempts to convert the member string into an unsigned 32-bit integer.
     663     *
     664     * @returns 32-bit unsigned number on success.
     665     * @returns 0 on failure.
     666     */
     667    int toUInt32() const
     668    {
     669        return RTStrToUInt32(m_psz);
     670    }
     671
     672    /**
    651673     * Attempts to convert the member string into an 64-bit integer.
    652674     *
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