Replacing characters inside a string
#2

PHP код:
new LetterList[] =
{
    
'A''B''C''D''E''F''G''H''I''J''K''L''M''N''O''P''Q''R''S''T''U''V''W''X''Y''Z'
};
stock strReplaceChar(string[]) {
    for(new 
i=0j=strlen(string); ji++) {
        if(
string[i] == ' ') continue; //just to avoid cutting down the spaces
        
string[i] = LetterList[random(sizeof(LetterList))];
    }
    return 
string;

Is that what you wanted?
Reply


Messages In This Thread
Replacing characters inside a string - by TwinkiDaBoss - 16.11.2016, 00:08
Re: Replacing characters inside a string - by SickAttack - 16.11.2016, 00:20
Re: Replacing characters inside a string - by TwinkiDaBoss - 16.11.2016, 00:32
Re: Replacing characters inside a string - by SickAttack - 16.11.2016, 00:43
Re: Replacing characters inside a string - by TwinkiDaBoss - 16.11.2016, 00:55
Re: Replacing characters inside a string - by SickAttack - 16.11.2016, 00:59
Re: Replacing characters inside a string - by TwinkiDaBoss - 16.11.2016, 01:03
Re: Replacing characters inside a string - by Vince - 16.11.2016, 05:24

Forum Jump:


Users browsing this thread: 2 Guest(s)