Advertisement
rudolfovich

va_list to std::string header

Aug 17th, 2014
674
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2. #include <cstdarg>
  3. #include <string>
  4.  
  5. using ::std::string;
  6.  
  7. ///
  8. /// \breif Format message
  9. /// \param dst String to store formatted message
  10. /// \param format Format of message
  11. /// \param ap Variable argument list
  12. ///
  13. void toString(string &dst, const char *format, va_list ap) throw();
  14. ///
  15. /// \breif Format message
  16. /// \param dst String to store formatted message
  17. /// \param format Format of message
  18. /// \param ... Variable argument list
  19. ///
  20. void toString(string &dst, const char *format, ...) throw();
  21. ///
  22. /// \breif Format message
  23. /// \param format Format of message
  24. /// \param ... Variable argument list
  25. ///
  26. string toString(const char *format, ...) throw();
  27.  
  28. ///
  29. /// \breif Format message
  30. /// \param format Format of message
  31. /// \param ap Variable argument list
  32. ///
  33. string toString(const char *format, va_list ap) throw();
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement