• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

C/C++ 64-bit wstring unicode console example

Started by Patrice Terrier, February 18, 2013, 05:26:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

James C. Fuller

Patrice,
  Looking into this further it looks like I had a lot more done than I realized. This is my ltrim for std::string

std::string ltrim(std::string str,std::string ctrim =" ")
{
str.erase(0, str.find_first_not_of(ctrim));
return str;
}


If you are interested I'll post the rest of the ones I converted?

James

Patrice Terrier

James,

About the MID$ code you posted, it doesn't do the same than mine and PB.

MID$("1234", 5, 5) should return an empty string, not "1234".
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

James C. Fuller


Try it now I edited the post.

James


Quote from: Patrice Terrier on March 10, 2013, 04:54:44 PM
James,

About the MID$ code you posted, it doesn't do the same than mine and PB.

MID$("1234", 5, 5) should return an empty string, not "1234".
[/quote