Old/mp3_InfoManager/utils.cpp
// converts a Unicode string into ASCII
converts a Unicode string into ASCII
converts a Unicode string into ASCII
dami::String ucstombs(dami::String data)
{
  size_t size = data.size() / 2;
  dami::String ascii(size, '\0');
  for (size_t i = 0; i < size; ++i)
  {
    ascii[i] = toascii(data[i*2+1]);
  }
  return ascii;
}
dami :: String ucstombs ( dami :: String data ) { size_t size = data . size ( ) / 2 ; dami :: String ascii ( size , ' \0 ' ) ; for ( size_t i = 0 ; i < size ; ++ i ) { ascii [ i ] = toascii ( data [ i * 2 + 1 ] ) ; } return ascii ; }
converts a Unicode string into ASCII
converts a Unicode string into ASCII