[Tutorial] String Formatting
#19

I will add-on to this.

STRING MANIPULATION
There are many functions to manipulate strings, and also format them. Here's a list:

pawn Code:
bool: ispacked(const string[])

memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest)

strcat(dest[], const source[], maxlength=sizeof dest)

strcmp(const string1[], const string2[],bool: ignorecase=false, length=cellmax)

strcopy(dest[], const source[], maxlength=sizeof dest)

bool: strdel(string[], start, end)

bool: strequal(const string1[], const string2[],bool: ignorecase=false,length=cellmax)

strfind(const string[], const sub[],bool: ignorecase=false, index=0)

strformat(dest[], size=sizeof dest, bool: pack=false, const format[], . . . )

bool: strins(string[], const substr[], index,maxlength=sizeof string)

strlen(const string[])

strmid(dest[], const source[],start=0, end=cellmax,maxlength=sizeof dest)

strpack(dest[], const source[],maxlength=sizeof dest)

strunpack(dest[], const source[],maxlength=sizeof dest)

strval(const string[], index=0)

uudecode(dest[], const source[], maxlength=sizeof dest)

uuencode(dest[], const source[], numbytes, maxlength=sizeof dest)

valstr(dest[], value, bool: pack=false)
FORMATTING
%s - string

%d - decimal, can be used as an integer also (%i)

%f - FLOAT module.

%i - integer, can be used with %d
Reply


Messages In This Thread
String Formatting - by krogsgaard20 - 30.06.2011, 22:55
Re: String Formatting - by grand.Theft.Otto - 01.07.2011, 03:29
Re: String Formatting - by dr.pepper - 01.07.2011, 03:34
Re: String Formatting - by krogsgaard20 - 01.07.2011, 09:34
Re: String Formatting - by Toreno - 01.07.2011, 10:47
Re: String Formatting - by iPLEOMAX - 01.07.2011, 11:05
Re: String Formatting - by Lorenc_ - 01.07.2011, 11:08
Re: String Formatting - by Vince - 01.07.2011, 11:24
Re: String Formatting - by Macluawn - 01.07.2011, 11:25
Re: String Formatting - by krogsgaard20 - 01.07.2011, 15:45
Re: String Formatting - by Mean - 03.07.2011, 17:02
Re: String Formatting - by Calgon - 03.07.2011, 17:03
Re: String Formatting - by Mean - 03.07.2011, 17:14
Re: String Formatting - by [03]Garsino - 03.07.2011, 17:49
Re: String Formatting - by sim_sima - 03.07.2011, 22:22
Re: String Formatting - by [03]Garsino - 03.07.2011, 22:34
Re: String Formatting - by sim_sima - 04.07.2011, 11:15
Re: String Formatting - by cessil - 05.07.2011, 02:35
Re: String Formatting - by SchurmanCQC - 05.07.2011, 02:50
Re: String Formatting - by krogsgaard20 - 05.07.2011, 13:23
Re: String Formatting - by sim_sima - 06.08.2011, 12:32
Re: String Formatting - by sim_sima - 20.10.2011, 20:51
Re: String Formatting - by krogsgaard20 - 08.01.2012, 15:52
Re: String Formatting - by Jessyy - 21.07.2012, 18:49
Re: String Formatting - by cazanova - 26.07.2012, 04:57
Re: String Formatting - by Amit_B - 26.07.2012, 08:33
Re: String Formatting - by Vince - 26.07.2012, 09:23
Re: String Formatting - by Kaperstone - 26.07.2012, 09:40
Re: String Formatting - by Amit_B - 26.07.2012, 10:22
Re: String Formatting - by Madsen - 31.03.2013, 21:54
Re: String Formatting - by ZcvDev - 01.02.2015, 03:46
Re: String Formatting - by JasonRiggs - 27.01.2017, 01:35
Re: String Formatting - by BlackbirdXd - 15.02.2017, 13:19
Re: String Formatting - by RoW001 - 20.03.2017, 17:11
Re: String Formatting - by Eoussama - 15.12.2017, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)