]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/utils/ustring.cpp
* all: new skin text variable "$B" to get the stream bitrate
[vlc] / modules / gui / skins2 / utils / ustring.cpp
index 8689f9377e92123957aa3888ecad2e44d7d4f552..5513fe4344d089f8f98e097c98bd4c2722d15683 100644 (file)
@@ -23,6 +23,7 @@
  *****************************************************************************/
 
 #include <string.h>
+#include <sstream>
 #include "ustring.hpp"
 
 
@@ -328,3 +329,12 @@ UString UString::substr( uint32_t position, uint32_t n) const
 
     return tmp;
 }
+
+
+UString UString::fromInt( intf_thread_t *pIntf, int number)
+{
+    stringstream ss;
+    ss << number;
+    return UString( pIntf, ss.str().c_str() );
+}
+