]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menuqc/util/altstring.qh
Commit flush my old working copy.
[divverent/nexuiz.git] / data / menuqc / util / altstring.qh
1 // NG Menu
2 // util/altstring.qh
3
4 // new altstring format:
5 // "first;second;ha\;ha;"
6 // "value:1.0;name:hallo welt;"
7 // "value//1.0//name//
8
9 // used to extract 'string' strings from a normal string
10 // INFO: the index into the altstring is the same like in C array
11 float( zoned pAlt )                             Util_GetAltStringCount;
12 float( zoned pAlt, float pIndex )       Util_GetAltStringItemStart;
13 zoned( zoned pAlt, float pIndex )       Util_GetAltStringItem;
14 zoned( zoned pAlt, float pIndex, string pSet ) Util_SetAltStringItem;
15 zoned( zoned pAlt, float pIndex )       Util_DelAltStringItem;
16 // insert a new item after the indexed (to insert an item at the front use -1)
17 zoned( zoned pAlt, float pIndex, string pSet ) Util_InsAltStringItem;
18
19 zoned( string pString )                 Util_AltStringPrepare;
20 zoned( string pString )                 Util_AltStringUnprepare;
21 zoned( zoned pAlt, string pPush )       Util_AltStringPush; // strzone
22 zoned( zoned pAlt, string pPush )       Util_AltStringPushBack; // strzone
23 zoned( zoned pAlt )                     Util_GetAltStringTop;
24 zoned( zoned pAlt )                     Util_AltStringPop;      // strzone
25
26 void() Util_AltString_UnitTest;