WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Source
  4. string.inc
Mission NodeSDK 6.2Pawnstring.inc

string.inc

SDK Source File: string.inc

Source / SDK 6.2 / Pawn / Core

string.inc

string.inc
CPP
1/* String functions
2 *
3 * (c) Copyright 2005-2012, ITB CompuPhase
4 * This file is provided as is (no warranties).
5 */
6#pragma library String
7
8native strlen(const string[]);
9native strpack(dest[], const source[], maxlength=sizeof dest);
10native strunpack(dest[], const source[], maxlength=sizeof dest);
11native strcopy(dest[], const source[], maxlength=sizeof dest);
12native strcat(dest[], const source[], maxlength=sizeof dest);
13
14native strmid(dest[], const source[], start=0, end=cellmax, maxlength=sizeof dest);
15native bool: strins(string[], const substr[], index, maxlength=sizeof string);
16native bool: strdel(string[], start, end);
17
18native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);
19native strfind(const string[], const sub[], bool:ignorecase=false, index=0);
20
21native strval(const string[], index=0);
22native valstr(dest[], value, bool:pack=true);
23native bool: ispacked(const string[]);
24
25native strformat(dest[], size=sizeof dest, bool:pack=true, const format[], {Fixed,Float,_}:...);
26
27native uudecode(dest[], const source[], maxlength=sizeof dest);
28native uuencode(dest[], const source[], numbytes, maxlength=sizeof dest);
29native memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest);
30
31stock bool: strequal(const string1[], const string2[], bool:ignorecase=false, length=cellmax)
32 return strcmp(string1, string2, ignorecase, length) == 0;
33
34
35
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

fixed.inc
Source / SDK 6.2 / Pawn / Core
graphics.inc
Source / SDK 6.2 / Pawn / Core
leaderboard.inc
Source / SDK 6.2 / Pawn / Core
log.inc
Source / SDK 6.2 / Pawn / Core
Previous Node
splashscreen.inc
Source / SDK 6.2 / Pawn / Core
Next Node
topology.inc
Source / SDK 6.2 / Pawn / Core