home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1999-07-13 | 7.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: ArgList.cpp
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jul 13 21:53:54 1999, modified Tue Jul 13 21:53:54 1999, creator 'CWIE', type ASCII, 6951 bytes "ArgList.cpp" , at 0x1ba7 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 41 72 67 4c 69 73 | 74 2e 63 70 70 00 00 00 |..ArgLis|t.cpp...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 1b 27 00 | 00 01 9a b3 b1 9e 32 b3 |......'.|......2.|
|00000060| b1 9e 32 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..2.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9f 8e 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 41 72 67 4c 69 73 |#include| "ArgLis|
|00000090| 74 2e 68 22 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |t.h"..#i|nclude "|
|000000a0| 41 72 67 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |Arg.h".#|include |
|000000b0| 22 55 74 69 6c 53 74 72 | 2e 68 22 0d 23 69 6e 63 |"UtilStr|.h".#inc|
|000000c0| 6c 75 64 65 20 22 43 45 | 67 4f 53 74 72 65 61 6d |lude "CE|gOStream|
|000000d0| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 43 45 |.h".#inc|lude "CE|
|000000e0| 67 49 53 74 72 65 61 6d | 2e 68 22 0d 0d 0d 0d 0d |gIStream|.h".....|
|000000f0| 0d 0d 41 72 67 4c 69 73 | 74 3a 3a 41 72 67 4c 69 |..ArgLis|t::ArgLi|
|00000100| 73 74 28 29 20 7b 0d 09 | 0d 09 6d 48 65 61 64 41 |st() {..|..mHeadA|
|00000110| 72 67 20 3d 20 4e 55 4c | 4c 3b 0d 7d 0d 0d 0d 0d |rg = NUL|L;.}....|
|00000120| 41 72 67 4c 69 73 74 3a | 3a 7e 41 72 67 4c 69 73 |ArgList:|:~ArgLis|
|00000130| 74 28 29 20 7b 0d 0d 09 | 43 6c 65 61 72 28 29 3b |t() {...|Clear();|
|00000140| 0d 7d 0d 0d 0d 0d 0d 76 | 6f 69 64 20 41 72 67 4c |.}.....v|oid ArgL|
|00000150| 69 73 74 3a 3a 43 6c 65 | 61 72 28 29 20 7b 0d 0d |ist::Cle|ar() {..|
|00000160| 09 69 66 20 28 20 6d 48 | 65 61 64 41 72 67 20 29 |.if ( mH|eadArg )|
|00000170| 20 7b 0d 09 09 64 65 6c | 65 74 65 20 6d 48 65 61 | {...del|ete mHea|
|00000180| 64 41 72 67 3b 0d 09 09 | 6d 48 65 61 64 41 72 67 |dArg;...|mHeadArg|
|00000190| 20 3d 20 4e 55 4c 4c 3b | 0d 09 7d 0d 7d 0d 0d 0d | = NULL;|..}.}...|
|000001a0| 0d 76 6f 69 64 20 41 72 | 67 4c 69 73 74 3a 3a 57 |.void Ar|gList::W|
|000001b0| 72 69 74 65 54 6f 28 20 | 43 45 67 4f 53 74 72 65 |riteTo( |CEgOStre|
|000001c0| 61 6d 2a 20 69 6f 53 74 | 72 65 61 6d 20 29 20 7b |am* ioSt|ream ) {|
|000001d0| 0d 09 41 72 67 2a 20 61 | 72 67 20 3d 20 6d 48 65 |..Arg* a|rg = mHe|
|000001e0| 61 64 41 72 67 3b 0d 09 | 0d 09 69 6f 53 74 72 65 |adArg;..|..ioStre|
|000001f0| 61 6d 20 2d 3e 20 50 75 | 74 4c 6f 6e 67 28 20 4e |am -> Pu|tLong( N|
|00000200| 75 6d 41 72 67 73 28 29 | 20 29 3b 0d 09 0d 09 77 |umArgs()| );....w|
|00000210| 68 69 6c 65 20 28 20 61 | 72 67 20 26 26 20 69 6f |hile ( a|rg && io|
|00000220| 53 74 72 65 61 6d 20 2d | 3e 20 6e 6f 45 72 72 28 |Stream -|> noErr(|
|00000230| 29 20 29 20 7b 0d 09 09 | 69 6f 53 74 72 65 61 6d |) ) {...|ioStream|
|00000240| 20 2d 3e 20 50 75 74 4c | 6f 6e 67 28 20 61 72 67 | -> PutL|ong( arg|
|00000250| 20 2d 3e 20 47 65 74 49 | 44 28 29 20 29 3b 0d 09 | -> GetI|D() );..|
|00000260| 09 69 66 20 28 20 61 72 | 67 20 2d 3e 20 49 73 53 |.if ( ar|g -> IsS|
|00000270| 74 72 28 29 20 29 20 7b | 0d 09 09 09 69 6f 53 74 |tr() ) {|....ioSt|
|00000280| 72 65 61 6d 20 2d 3e 20 | 50 75 74 42 79 74 65 28 |ream -> |PutByte(|
|00000290| 20 27 24 27 20 29 3b 0d | 09 09 09 28 28 55 74 69 | '$' );.|...((Uti|
|000002a0| 6c 53 74 72 2a 29 20 61 | 72 67 20 2d 3e 20 47 65 |lStr*) a|rg -> Ge|
|000002b0| 74 44 61 74 61 28 29 29 | 20 2d 3e 20 57 72 69 74 |tData())| -> Writ|
|000002c0| 65 54 6f 28 20 69 6f 53 | 74 72 65 61 6d 20 29 3b |eTo( ioS|tream );|
|000002d0| 20 7d 0d 09 09 65 6c 73 | 65 20 7b 0d 09 09 09 69 | }...els|e {....i|
|000002e0| 6f 53 74 72 65 61 6d 20 | 2d 3e 20 50 75 74 42 79 |oStream |-> PutBy|
|000002f0| 74 65 28 20 27 23 27 20 | 29 3b 0d 09 09 09 69 6f |te( '#' |);....io|
|00000300| 53 74 72 65 61 6d 20 2d | 3e 20 50 75 74 4c 6f 6e |Stream -|> PutLon|
|00000310| 67 28 20 61 72 67 20 2d | 3e 20 47 65 74 44 61 74 |g( arg -|> GetDat|
|00000320| 61 28 29 20 29 3b 0d 09 | 09 7d 0d 09 09 61 72 67 |a() );..|.}...arg|
|00000330| 20 3d 20 61 72 67 20 2d | 3e 20 6d 4e 65 78 74 3b | = arg -|> mNext;|
|00000340| 0d 09 7d 09 0d 7d 0d 0d | 0d 76 6f 69 64 20 41 72 |..}..}..|.void Ar|
|00000350| 67 4c 69 73 74 3a 3a 52 | 65 61 64 46 72 6f 6d 28 |gList::R|eadFrom(|
|00000360| 20 43 45 67 49 53 74 72 | 65 61 6d 2a 20 69 6f 53 | CEgIStr|eam* ioS|
|00000370| 74 72 65 61 6d 20 29 20 | 7b 0d 09 6c 6f 6e 67 09 |tream ) |{..long.|
|00000380| 09 49 44 2c 20 6e 3b 0d | 09 55 74 69 6c 53 74 72 |.ID, n;.|.UtilStr|
|00000390| 09 73 74 72 3b 0d 09 0d | 09 66 6f 72 20 28 20 6e |.str;...|.for ( n|
|000003a0| 20 3d 20 69 6f 53 74 72 | 65 61 6d 20 2d 3e 20 47 | = ioStr|eam -> G|
|000003b0| 65 74 4c 6f 6e 67 28 29 | 3b 20 6e 20 3e 20 30 20 |etLong()|; n > 0 |
|000003c0| 26 26 20 69 6f 53 74 72 | 65 61 6d 20 2d 3e 20 6e |&& ioStr|eam -> n|
|000003d0| 6f 45 72 72 28 29 20 3b | 20 6e 2d 2d 20 29 20 7b |oErr() ;| n-- ) {|
|000003e0| 0d 09 09 49 44 20 3d 20 | 69 6f 53 74 72 65 61 6d |...ID = |ioStream|
|000003f0| 20 2d 3e 20 47 65 74 4c | 6f 6e 67 28 29 3b 0d 09 | -> GetL|ong();..|
|00000400| 09 69 66 20 28 20 69 6f | 53 74 72 65 61 6d 20 2d |.if ( io|Stream -|
|00000410| 3e 20 47 65 74 42 79 74 | 65 28 29 20 3d 3d 20 27 |> GetByt|e() == '|
|00000420| 23 27 20 29 20 0d 09 09 | 09 53 65 74 41 72 67 28 |#' ) ...|.SetArg(|
|00000430| 20 49 44 2c 20 69 6f 53 | 74 72 65 61 6d 20 2d 3e | ID, ioS|tream ->|
|00000440| 20 47 65 74 4c 6f 6e 67 | 28 29 20 29 3b 0d 09 09 | GetLong|() );...|
|00000450| 65 6c 73 65 20 7b 0d 09 | 09 09 73 74 72 2e 52 65 |else {..|..str.Re|
|00000460| 61 64 46 72 6f 6d 28 20 | 69 6f 53 74 72 65 61 6d |adFrom( |ioStream|
|00000470| 20 29 3b 0d 09 09 09 53 | 65 74 41 72 67 28 20 49 | );....S|etArg( I|
|00000480| 44 2c 20 73 74 72 20 29 | 3b 0d 09 09 7d 0d 09 7d |D, str )|;...}..}|
|00000490| 0d 7d 0d 0d 0d 0d 6c 6f | 6e 67 20 41 72 67 4c 69 |.}....lo|ng ArgLi|
|000004a0| 73 74 3a 3a 4e 75 6d 41 | 72 67 73 28 29 20 63 6f |st::NumA|rgs() co|
|000004b0| 6e 73 74 20 7b 0d 09 6c | 6f 6e 67 20 6e 20 3d 20 |nst {..l|ong n = |
|000004c0| 30 3b 0d 09 41 72 67 2a | 20 61 72 67 20 3d 20 6d |0;..Arg*| arg = m|
|000004d0| 48 65 61 64 41 72 67 3b | 0d 09 0d 09 77 68 69 6c |HeadArg;|....whil|
|000004e0| 65 20 28 20 61 72 67 20 | 29 20 7b 0d 09 09 61 72 |e ( arg |) {...ar|
|000004f0| 67 20 3d 20 61 72 67 20 | 2d 3e 20 6d 4e 65 78 74 |g = arg |-> mNext|
|00000500| 3b 0d 09 09 6e 2b 2b 3b | 0d 09 7d 0d 09 0d 09 72 |;...n++;|..}....r|
|00000510| 65 74 75 72 6e 20 6e 3b | 0d 7d 0d 0d 0d 0d 41 72 |eturn n;|.}....Ar|
|00000520| 67 2a 20 41 72 67 4c 69 | 73 74 3a 3a 46 65 74 63 |g* ArgLi|st::Fetc|
|00000530| 68 41 72 67 28 20 6c 6f | 6e 67 20 69 6e 49 44 20 |hArg( lo|ng inID |
|00000540| 29 20 63 6f 6e 73 74 20 | 7b 0d 09 41 72 67 2a 20 |) const |{..Arg* |
|00000550| 61 72 67 20 3d 20 6d 48 | 65 61 64 41 72 67 3b 0d |arg = mH|eadArg;.|
|00000560| 09 0d 09 77 68 69 6c 65 | 20 28 20 61 72 67 20 29 |...while| ( arg )|
|00000570| 20 7b 0d 09 09 69 66 20 | 28 20 61 72 67 20 2d 3e | {...if |( arg ->|
|00000580| 20 47 65 74 49 44 28 29 | 20 3d 3d 20 69 6e 49 44 | GetID()| == inID|
|00000590| 20 29 0d 09 09 09 72 65 | 74 75 72 6e 20 61 72 67 | )....re|turn arg|
|000005a0| 3b 0d 09 09 61 72 67 20 | 3d 20 61 72 67 20 2d 3e |;...arg |= arg ->|
|000005b0| 20 6d 4e 65 78 74 3b 0d | 09 7d 0d 09 0d 09 72 65 | mNext;.|.}....re|
|000005c0| 74 75 72 6e 20 4e 55 4c | 4c 3b 0d 7d 0d 0d 0d 0d |turn NUL|L;.}....|
|000005d0| 0d 0d 0d 76 6f 69 64 20 | 41 72 67 4c 69 73 74 3a |...void |ArgList:|
|000005e0| 3a 44 65 6c 65 74 65 41 | 72 67 28 20 6c 6f 6e 67 |:DeleteA|rg( long|
|000005f0| 20 69 6e 41 72 67 49 44 | 20 29 20 7b 0d 09 41 72 | inArgID| ) {..Ar|
|00000600| 67 2a 20 70 72 65 76 20 | 3d 20 4e 55 4c 4c 2c 20 |g* prev |= NULL, |
|00000610| 2a 61 72 67 20 3d 20 6d | 48 65 61 64 41 72 67 3b |*arg = m|HeadArg;|
|00000620| 0d 09 0d 09 77 68 69 6c | 65 20 28 20 61 72 67 20 |....whil|e ( arg |
|00000630| 29 20 7b 0d 09 09 69 66 | 20 28 20 61 72 67 20 2d |) {...if| ( arg -|
|00000640| 3e 20 47 65 74 49 44 28 | 29 20 3d 3d 20 69 6e 41 |> GetID(|) == inA|
|00000650| 72 67 49 44 20 29 20 7b | 0d 09 09 09 69 66 20 28 |rgID ) {|....if (|
|00000660| 20 70 72 65 76 20 29 0d | 09 09 09 09 70 72 65 76 | prev ).|....prev|
|00000670| 20 2d 3e 20 6d 4e 65 78 | 74 20 3d 20 61 72 67 20 | -> mNex|t = arg |
|00000680| 2d 3e 20 6d 4e 65 78 74 | 3b 0d 09 09 09 65 6c 73 |-> mNext|;....els|
|00000690| 65 0d 09 09 09 09 6d 48 | 65 61 64 41 72 67 20 3d |e.....mH|eadArg =|
|000006a0| 20 61 72 67 20 2d 3e 20 | 6d 4e 65 78 74 3b 0d 09 | arg -> |mNext;..|
|000006b0| 09 09 61 72 67 20 2d 3e | 20 6d 4e 65 78 74 20 3d |..arg ->| mNext =|
|000006c0| 20 4e 55 4c 4c 3b 0d 09 | 09 09 64 65 6c 65 74 65 | NULL;..|..delete|
|000006d0| 20 61 72 67 3b 0d 09 09 | 09 61 72 67 20 3d 20 4e | arg;...|.arg = N|
|000006e0| 55 4c 4c 3b 20 7d 0d 09 | 09 65 6c 73 65 20 7b 0d |ULL; }..|.else {.|
|000006f0| 09 09 09 70 72 65 76 20 | 3d 20 61 72 67 3b 0d 09 |...prev |= arg;..|
|00000700| 09 09 61 72 67 20 3d 20 | 61 72 67 20 2d 3e 20 6d |..arg = |arg -> m|
|00000710| 4e 65 78 74 3b 0d 09 09 | 7d 0d 09 7d 0d 7d 0d 0d |Next;...|}..}.}..|
|00000720| 0d 0d 76 6f 69 64 20 41 | 72 67 4c 69 73 74 3a 3a |..void A|rgList::|
|00000730| 53 65 74 41 72 67 28 20 | 6c 6f 6e 67 20 69 6e 41 |SetArg( |long inA|
|00000740| 72 67 49 44 2c 20 6c 6f | 6e 67 20 69 6e 41 72 67 |rgID, lo|ng inArg|
|00000750| 20 29 20 7b 0d 09 41 72 | 67 2a 20 61 72 67 20 3d | ) {..Ar|g* arg =|
|00000760| 20 46 65 74 63 68 41 72 | 67 28 20 69 6e 41 72 67 | FetchAr|g( inArg|
|00000770| 49 44 20 29 3b 0d 09 0d | 09 69 66 20 28 20 61 72 |ID );...|.if ( ar|
|00000780| 67 20 29 0d 09 09 61 72 | 67 20 2d 3e 20 41 73 73 |g )...ar|g -> Ass|
|00000790| 69 67 6e 28 20 69 6e 41 | 72 67 20 29 3b 0d 09 65 |ign( inA|rg );..e|
|000007a0| 6c 73 65 0d 09 09 6d 48 | 65 61 64 41 72 67 20 3d |lse...mH|eadArg =|
|000007b0| 20 6e 65 77 20 41 72 67 | 28 20 69 6e 41 72 67 49 | new Arg|( inArgI|
|000007c0| 44 2c 20 69 6e 41 72 67 | 2c 20 6d 48 65 61 64 41 |D, inArg|, mHeadA|
|000007d0| 72 67 20 29 3b 20 0d 7d | 0d 0d 0d 0d 76 6f 69 64 |rg ); .}|....void|
|000007e0| 20 41 72 67 4c 69 73 74 | 3a 3a 53 65 74 41 72 67 | ArgList|::SetArg|
|000007f0| 28 20 6c 6f 6e 67 20 69 | 6e 41 72 67 49 44 2c 20 |( long i|nArgID, |
|00000800| 63 6f 6e 73 74 20 55 74 | 69 6c 53 74 72 26 20 69 |const Ut|ilStr& i|
|00000810| 6e 41 72 67 20 29 20 7b | 0d 09 53 65 74 41 72 67 |nArg ) {|..SetArg|
|00000820| 28 20 69 6e 41 72 67 49 | 44 2c 20 69 6e 41 72 67 |( inArgI|D, inArg|
|00000830| 2e 67 65 74 43 53 74 72 | 28 29 20 29 3b 0d 7d 0d |.getCStr|() );.}.|
|00000840| 0d 0d 76 6f 69 64 20 41 | 72 67 4c 69 73 74 3a 3a |..void A|rgList::|
|00000850| 53 65 74 41 72 67 28 20 | 6c 6f 6e 67 20 69 6e 41 |SetArg( |long inA|
|00000860| 72 67 49 44 2c 20 63 6f | 6e 73 74 20 63 68 61 72 |rgID, co|nst char|
|00000870| 2a 20 69 6e 41 72 67 53 | 74 72 20 29 20 7b 0d 09 |* inArgS|tr ) {..|
|00000880| 41 72 67 2a 20 61 72 67 | 20 3d 20 46 65 74 63 68 |Arg* arg| = Fetch|
|00000890| 41 72 67 28 20 69 6e 41 | 72 67 49 44 20 29 3b 0d |Arg( inA|rgID );.|
|000008a0| 09 0d 09 69 66 20 28 20 | 61 72 67 20 29 0d 09 09 |...if ( |arg )...|
|000008b0| 61 72 67 20 2d 3e 20 41 | 73 73 69 67 6e 28 20 69 |arg -> A|ssign( i|
|000008c0| 6e 41 72 67 53 74 72 20 | 29 3b 0d 09 65 6c 73 65 |nArgStr |);..else|
|000008d0| 0d 09 09 6d 48 65 61 64 | 41 72 67 20 3d 20 6e 65 |...mHead|Arg = ne|
|000008e0| 77 20 41 72 67 28 20 69 | 6e 41 72 67 49 44 2c 20 |w Arg( i|nArgID, |
|000008f0| 69 6e 41 72 67 53 74 72 | 2c 20 6d 48 65 61 64 41 |inArgStr|, mHeadA|
|00000900| 72 67 20 29 3b 20 0d 7d | 0d 0d 0d 0d 0d 0d 62 6f |rg ); .}|......bo|
|00000910| 6f 6c 20 41 72 67 4c 69 | 73 74 3a 3a 47 65 74 41 |ol ArgLi|st::GetA|
|00000920| 72 67 28 20 6c 6f 6e 67 | 20 69 6e 41 72 67 49 44 |rg( long| inArgID|
|00000930| 2c 20 55 74 69 6c 53 74 | 72 26 20 6f 75 74 53 74 |, UtilSt|r& outSt|
|00000940| 72 20 29 20 63 6f 6e 73 | 74 20 7b 0d 09 41 72 67 |r ) cons|t {..Arg|
|00000950| 2a 20 09 61 72 67 09 09 | 3d 20 46 65 74 63 68 41 |* .arg..|= FetchA|
|00000960| 72 67 28 20 69 6e 41 72 | 67 49 44 20 29 3b 0d 09 |rg( inAr|gID );..|
|00000970| 0d 09 6f 75 74 53 74 72 | 2e 57 69 70 65 28 29 3b |..outStr|.Wipe();|
|00000980| 0d 09 0d 09 69 66 20 28 | 20 61 72 67 20 29 20 7b |....if (| arg ) {|
|00000990| 0d 09 09 20 69 66 20 28 | 20 61 72 67 20 2d 3e 20 |... if (| arg -> |
|000009a0| 49 73 53 74 72 28 29 20 | 29 20 7b 0d 09 09 20 09 |IsStr() |) {... .|
|000009b0| 6f 75 74 53 74 72 2e 41 | 73 73 69 67 6e 28 20 28 |outStr.A|ssign( (|
|000009c0| 55 74 69 6c 53 74 72 2a | 29 20 61 72 67 20 2d 3e |UtilStr*|) arg ->|
|000009d0| 20 47 65 74 44 61 74 61 | 28 29 20 29 3b 0d 09 09 | GetData|() );...|
|000009e0| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 09 09 |.return |true;...|
|000009f0| 7d 0d 09 7d 0d 09 0d 09 | 72 65 74 75 72 6e 20 66 |}..}....|return f|
|00000a00| 61 6c 73 65 3b 0d 7d 0d | 0d 0d 6c 6f 6e 67 20 41 |alse;.}.|..long A|
|00000a10| 72 67 4c 69 73 74 3a 3a | 47 65 74 41 72 72 61 79 |rgList::|GetArray|
|00000a20| 53 69 7a 65 28 20 6c 6f | 6e 67 20 69 6e 49 44 20 |Size( lo|ng inID |
|00000a30| 29 20 63 6f 6e 73 74 20 | 7b 0d 09 6c 6f 6e 67 20 |) const |{..long |
|00000a40| 69 20 3d 20 30 3b 0d 09 | 0d 09 77 68 69 6c 65 20 |i = 0;..|..while |
|00000a50| 28 20 46 65 74 63 68 41 | 72 67 28 20 49 6e 64 65 |( FetchA|rg( Inde|
|00000a60| 78 65 64 49 44 32 49 44 | 28 20 69 6e 49 44 2c 20 |xedID2ID|( inID, |
|00000a70| 69 20 29 20 29 20 29 20 | 7b 0d 09 09 69 2b 2b 3b |i ) ) ) |{...i++;|
|00000a80| 0d 09 7d 0d 09 0d 09 72 | 65 74 75 72 6e 20 69 3b |..}....r|eturn i;|
|00000a90| 20 0d 7d 0d 0d 0d 6c 6f | 6e 67 20 41 72 67 4c 69 | .}...lo|ng ArgLi|
|00000aa0| 73 74 3a 3a 49 6e 64 65 | 78 65 64 49 44 32 49 44 |st::Inde|xedID2ID|
|00000ab0| 28 20 6c 6f 6e 67 20 69 | 6e 42 61 73 65 49 44 2c |( long i|nBaseID,|
|00000ac0| 20 6c 6f 6e 67 20 69 6e | 49 6e 64 65 78 20 29 20 | long in|Index ) |
|00000ad0| 7b 0d 09 6c 6f 6e 67 20 | 69 64 20 3d 20 69 6e 42 |{..long |id = inB|
|00000ae0| 61 73 65 49 44 3b 0d 09 | 0d 0d 09 69 66 20 28 20 |aseID;..|...if ( |
|00000af0| 69 6e 49 6e 64 65 78 20 | 3e 3d 20 31 30 30 20 29 |inIndex |>= 100 )|
|00000b00| 20 7b 0d 09 09 69 64 20 | 3d 20 28 20 69 64 20 3c | {...id |= ( id <|
|00000b10| 3c 20 38 20 29 20 7c 20 | 28 20 28 20 69 6e 49 6e |< 8 ) | |( ( inIn|
|00000b20| 64 65 78 20 2f 20 31 30 | 30 20 29 20 2b 20 27 30 |dex / 10|0 ) + '0|
|00000b30| 27 20 29 3b 0d 09 09 69 | 6e 49 6e 64 65 78 20 3d |' );...i|nIndex =|
|00000b40| 20 69 6e 49 6e 64 65 78 | 20 25 20 31 30 30 3b 0d | inIndex| % 100;.|
|00000b50| 09 7d 0d 0d 09 69 66 20 | 28 20 69 6e 49 6e 64 65 |.}...if |( inInde|
|00000b60| 78 20 3e 3d 20 31 30 20 | 29 20 7b 0d 09 09 69 64 |x >= 10 |) {...id|
|00000b70| 20 3d 20 28 20 69 64 20 | 3c 3c 20 38 20 29 20 7c | = ( id |<< 8 ) ||
|00000b80| 20 28 20 28 20 69 6e 49 | 6e 64 65 78 20 2f 20 31 | ( ( inI|ndex / 1|
|00000b90| 30 20 29 20 2b 20 27 30 | 27 20 29 3b 0d 09 09 69 |0 ) + '0|' );...i|
|00000ba0| 6e 49 6e 64 65 78 20 3d | 20 69 6e 49 6e 64 65 78 |nIndex =| inIndex|
|00000bb0| 20 25 20 31 30 3b 0d 09 | 7d 0d 09 09 0d 09 69 64 | % 10;..|}.....id|
|00000bc0| 20 3d 20 28 20 69 64 20 | 3c 3c 20 38 20 29 20 7c | = ( id |<< 8 ) ||
|00000bd0| 20 28 20 69 6e 49 6e 64 | 65 78 20 2b 20 27 30 27 | ( inInd|ex + '0'|
|00000be0| 20 29 3b 0d 0d 09 72 65 | 74 75 72 6e 20 69 64 3b | );...re|turn id;|
|00000bf0| 0d 7d 0d 0d 0d 0d 0d 0d | 0d 63 6f 6e 73 74 20 55 |.}......|.const U|
|00000c00| 74 69 6c 53 74 72 2a 20 | 41 72 67 4c 69 73 74 3a |tilStr* |ArgList:|
|00000c10| 3a 47 65 74 53 74 72 28 | 20 6c 6f 6e 67 20 69 6e |:GetStr(| long in|
|00000c20| 41 72 67 49 44 20 29 20 | 63 6f 6e 73 74 20 7b 0d |ArgID ) |const {.|
|00000c30| 09 41 72 67 2a 20 09 61 | 72 67 09 09 3d 20 46 65 |.Arg* .a|rg..= Fe|
|00000c40| 74 63 68 41 72 67 28 20 | 69 6e 41 72 67 49 44 20 |tchArg( |inArgID |
|00000c50| 29 3b 0d 09 0d 09 69 66 | 20 28 20 61 72 67 20 29 |);....if| ( arg )|
|00000c60| 20 7b 0d 09 09 20 69 66 | 20 28 20 61 72 67 20 2d | {... if| ( arg -|
|00000c70| 3e 20 49 73 53 74 72 28 | 29 20 29 0d 09 09 09 72 |> IsStr(|) )....r|
|00000c80| 65 74 75 72 6e 20 28 55 | 74 69 6c 53 74 72 2a 29 |eturn (U|tilStr*)|
|00000c90| 20 61 72 67 20 2d 3e 20 | 47 65 74 44 61 74 61 28 | arg -> |GetData(|
|00000ca0| 29 3b 0d 09 7d 0d 09 0d | 09 72 65 74 75 72 6e 20 |);..}...|.return |
|00000cb0| 4e 55 4c 4c 3b 0d 7d 0d | 0d 0d 0d 0d 64 6f 75 62 |NULL;.}.|....doub|
|00000cc0| 6c 65 20 41 72 67 4c 69 | 73 74 3a 3a 47 65 74 46 |le ArgLi|st::GetF|
|00000cd0| 6c 6f 61 74 28 20 6c 6f | 6e 67 20 69 6e 41 72 67 |loat( lo|ng inArg|
|00000ce0| 49 44 20 29 20 63 6f 6e | 73 74 20 7b 0d 09 41 72 |ID ) con|st {..Ar|
|00000cf0| 67 2a 20 09 61 72 67 09 | 09 3d 20 46 65 74 63 68 |g* .arg.|.= Fetch|
|00000d00| 41 72 67 28 20 69 6e 41 | 72 67 49 44 20 29 3b 0d |Arg( inA|rgID );.|
|00000d10| 09 09 0d 09 69 66 20 28 | 20 61 72 67 20 29 20 7b |....if (| arg ) {|
|00000d20| 0d 09 09 69 66 20 28 20 | 61 72 67 20 2d 3e 20 49 |...if ( |arg -> I|
|00000d30| 73 53 74 72 28 29 20 29 | 0d 09 09 09 72 65 74 75 |sStr() )|....retu|
|00000d40| 72 6e 20 28 20 28 55 74 | 69 6c 53 74 72 2a 29 20 |rn ( (Ut|ilStr*) |
|00000d50| 61 72 67 20 2d 3e 20 47 | 65 74 44 61 74 61 28 29 |arg -> G|etData()|
|00000d60| 20 29 20 2d 3e 20 47 65 | 74 46 6c 6f 61 74 56 61 | ) -> Ge|tFloatVa|
|00000d70| 6c 75 65 28 29 3b 0d 09 | 7d 0d 09 0d 09 72 65 74 |lue();..|}....ret|
|00000d80| 75 72 6e 20 30 3b 0d 7d | 0d 0d 0d 0d 0d 0d 09 0d |urn 0;.}|........|
|00000d90| 62 6f 6f 6c 20 41 72 67 | 4c 69 73 74 3a 3a 47 65 |bool Arg|List::Ge|
|00000da0| 74 41 72 67 28 20 6c 6f | 6e 67 20 69 6e 41 72 67 |tArg( lo|ng inArg|
|00000db0| 49 44 2c 20 62 6f 6f 6c | 26 20 6f 75 74 41 72 67 |ID, bool|& outArg|
|00000dc0| 20 29 20 63 6f 6e 73 74 | 20 7b 0d 09 41 72 67 2a | ) const| {..Arg*|
|00000dd0| 20 61 72 67 20 3d 20 46 | 65 74 63 68 41 72 67 28 | arg = F|etchArg(|
|00000de0| 20 69 6e 41 72 67 49 44 | 20 29 3b 0d 09 62 6f 6f | inArgID| );..boo|
|00000df0| 6c 09 09 66 6f 75 6e 64 | 20 3d 20 66 61 6c 73 65 |l..found| = false|
|00000e00| 3b 0d 09 0d 09 6f 75 74 | 41 72 67 20 3d 20 66 61 |;....out|Arg = fa|
|00000e10| 6c 73 65 3b 0d 09 0d 09 | 69 66 20 28 20 61 72 67 |lse;....|if ( arg|
|00000e20| 20 29 20 7b 0d 09 09 66 | 6f 75 6e 64 20 3d 20 21 | ) {...f|ound = !|
|00000e30| 20 61 72 67 20 2d 3e 20 | 49 73 53 74 72 28 29 3b | arg -> |IsStr();|
|00000e40| 0d 09 09 69 66 20 28 20 | 66 6f 75 6e 64 20 29 0d |...if ( |found ).|
|00000e50| 09 09 09 6f 75 74 41 72 | 67 20 3d 20 61 72 67 20 |...outAr|g = arg |
|00000e60| 2d 3e 20 47 65 74 44 61 | 74 61 28 29 20 21 3d 20 |-> GetDa|ta() != |
|00000e70| 30 3b 0d 09 7d 0d 09 0d | 09 72 65 74 75 72 6e 20 |0;..}...|.return |
|00000e80| 66 6f 75 6e 64 3b 0d 7d | 0d 0d 0d 0d 62 6f 6f 6c |found;.}|....bool|
|00000e90| 20 41 72 67 4c 69 73 74 | 3a 3a 47 65 74 41 72 67 | ArgList|::GetArg|
|00000ea0| 28 20 6c 6f 6e 67 20 69 | 6e 41 72 67 49 44 2c 20 |( long i|nArgID, |
|00000eb0| 6c 6f 6e 67 26 20 6f 75 | 74 41 72 67 20 29 20 63 |long& ou|tArg ) c|
|00000ec0| 6f 6e 73 74 20 7b 0d 09 | 41 72 67 2a 20 09 09 61 |onst {..|Arg* ..a|
|00000ed0| 72 67 20 09 3d 20 46 65 | 74 63 68 41 72 67 28 20 |rg .= Fe|tchArg( |
|00000ee0| 69 6e 41 72 67 49 44 20 | 29 3b 0d 09 62 6f 6f 6c |inArgID |);..bool|
|00000ef0| 09 09 66 6f 75 6e 64 20 | 09 3d 20 66 61 6c 73 65 |..found |.= false|
|00000f00| 3b 0d 09 09 0d 09 69 66 | 20 28 20 61 72 67 20 29 |;.....if| ( arg )|
|00000f10| 20 7b 0d 09 09 66 6f 75 | 6e 64 20 3d 20 21 20 61 | {...fou|nd = ! a|
|00000f20| 72 67 20 2d 3e 20 49 73 | 53 74 72 28 29 3b 0d 09 |rg -> Is|Str();..|
|00000f30| 09 69 66 20 28 20 66 6f | 75 6e 64 20 29 0d 09 09 |.if ( fo|und )...|
|00000f40| 09 6f 75 74 41 72 67 20 | 3d 20 61 72 67 20 2d 3e |.outArg |= arg ->|
|00000f50| 20 47 65 74 44 61 74 61 | 28 29 3b 0d 09 7d 0d 09 | GetData|();..}..|
|00000f60| 0d 09 69 66 20 28 20 21 | 20 66 6f 75 6e 64 20 29 |..if ( !| found )|
|00000f70| 0d 09 09 6f 75 74 41 72 | 67 20 3d 20 30 3b 0d 09 |...outAr|g = 0;..|
|00000f80| 09 0d 09 72 65 74 75 72 | 6e 20 66 6f 75 6e 64 3b |...retur|n found;|
|00000f90| 09 0d 7d 0d 09 0d 09 0d | 0d 6c 6f 6e 67 20 41 72 |..}.....|.long Ar|
|00000fa0| 67 4c 69 73 74 3a 3a 47 | 65 74 41 72 67 28 20 6c |gList::G|etArg( l|
|00000fb0| 6f 6e 67 20 69 6e 41 72 | 67 49 44 20 29 20 63 6f |ong inAr|gID ) co|
|00000fc0| 6e 73 74 20 7b 0d 09 41 | 72 67 2a 20 09 09 61 72 |nst {..A|rg* ..ar|
|00000fd0| 67 20 09 3d 20 46 65 74 | 63 68 41 72 67 28 20 69 |g .= Fet|chArg( i|
|00000fe0| 6e 41 72 67 49 44 20 29 | 3b 0d 09 09 0d 09 69 66 |nArgID )|;.....if|
|00000ff0| 20 28 20 61 72 67 20 29 | 20 7b 0d 09 09 69 66 20 | ( arg )| {...if |
|00001000| 28 20 21 20 61 72 67 20 | 2d 3e 20 49 73 53 74 72 |( ! arg |-> IsStr|
|00001010| 28 29 20 29 0d 09 09 09 | 72 65 74 75 72 6e 20 61 |() )....|return a|
|00001020| 72 67 20 2d 3e 20 47 65 | 74 44 61 74 61 28 29 3b |rg -> Ge|tData();|
|00001030| 0d 09 09 65 6c 73 65 0d | 09 09 09 72 65 74 75 72 |...else.|...retur|
|00001040| 6e 20 28 20 28 55 74 69 | 6c 53 74 72 2a 29 20 61 |n ( (Uti|lStr*) a|
|00001050| 72 67 20 2d 3e 20 47 65 | 74 44 61 74 61 28 29 20 |rg -> Ge|tData() |
|00001060| 29 20 2d 3e 20 47 65 74 | 56 61 6c 75 65 28 29 3b |) -> Get|Value();|
|00001070| 0d 09 7d 0d 09 09 0d 09 | 72 65 74 75 72 6e 20 30 |..}.....|return 0|
|00001080| 3b 09 0d 7d 0d 09 0d 09 | 0d 09 0d 0d 76 6f 69 64 |;..}....|....void|
|00001090| 20 41 72 67 4c 69 73 74 | 3a 3a 53 65 74 41 72 67 | ArgList|::SetArg|
|000010a0| 73 28 20 63 6f 6e 73 74 | 20 41 72 67 4c 69 73 74 |s( const| ArgList|
|000010b0| 26 20 69 6e 41 72 67 73 | 20 29 20 7b 0d 09 41 72 |& inArgs| ) {..Ar|
|000010c0| 67 2a 20 61 72 67 20 3d | 20 69 6e 41 72 67 73 2e |g* arg =| inArgs.|
|000010d0| 6d 48 65 61 64 41 72 67 | 3b 0d 09 6c 6f 6e 67 20 |mHeadArg|;..long |
|000010e0| 64 61 74 61 3b 0d 09 6c | 6f 6e 67 20 69 64 3b 0d |data;..l|ong id;.|
|000010f0| 09 0d 09 77 68 69 6c 65 | 20 28 20 61 72 67 20 29 |...while| ( arg )|
|00001100| 20 7b 0d 09 09 69 64 20 | 3d 20 20 61 72 67 20 2d | {...id |= arg -|
|00001110| 3e 20 47 65 74 49 44 28 | 29 3b 0d 09 09 64 61 74 |> GetID(|);...dat|
|00001120| 61 20 3d 20 61 72 67 20 | 2d 3e 20 47 65 74 44 61 |a = arg |-> GetDa|
|00001130| 74 61 28 29 3b 0d 09 09 | 69 66 20 28 20 61 72 67 |ta();...|if ( arg|
|00001140| 20 2d 3e 20 49 73 53 74 | 72 28 29 20 29 20 0d 09 | -> IsSt|r() ) ..|
|00001150| 09 09 53 65 74 41 72 67 | 28 20 69 64 2c 20 28 55 |..SetArg|( id, (U|
|00001160| 74 69 6c 53 74 72 2a 29 | 20 64 61 74 61 20 29 3b |tilStr*)| data );|
|00001170| 0d 09 09 65 6c 73 65 20 | 0d 09 09 09 53 65 74 41 |...else |....SetA|
|00001180| 72 67 28 20 69 64 2c 20 | 64 61 74 61 20 29 3b 0d |rg( id, |data );.|
|00001190| 09 09 61 72 67 20 3d 20 | 61 72 67 20 2d 3e 20 6d |..arg = |arg -> m|
|000011a0| 4e 65 78 74 3b 0d 09 7d | 0d 7d 0d 0d 0d 09 0d 76 |Next;..}|.}.....v|
|000011b0| 6f 69 64 20 41 72 67 4c | 69 73 74 3a 3a 53 65 74 |oid ArgL|ist::Set|
|000011c0| 41 72 67 73 28 20 63 6f | 6e 73 74 20 63 68 61 72 |Args( co|nst char|
|000011d0| 2a 20 63 75 72 50 74 72 | 2c 20 6c 6f 6e 67 20 69 |* curPtr|, long i|
|000011e0| 6e 4c 65 6e 20 29 20 7b | 0d 09 63 6f 6e 73 74 20 |nLen ) {|..const |
|000011f0| 63 68 61 72 2a 20 6c 61 | 73 74 50 74 72 3b 0d 09 |char* la|stPtr;..|
|00001200| 63 6f 6e 73 74 20 63 68 | 61 72 2a 20 65 6e 64 50 |const ch|ar* endP|
|00001210| 74 72 20 3d 20 63 75 72 | 50 74 72 3b 0d 09 6c 6f |tr = cur|Ptr;..lo|
|00001220| 6e 67 20 49 44 3b 0d 09 | 62 6f 6f 6c 20 74 65 72 |ng ID;..|bool ter|
|00001230| 6d 69 6e 61 74 65 64 2c | 20 69 73 53 74 72 3b 0d |minated,| isStr;.|
|00001240| 09 55 74 69 6c 53 74 72 | 09 73 3b 0d 09 0d 09 69 |.UtilStr|.s;....i|
|00001250| 66 20 28 20 69 6e 4c 65 | 6e 20 3e 20 30 20 29 20 |f ( inLe|n > 0 ) |
|00001260| 0d 09 09 65 6e 64 50 74 | 72 20 3d 20 63 75 72 50 |...endPt|r = curP|
|00001270| 74 72 20 2b 20 69 6e 4c | 65 6e 3b 0d 09 65 6c 73 |tr + inL|en;..els|
|00001280| 65 20 7b 0d 09 09 65 6e | 64 50 74 72 20 3d 20 63 |e {...en|dPtr = c|
|00001290| 75 72 50 74 72 3b 0d 09 | 09 77 68 69 6c 65 20 28 |urPtr;..|.while (|
|000012a0| 20 2a 65 6e 64 50 74 72 | 20 29 0d 09 09 09 65 6e | *endPtr| )....en|
|000012b0| 64 50 74 72 2b 2b 3b 0d | 09 7d 0d 09 0d 09 64 6f |dPtr++;.|.}....do|
|000012c0| 20 7b 09 09 09 09 09 09 | 09 09 09 09 2f 2f 20 4c | {......|....// L|
|000012d0| 6f 6f 70 20 74 68 72 75 | 20 65 61 63 68 20 61 72 |oop thru| each ar|
|000012e0| 67 20 69 6e 20 74 68 65 | 20 73 74 72 0d 09 09 74 |g in the| str...t|
|000012f0| 65 72 6d 69 6e 61 74 65 | 64 09 3d 20 74 72 75 65 |erminate|d.= true|
|00001300| 3b 0d 09 09 0d 09 09 2f | 2f 20 57 68 65 6e 20 77 |;....../|/ When w|
|00001310| 65 27 72 65 20 6e 6f 74 | 20 69 6e 73 69 64 65 20 |e're not| inside |
|00001320| 61 20 73 74 72 69 6e 67 | 2c 20 69 67 72 6f 72 65 |a string|, igrore|
|00001330| 20 6f 64 64 62 61 6c 6c | 2f 77 68 69 74 65 73 70 | oddball|/whitesp|
|00001340| 61 63 65 20 63 68 61 72 | 73 20 28 63 68 61 72 73 |ace char|s (chars|
|00001350| 20 3c 3d 20 33 32 29 0d | 09 09 77 68 69 6c 65 20 | <= 32).|..while |
|00001360| 28 20 63 75 72 50 74 72 | 20 3c 20 65 6e 64 50 74 |( curPtr| < endPt|
|00001370| 72 20 26 26 20 2a 63 75 | 72 50 74 72 20 3c 3d 20 |r && *cu|rPtr <= |
|00001380| 27 20 27 20 29 0d 09 09 | 09 63 75 72 50 74 72 2b |' ' )...|.curPtr+|
|00001390| 2b 3b 0d 09 09 6c 61 73 | 74 50 74 72 20 3d 20 63 |+;...las|tPtr = c|
|000013a0| 75 72 50 74 72 3b 0d 0d | 09 09 09 0d 09 09 77 68 |urPtr;..|......wh|
|000013b0| 69 6c 65 20 28 20 63 75 | 72 50 74 72 20 3c 20 65 |ile ( cu|rPtr < e|
|000013c0| 6e 64 50 74 72 20 26 26 | 20 28 20 2a 63 75 72 50 |ndPtr &&| ( *curP|
|000013d0| 74 72 20 21 3d 20 63 41 | 72 67 53 65 70 61 72 61 |tr != cA|rgSepara|
|000013e0| 74 6f 72 20 7c 7c 20 21 | 20 74 65 72 6d 69 6e 61 |tor || !| termina|
|000013f0| 74 65 64 20 29 20 29 20 | 7b 0d 09 09 09 69 66 20 |ted ) ) |{....if |
|00001400| 28 20 2a 63 75 72 50 74 | 72 20 3d 3d 20 27 22 27 |( *curPt|r == '"'|
|00001410| 20 29 0d 09 09 09 09 74 | 65 72 6d 69 6e 61 74 65 | ).....t|erminate|
|00001420| 64 20 3d 20 21 20 74 65 | 72 6d 69 6e 61 74 65 64 |d = ! te|rminated|
|00001430| 3b 09 09 2f 2f 20 54 6f | 67 67 6c 65 20 73 74 72 |;..// To|ggle str|
|00001440| 69 6e 67 20 61 63 63 65 | 70 74 61 6e 63 65 0d 09 |ing acce|ptance..|
|00001450| 09 09 63 75 72 50 74 72 | 2b 2b 3b 0d 09 09 7d 0d |..curPtr|++;...}.|
|00001460| 09 09 0d 09 09 2f 2f 20 | 45 78 74 72 61 63 74 20 |.....// |Extract |
|00001470| 74 68 65 20 34 20 62 79 | 74 65 20 49 44 2e 2e 2e |the 4 by|te ID...|
|00001480| 0d 09 09 49 44 20 3d 20 | 30 3b 0d 09 09 77 68 69 |...ID = |0;...whi|
|00001490| 6c 65 20 28 20 2a 6c 61 | 73 74 50 74 72 20 21 3d |le ( *la|stPtr !=|
|000014a0| 20 27 3d 27 20 26 26 20 | 2a 6c 61 73 74 50 74 72 | '=' && |*lastPtr|
|000014b0| 20 21 3d 20 27 2d 27 20 | 26 26 20 63 75 72 50 74 | != '-' |&& curPt|
|000014c0| 72 20 3e 20 6c 61 73 74 | 50 74 72 20 29 20 7b 0d |r > last|Ptr ) {.|
|000014d0| 09 09 09 49 44 20 3d 20 | 28 49 44 20 3c 3c 20 38 |...ID = |(ID << 8|
|000014e0| 29 20 7c 20 28 28 75 6e | 73 69 67 6e 65 64 20 6c |) | ((un|signed l|
|000014f0| 6f 6e 67 29 20 2a 6c 61 | 73 74 50 74 72 29 3b 0d |ong) *la|stPtr);.|
|00001500| 09 09 09 6c 61 73 74 50 | 74 72 2b 2b 3b 0d 09 09 |...lastP|tr++;...|
|00001510| 7d 0d 09 09 6c 61 73 74 | 50 74 72 2b 2b 3b 09 09 |}...last|Ptr++;..|
|00001520| 09 09 09 2f 2f 20 53 6b | 69 70 20 74 68 65 20 27 |...// Sk|ip the '|
|00001530| 3d 27 0d 09 09 69 73 53 | 74 72 20 3d 20 2a 6c 61 |='...isS|tr = *la|
|00001540| 73 74 50 74 72 20 3d 3d | 20 27 5c 22 27 3b 09 2f |stPtr ==| '\"';./|
|00001550| 2f 20 54 68 69 73 20 61 | 72 67 20 69 73 20 61 20 |/ This a|rg is a |
|00001560| 73 74 72 69 6e 67 20 69 | 66 20 77 65 20 73 65 65 |string i|f we see|
|00001570| 20 61 20 22 0d 09 09 69 | 66 20 28 20 63 75 72 50 | a "...i|f ( curP|
|00001580| 74 72 20 3e 20 6c 61 73 | 74 50 74 72 20 29 20 7b |tr > las|tPtr ) {|
|00001590| 0d 09 09 09 69 66 20 28 | 20 69 73 53 74 72 20 29 |....if (| isStr )|
|000015a0| 20 7b 0d 09 09 09 09 73 | 2e 57 69 70 65 28 29 3b | {.....s|.Wipe();|
|000015b0| 0d 09 09 09 09 73 2e 41 | 70 70 65 6e 64 46 72 6f |.....s.A|ppendFro|
|000015c0| 6d 4d 65 74 61 28 20 6c | 61 73 74 50 74 72 2c 20 |mMeta( l|astPtr, |
|000015d0| 63 75 72 50 74 72 20 2d | 20 6c 61 73 74 50 74 72 |curPtr -| lastPtr|
|000015e0| 20 29 3b 0d 09 09 09 09 | 53 65 74 41 72 67 28 20 | );.....|SetArg( |
|000015f0| 49 44 2c 20 73 20 29 3b | 20 7d 0d 09 09 09 65 6c |ID, s );| }....el|
|00001600| 73 65 20 7b 0d 09 09 09 | 09 73 2e 41 73 73 69 67 |se {....|.s.Assig|
|00001610| 6e 28 20 6c 61 73 74 50 | 74 72 2c 20 63 75 72 50 |n( lastP|tr, curP|
|00001620| 74 72 20 2d 20 6c 61 73 | 74 50 74 72 20 29 3b 0d |tr - las|tPtr );.|
|00001630| 09 09 09 09 53 65 74 41 | 72 67 28 20 49 44 2c 20 |....SetA|rg( ID, |
|00001640| 73 2e 47 65 74 56 61 6c | 75 65 28 29 20 29 3b 0d |s.GetVal|ue() );.|
|00001650| 09 09 09 7d 0d 09 09 7d | 0d 09 09 63 75 72 50 74 |...}...}|...curPt|
|00001660| 72 2b 2b 3b 0d 09 7d 20 | 77 68 69 6c 65 20 28 20 |r++;..} |while ( |
|00001670| 63 75 72 50 74 72 20 3c | 20 65 6e 64 50 74 72 20 |curPtr <| endPtr |
|00001680| 29 3b 0d 7d 0d 0d 0d 0d | 76 6f 69 64 20 41 72 67 |);.}....|void Arg|
|00001690| 4c 69 73 74 3a 3a 53 65 | 74 41 72 67 73 28 20 43 |List::Se|tArgs( C|
|000016a0| 45 67 49 53 74 72 65 61 | 6d 2a 20 69 6e 53 74 72 |EgIStrea|m* inStr|
|000016b0| 65 61 6d 20 29 20 7b 0d | 09 55 74 69 6c 53 74 72 |eam ) {.|.UtilStr|
|000016c0| 20 73 74 72 2c 20 63 6f | 6e 66 69 67 54 65 78 74 | str, co|nfigText|
|000016d0| 3b 0d 09 6c 6f 6e 67 20 | 6e 75 6d 51 75 6f 74 65 |;..long |numQuote|
|000016e0| 73 2c 20 70 6f 73 2c 20 | 69 2c 20 65 6e 64 3b 0d |s, pos, |i, end;.|
|000016f0| 09 0d 09 0d 09 69 66 20 | 28 20 69 6e 53 74 72 65 |.....if |( inStre|
|00001700| 61 6d 20 2d 3e 20 6e 6f | 45 72 72 28 29 20 29 20 |am -> no|Err() ) |
|00001710| 7b 20 0d 09 0d 09 09 2f | 2f 20 52 65 61 64 20 61 |{ ...../|/ Read a|
|00001720| 6e 64 20 63 68 75 63 6b | 20 61 6e 79 20 63 6f 6d |nd chuck| any com|
|00001730| 6d 65 6e 74 73 0d 09 09 | 77 68 69 6c 65 20 28 20 |ments...|while ( |
|00001740| 69 6e 53 74 72 65 61 6d | 20 2d 3e 20 6e 6f 45 72 |inStream| -> noEr|
|00001750| 72 28 29 20 29 20 7b 0d | 09 09 09 69 6e 53 74 72 |r() ) {.|...inStr|
|00001760| 65 61 6d 20 2d 3e 20 52 | 65 61 64 6c 6e 28 20 73 |eam -> R|eadln( s|
|00001770| 74 72 20 29 3b 0d 09 09 | 09 70 6f 73 20 3d 20 31 |tr );...|.pos = 1|
|00001780| 3b 0d 09 09 09 6e 75 6d | 51 75 6f 74 65 73 20 3d |;....num|Quotes =|
|00001790| 20 30 3b 0d 09 09 09 64 | 6f 20 7b 0d 09 09 09 09 | 0;....d|o {.....|
|000017a0| 69 20 3d 20 73 74 72 2e | 63 6f 6e 74 61 69 6e 73 |i = str.|contains|
|000017b0| 28 20 22 2f 2f 22 2c 20 | 32 2c 20 70 6f 73 20 2d |( "//", |2, pos -|
|000017c0| 20 31 20 29 3b 0d 09 09 | 09 09 66 6f 72 20 28 20 | 1 );...|..for ( |
|000017d0| 3b 20 70 6f 73 20 3c 3d | 20 69 3b 20 70 6f 73 2b |; pos <=| i; pos+|
|000017e0| 2b 20 29 20 7b 0d 09 09 | 09 09 09 69 66 20 28 20 |+ ) {...|...if ( |
|000017f0| 73 74 72 2e 67 65 74 43 | 68 61 72 28 20 70 6f 73 |str.getC|har( pos|
|00001800| 20 29 20 3d 3d 20 27 5c | 22 27 20 29 0d 09 09 09 | ) == '\|"' )....|
|00001810| 09 09 09 6e 75 6d 51 75 | 6f 74 65 73 2b 2b 3b 0d |...numQu|otes++;.|
|00001820| 09 09 09 09 7d 0d 09 09 | 09 7d 20 77 68 69 6c 65 |....}...|.} while|
|00001830| 20 28 20 6e 75 6d 51 75 | 6f 74 65 73 20 25 20 32 | ( numQu|otes % 2|
|00001840| 20 3d 3d 20 31 20 26 26 | 20 69 20 3e 20 30 20 29 | == 1 &&| i > 0 )|
|00001850| 3b 0d 09 09 09 0d 09 09 | 09 69 66 20 28 20 69 20 |;.......|.if ( i |
|00001860| 3e 20 30 20 29 0d 09 09 | 09 09 73 74 72 2e 4b 65 |> 0 )...|..str.Ke|
|00001870| 65 70 28 20 69 20 2d 20 | 31 20 29 3b 0d 09 09 09 |ep( i - |1 );....|
|00001880| 63 6f 6e 66 69 67 54 65 | 78 74 2e 41 70 70 65 6e |configTe|xt.Appen|
|00001890| 64 28 20 73 74 72 20 29 | 3b 0d 09 09 7d 20 0d 09 |d( str )|;...} ..|
|000018a0| 09 69 6e 53 74 72 65 61 | 6d 20 2d 3e 20 74 68 72 |.inStrea|m -> thr|
|000018b0| 6f 77 45 72 72 28 20 63 | 4e 6f 45 72 72 20 29 3b |owErr( c|NoErr );|
|000018c0| 0d 09 09 0d 09 09 2f 2f | 20 52 65 6d 6f 76 65 20 |......//| Remove |
|000018d0| 62 6c 6f 63 6b 20 63 6f | 6d 6d 65 6e 74 73 0d 09 |block co|mments..|
|000018e0| 09 64 6f 20 7b 0d 09 09 | 09 69 20 3d 20 63 6f 6e |.do {...|.i = con|
|000018f0| 66 69 67 54 65 78 74 2e | 63 6f 6e 74 61 69 6e 73 |figText.|contains|
|00001900| 28 20 22 2f 2a 22 20 29 | 3b 0d 09 09 09 69 66 20 |( "/*" )|;....if |
|00001910| 28 20 69 20 3e 20 30 20 | 29 20 7b 0d 09 09 09 09 |( i > 0 |) {.....|
|00001920| 65 6e 64 20 3d 20 63 6f | 6e 66 69 67 54 65 78 74 |end = co|nfigText|
|00001930| 2e 63 6f 6e 74 61 69 6e | 73 28 20 22 2a 2f 22 20 |.contain|s( "*/" |
|00001940| 29 3b 0d 09 09 09 09 69 | 66 20 28 20 65 6e 64 20 |);.....i|f ( end |
|00001950| 3e 20 30 20 29 0d 09 09 | 09 09 09 63 6f 6e 66 69 |> 0 )...|...confi|
|00001960| 67 54 65 78 74 2e 52 65 | 6d 6f 76 65 28 20 69 2c |gText.Re|move( i,|
|00001970| 20 65 6e 64 20 2d 20 69 | 20 2b 20 32 20 29 3b 0d | end - i| + 2 );.|
|00001980| 09 09 09 7d 0d 09 09 7d | 20 77 68 69 6c 65 20 28 |...}...}| while (|
|00001990| 20 69 20 3e 20 30 20 26 | 26 20 65 6e 64 20 3e 20 | i > 0 &|& end > |
|000019a0| 30 20 29 3b 0d 09 09 0d | 09 09 2f 2f 20 50 61 72 |0 );....|..// Par|
|000019b0| 73 65 20 74 68 65 20 61 | 72 67 73 2f 64 69 63 74 |se the a|rgs/dict|
|000019c0| 2e 2e 2e 0d 09 09 53 65 | 74 41 72 67 73 28 20 63 |......Se|tArgs( c|
|000019d0| 6f 6e 66 69 67 54 65 78 | 74 20 29 3b 0d 09 7d 0d |onfigTex|t );..}.|
|000019e0| 7d 0d 0d 0d 0d 20 0d 0d | 76 6f 69 64 20 41 72 67 |}.... ..|void Arg|
|000019f0| 4c 69 73 74 3a 3a 45 78 | 70 6f 72 74 54 6f 28 20 |List::Ex|portTo( |
|00001a00| 55 74 69 6c 53 74 72 26 | 20 69 6f 53 74 72 2c 20 |UtilStr&| ioStr, |
|00001a10| 62 6f 6f 6c 20 69 6e 4c | 69 6e 65 42 72 65 61 6b |bool inL|ineBreak|
|00001a20| 73 20 29 20 63 6f 6e 73 | 74 20 7b 0d 09 43 45 67 |s ) cons|t {..CEg|
|00001a30| 4f 53 74 72 65 61 6d 20 | 6f 73 74 72 65 61 6d 3b |OStream |ostream;|
|00001a40| 0d 09 0d 09 45 78 70 6f | 72 74 54 6f 28 20 26 6f |....Expo|rtTo( &o|
|00001a50| 73 74 72 65 61 6d 2c 20 | 69 6e 4c 69 6e 65 42 72 |stream, |inLineBr|
|00001a60| 65 61 6b 73 20 29 3b 0d | 09 6f 73 74 72 65 61 6d |eaks );.|.ostream|
|00001a70| 2e 6d 4f 42 75 66 2e 53 | 77 61 70 28 20 69 6f 53 |.mOBuf.S|wap( ioS|
|00001a80| 74 72 20 29 3b 0d 7d 09 | 0d 0d 0d 0d 76 6f 69 64 |tr );.}.|....void|
|00001a90| 20 41 72 67 4c 69 73 74 | 3a 3a 45 78 70 6f 72 74 | ArgList|::Export|
|00001aa0| 54 6f 28 20 43 45 67 4f | 53 74 72 65 61 6d 2a 20 |To( CEgO|Stream* |
|00001ab0| 69 6f 53 74 72 65 61 6d | 2c 20 62 6f 6f 6c 20 69 |ioStream|, bool i|
|00001ac0| 6e 4c 69 6e 65 42 72 65 | 61 6b 73 20 29 20 63 6f |nLineBre|aks ) co|
|00001ad0| 6e 73 74 20 7b 0d 09 41 | 72 67 2a 20 61 72 67 20 |nst {..A|rg* arg |
|00001ae0| 3d 20 6d 48 65 61 64 41 | 72 67 3b 0d 09 0d 09 77 |= mHeadA|rg;....w|
|00001af0| 68 69 6c 65 20 28 61 72 | 67 29 20 7b 0d 09 09 61 |hile (ar|g) {...a|
|00001b00| 72 67 20 2d 3e 20 45 78 | 70 6f 72 74 54 6f 28 20 |rg -> Ex|portTo( |
|00001b10| 69 6f 53 74 72 65 61 6d | 20 29 3b 0d 09 09 61 72 |ioStream| );...ar|
|00001b20| 67 20 3d 20 61 72 67 20 | 2d 3e 20 6d 4e 65 78 74 |g = arg |-> mNext|
|00001b30| 3b 0d 09 09 69 66 20 28 | 20 61 72 67 20 29 20 7b |;...if (| arg ) {|
|00001b40| 0d 09 09 09 69 6f 53 74 | 72 65 61 6d 20 2d 3e 20 |....ioSt|ream -> |
|00001b50| 50 75 74 42 79 74 65 28 | 20 63 41 72 67 53 65 70 |PutByte(| cArgSep|
|00001b60| 61 72 61 74 6f 72 20 29 | 3b 0d 09 09 09 69 66 20 |arator )|;....if |
|00001b70| 28 20 69 6e 4c 69 6e 65 | 42 72 65 61 6b 73 20 29 |( inLine|Breaks )|
|00001b80| 0d 09 09 09 09 69 6f 53 | 74 72 65 61 6d 20 2d 3e |.....ioS|tream ->|
|00001b90| 20 57 72 69 74 65 6c 6e | 28 29 3b 0d 09 09 7d 0d | Writeln|();...}.|
|00001ba0| 09 7d 0d 7d 09 0d 0d 00 | 00 00 00 00 00 00 00 00 |.}.}....|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001c10| 6c 6c 20 62 65 20 63 72 | 65 61 74 65 64 2e 20 20 |ll be cr|eated. |
|00001c20| 54 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 6f 75 |To chang|e the ou|
|00001c30| 0b 41 72 67 4c 69 73 74 | 2e 63 70 70 6c 73 65 76 |.ArgList|.cpplsev|
|00001c40| 69 67 33 70 33 5f 74 68 | 65 5f 77 6f 72 6c 64 2e |ig3p3_th|e_world.|
|00001c50| 02 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 ae fb 46 8d 00 00 | 13 1f 00 00 01 9a 12 00 |....F...|........|
|00001c80| 00 00 00 ff ff ff ff 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00001ca0| 00 00 00 00 62 65 67 73 | 6f 62 6a 64 00 00 00 25 |....begs|objd...%|
|00001cb0| 63 61 70 74 00 00 00 04 | 01 46 00 10 01 01 01 01 |capt....|.F......|
|00001cc0| 01 01 00 00 00 02 00 00 | 00 01 00 00 00 00 ff ff |........|........|
|00001cd0| ff ff 00 00 8f 65 6e 64 | 73 6f 62 6a 64 00 00 00 |.....end|sobjd...|
|00001ce0| 3e 70 75 73 68 00 00 00 | 05 00 42 00 12 01 01 00 |>push...|..B.....|
|00001cf0| 01 01 00 00 00 01 56 00 | 00 00 12 00 00 00 00 ff |......V.|........|
|00001d00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 03 | 00 04 00 4d 00 02 02 46 |........|...M...F|
|00001d30| 02 62 00 4d 00 02 02 46 | 02 62 b3 b1 57 e2 00 00 |.b.M...F|.b..W...|
|00001d40| 08 93 00 00 08 a2 00 00 | 08 8e 01 00 00 00 00 04 |........|........|
|00001d50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00001d60| 00 00 00 46 04 fa b1 10 | 18 fa 00 00 00 1c 00 46 |...F....|.......F|
|00001d70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001d80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001d90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+