• Adam Simpkins's avatar
    add stringVPrintf() and stringVAppendf() · 0606460a
    Adam Simpkins authored
    Summary:
    This adds versions of stringPrintf() and stringAppendf() that accept
    va_list arguments.
    
    This also fixes the existing stringPrintf() functions to properly call
    va_end() even when an exception is thrown in stringPrintfImpl().
    
    Test Plan: Included new unit tests for stringVPrintf() and stringVAppendf().
    
    Reviewed By: davejwatson@fb.com
    
    Subscribers: trunkagent, doug, net-systems@, exa, njormrod
    
    FB internal diff: D1583675
    0606460a
String.cpp 15.9 KB