Commit: more ut_string_sprintf goodness

From: Dom Lachowicz (doml@appligent.com)
Date: Fri Feb 22 2002 - 21:23:30 GMT

  • Next message: Dom Lachowicz: "Upload: Win32 Imp/Exp Plugins, URL Plugins, AIKSAURUS WIN32 PLUGIN!!!"

    3 more methods! Now with more usefulness and pseudo-documentation!

    Using this already to remove sprintfs from import/export code as we
    speak.

    Dom

    /*!
     * Fill \inStr with the results of evaulating the printf formatted
    string
     * \inFormat and return the reference to \inStr
     */
    ABI_EXPORT UT_String& UT_String_sprintf(UT_String & inStr, const char *
    inFormat, ...);
    ABI_EXPORT UT_String& UT_String_vprintf (UT_String & inStr, const char
    *format,
                                       va_list args1);
    ABI_EXPORT UT_String& UT_String_vprintf (UT_String & inStr, const
    UT_String & format,
                                             va_list args1);

    /*!
     * Returns a new UT_String object with the results of evaluating the
    printf
     * formatted string \inFormat
     */
    ABI_EXPORT UT_String UT_String_sprintf(const char * inFormat, ...);
    ABI_EXPORT UT_String UT_String_vprintf(const char * inFormat, va_list
    args1);
    ABI_EXPORT UT_String UT_String_vprintf(const UT_String & inFormat,
    va_list args1);

    Checking in ut_string_class.cpp;
    /cvsroot/abi/src/af/util/xp/ut_string_class.cpp,v <--
    ut_string_class.cpp
    new revision: 1.16; previous revision: 1.15
    done
    Checking in ut_string_class.h;
    /cvsroot/abi/src/af/util/xp/ut_string_class.h,v <-- ut_string_class.h
    new revision: 1.12; previous revision: 1.11
    done





    This archive was generated by hypermail 2.1.4 : Fri Feb 22 2002 - 16:30:07 GMT