VirtualBox

Changeset 33675 in vbox


Ignore:
Timestamp:
Nov 2, 2010 9:38:52 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67297
Message:

Main;Runtime: move 32bit string to int converter

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r33621 r33675  
    525525
    526526    /**
    527      * Attempts to convert the member string into a 32-bit integer.
    528      *
    529      * @returns 32-bit unsigned number on success.
    530      * @returns 0 on failure.
    531      */
    532     int toInt32() const
    533     {
    534         return RTStrToInt32(m_psz);
    535     }
    536 
    537     /**
    538      * Attempts to convert the member string into an unsigned 32-bit integer.
    539      *
    540      * @returns 32-bit unsigned number on success.
    541      * @returns 0 on failure.
    542      */
    543     int toUInt32() const
    544     {
    545         return RTStrToUInt32(m_psz);
    546     }
    547 
    548     /**
    549527     *  Static immutable empty-string object. May be used for comparison purposes.
    550528     */
  • 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.

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