miscellaneous/motionbuilder_shelf/utils.cpp
#include "StdAfx.h"
#include <sstream>
#define BUFF_SIZE 4096
char text [BUFF_SIZE] ={ 0, } ;
va_start (ap, msg) ;
vsnprintf (text, BUFF_SIZE, msg.c_str (), ap) ;
va_end (ap) ;
}
std::vector<std::string> tokenize (
std::string &st,
char delimiter) {
std::vector<std::string> strings ;
std::istringstream f (st) ;
while ( std::getline (f, s, delimiter) )
strings.push_back (s) ;
return (strings) ;
}