[fixed]stringw replace bug

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

[fixed]stringw replace bug

Post by zerochen »

it doesnt work only if the string replaceWith (second argument) is greater then the toReplace string.

here is a small test case

Code: Select all

    
core::stringw test = L"no";
test = test.replace(L"no", L"yes");
 
if(test.equals_ignore_case(L"no"))
     printf("it doesnt work:(\n");
 
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: stringw replace bug

Post by CuteAlien »

Thanks, it's now fixed in the newest svn trunk version (r4230).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply