string.inc
string.inc
CPP1/* String functions2 *3 * (c) Copyright 2005-2012, ITB CompuPhase4 * This file is provided as is (no warranties).5 */6#pragma library String78native 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);1314native 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);1718native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);19native strfind(const string[], const sub[], bool:ignorecase=false, index=0);2021native strval(const string[], index=0);22native valstr(dest[], value, bool:pack=true);23native bool: ispacked(const string[]);2425native strformat(dest[], size=sizeof dest, bool:pack=true, const format[], {Fixed,Float,_}:...);2627native 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);3031stock bool: strequal(const string1[], const string2[], bool:ignorecase=false, length=cellmax)32 return strcmp(string1, string2, ignorecase, length) == 0;333435
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.