std::string line = " hello world ";
boost::algorithm::trim(line);
Celebrating Another Year of #WeArePlay
4 weeks ago
In my humble opinion ....
std::string line = " hello world ";
boost::algorithm::trim(line);
bool is_little_endian()
{
unsigned short int word = 1;
unsigned short int mask = 0x00;
// get the most significant bytes of the word
unsigned short int msb = word>>4;
// the platform is little endian if the most significant bytes
// contains zero
if ( (msb | mask) == 0 )
{
return true;
}
return false;
}
boost::this_thread::sleep(boost::posix_time::milliseconds(200));
echo "change my case" | tr '[a-z]' '[A-Z]'
sed 's/^//g'
echo "bar" | sed 's/^/foo-/g'