Re: [OFF] Convert int to ustring



Nickolai Dobrynin wrote:
Are you sure this solution is adequate speedwise?  Unless there has been an
improvement recently, the stringstream support seems fairly slow, on gcc
at least.

Would it make more sense to use sprintf instead?


	Ya.
	I used sprintf:

      sprintf(cPort, "%x", iDDR[i1]);
      sPort += "   0x";
      sPort += Glib::ustring(cPort);
      sPort += "\n";

	Where cPort is char with 2 elements and iDDR is an int matrix.

thanks.
--
jupercio juliano

Software Livre:
Socialmente justo.
Economicamente viável.
Tecnologicamente sustentável.

	

	
		
_______________________________________________________ Promoção Yahoo! Acesso Grátis: a cada hora navegada você
acumula cupons e concorre a mais de 500 prêmios! Participe!
http://yahoo.fbiz.com.br/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]