Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
Utils.h File Reference
#include "../Types.h"
#include <string>
#include <locale>
#include <sstream>
#include <pluginterfaces/base/ftypes.h>
#include <base/source/fstring.h>
#include <pongasoft/Utils/Metaprogramming.h>

Go to the source code of this file.

Namespaces

namespace  pongasoft
namespace  pongasoft::VST
namespace  pongasoft::VST::VstUtils

Functions

template<typename T, typename... Args>
std::shared_ptr< T > make_sfo (Args &&...iArgs)
 The VST SDK uses the concept of FObject (which are self contained reference counted objects) but require to be manually managed (by calling addRef and release).
template<typename... Args>
VstString16 printf16 (VstString16 const &iFormat, Args &&...iArgs)
 Equivalent to printf but for VstString16.
std::string toUT8String (VstString16 const &iString)
 Converts a VstString16 to a regular std::string that is properly utf-8 encoded.
template<typename T>
std::string toUTF8String (T const &iValue, Steinberg::int32 iPrecision)
 This generic function will determine (at compilation time) whether T can be written to an ostream and if that is the case, will use this information to build the string.