ACSMDownloader

ACSMDownloader Git Source Tree

Root/include/rmsdk/uft.h

Source at commit 1f582f55f35b3a6898ced8d388e043ee81168bd1 created 4 months 21 days ago.
By Grégory Soutadé, First clean working version
1/*
2 File automatically generated by SOAdvancedDissector.py
3 More information at http://indefero.soutade.fr/p/soadvanceddissector
4*/
5
6#ifndef _UFT_H
7#define _UFT_H
8
9#include <rib.h>
10
11namespace uft {
12
13 class ADEPTName;
14 class AllocBase;
15 class Allocator;
16 class ValueParser;
17 class AtomListParser;
18 class AtomParser;
19 class BitmapImage;
20 class BitmapImageStruct;
21 class BlockHead;
22 class Buffer;
23 class BufferManager;
24 class BufferPin;
25 class BufferRec;
26 class BufferStruct;
27 class CachingValue;
28 class ChainingParser;
29 class ContextParser;
30 class Date;
31 class DateStruct;
32 class Dict;
33 class DictStruct;
34 class DoubleParser;
35 class EVName;
36 class EnumParser;
37 class ErrorHandler;
38 class Float;
39 class FloatParser;
40 class IntParser;
41 class IntRectStruct;
42 class LazyRef;
43 class LazyRefStruct;
44 class LongParser;
45 class LowercasingAtomParser;
46 class ParserContext;
47 class MSchemaParserContext;
48 class MutableRef;
49 class MutableRefAccessor;
50 class MutableRefAccessorImpl;
51 class NameParser;
52 class NullParser;
53 class Opaque;
54 class OpaqueStruct;
55 class ParseErrorHandler;
56 class PassThruParser;
57 class PlatformString;
58 class QName;
59 class QNameParser;
60 class QNameStruct;
61 class Real;
62 class RealPoint;
63 class RealRect;
64 class Runtime;
65 class RuntimeImpl;
66 class Set;
67 class SimpleRefStruct;
68 class SizedBlock;
69 class StdBufferManager;
70 class String;
71 class StringBlock;
72 class StringBuffer;
73 class StringBufferStruct;
74 class StringParser;
75 class StructBlock;
76 class StructDescriptor;
77 class SubBufferManager;
78 class Token;
79 class TransientStringBuffer;
80 class Tuple;
81 class UFTInitializer;
82 class URL;
83 class URLStruct;
84 class UTF16String;
85 class Value;
86 class ValueRef;
87 class Vector;
88 class VectorStruct;
89 class WeakRef;
90
91
92 class ADEPTName
93 {
94 public:
95 ADEPTName(uft::String const&);
96
97 ~ADEPTName();
98
99 };
100
101 class NoThrow
102 {
103
104 };
105
106 class ValueType
107 {
108
109 };
110
111 class CacheFlushContext
112 {
113
114 };
115
116 class CacheCostInfo
117 {
118 };
119
120 class AllocBase
121 {
122 public:
123 void operator delete(void*);
124 void operator delete(void*, uft::NoThrow const&);
125 void operator delete[](void*);
126 void operator delete[](void*, uft::NoThrow const&);
127 void* operator new(unsigned int);
128 void* operator new(unsigned int, uft::NoThrow const&);
129 void* operator new[](unsigned int);
130 void* operator new[](unsigned int, uft::NoThrow const&);
131
132 };
133
134 class Allocator
135 {
136 public:
137 void free(void*);
138 void freeClientMaintainsSize(void*, unsigned int);
139 void malloc(unsigned int);
140 void mallocClientMaintainsSize(unsigned int);
141 void mallocClientMaintainsSizeThrow(unsigned int);
142 void mallocThrow(unsigned int);
143
144 };
145
146 class ValueParser
147 {
148 public:
149 virtual void parse(uft::ParserContext*, uft::Value const&) const = 0;
150 virtual void getValidStartChars() const = 0;
151
152 void* s_atomListParser;
153 void* s_atomParser;
154 void* s_contextParser;
155 void* s_doubleParser;
156 void* s_floatParser;
157 void* s_intParser;
158 void* s_longParser;
159 void* s_lowercasingAtomParser;
160 void* s_nameParser;
161 void* s_nullParser;
162 void* s_passthruParser;
163 void* s_qnameParser;
164 void* s_stringParser;
165
166 };
167
168 class AtomListParser: public uft::ValueParser
169 {
170 public:
171 virtual void parse(uft::ParserContext*, uft::Value const&) const;
172 virtual void getValidStartChars() const;
173
174 };
175
176 class AtomParser: public uft::ValueParser
177 {
178 public:
179 virtual void parse(uft::ParserContext*, uft::Value const&) const;
180 virtual void getValidStartChars() const;
181
182 };
183
184 class BitmapImage
185 {
186 public:
187 BitmapImage();
188 BitmapImage(unsigned int, unsigned int, uft::String);
189
190 };
191
192 class BitmapImageStruct
193 {
194 public:
195 BitmapImageStruct();
196 BitmapImageStruct(uft::BitmapImageStruct const&);
197
198 ~BitmapImageStruct();
199
200 void addUpdatedRect(uft::IntRectStruct const&);
201 void getPixelSize(uft::String const&);
202 void init(uft::Buffer const&, unsigned int, uft::String const&, uft::IntRectStruct const&);
203 void staticInit();
204 void validate(int, int);
205
206 void* s_descriptor;
207
208 };
209
210 class BlockHead
211 {
212 public:
213 void addRef();
214 void allocBlock(uft::StructDescriptor const*);
215 void allocBlock(uft::ValueType, unsigned int);
216 void clone() const;
217 void freeBlock(uft::BlockHead*);
218 void getType() const;
219 void isString() const;
220 void isStruct() const;
221 void release();
222 void toString() const;
223
224 };
225
226 class Buffer
227 {
228 public:
229 Buffer();
230 Buffer(uft::Buffer const&);
231 Buffer(uft::String const&);
232 Buffer(uft::String const&, unsigned int, unsigned int);
233 Buffer(unsigned char const*, unsigned int);
234 Buffer(unsigned int, uft::BufferManager*, unsigned int);
235 Buffer(unsigned int, unsigned int);
236
237 ~Buffer();
238
239 void append(uft::Buffer const&);
240 void append(unsigned char const*, unsigned int);
241 void buffer() const;
242 void clone() const;
243 void ensure(unsigned int);
244 void ensureWritableAndResize(unsigned int);
245 void insert(unsigned int, uft::Buffer const&);
246 void insert(unsigned int, unsigned char const*, unsigned int);
247 void isImmovable() const;
248 void isInstanceOf(uft::Value const&);
249 void isResizable() const;
250 void isWritable() const;
251 void length() const;
252 void nullValue();
253 void operator=(uft::Buffer const&);
254 void pin() const;
255 void readonly() const;
256 void region(unsigned int) const;
257 void region(unsigned int, unsigned int) const;
258 void splice(unsigned int, unsigned int, uft::Buffer const&);
259 void splice(unsigned int, unsigned int, unsigned char const*, unsigned int);
260 void unpin() const;
261 void writableBuffer() const;
262
263 };
264
265 class BufferManager
266 {
267 public:
268 virtual ~BufferManager();
269 virtual void alloc(uft::BufferRec*, unsigned int, unsigned int) = 0;
270 virtual void realloc(uft::BufferRec*, unsigned int) = 0;
271 virtual void clone(uft::BufferRec const*, uft::BufferRec*, unsigned int) = 0;
272 virtual void pin(uft::BufferRec*) = 0;
273 virtual void unpin(uft::BufferRec*) = 0;
274 virtual void free(uft::BufferRec*) = 0;
275 virtual void toString(uft::BufferRec const*) = 0;
276
277 void getBuffer(uft::Buffer const&);
278
279 };
280
281 class BufferPin
282 {
283 public:
284 BufferPin(uft::Buffer const&);
285
286 ~BufferPin();
287
288 void buffer() const;
289
290 };
291
292 class BufferRec
293 {
294 public:
295 };
296
297 class BufferStruct
298 {
299 public:
300 BufferStruct();
301 BufferStruct(uft::BufferStruct const&);
302 BufferStruct(unsigned int, uft::BufferManager*, unsigned int);
303
304 ~BufferStruct();
305
306 void query(uft::Value const&, void*);
307
308 };
309
310 class CachingValue
311 {
312 public:
313 void flush(uft::CacheFlushContext*);
314 void isInstanceOf(uft::Value const&);
315 void queryCost(uft::CacheCostInfo*);
316
317 };
318
319 class ChainingParser: public uft::ValueParser
320 {
321 public:
322 ChainingParser(uft::ValueParser const**, int);
323 ChainingParser(uft::ValueParser const*, uft::ValueParser const*);
324 ChainingParser(uft::ValueParser const*, uft::ValueParser const*, uft::ValueParser const*);
325
326 virtual void parse(uft::ParserContext*, uft::Value const&) const;
327 virtual void getValidStartChars() const;
328 virtual ~ChainingParser();
329
330 void init(uft::ValueParser const**, int);
331
332 };
333
334 class ContextParser: public uft::ValueParser
335 {
336 public:
337 virtual void parse(uft::ParserContext*, uft::Value const&) const;
338 virtual void getValidStartChars() const;
339
340 };
341
342 class Date
343 {
344 public:
345 Date();
346 Date(long long);
347 Date(uft::Date const&);
348
349 ~Date();
350
351 void breakUpTime(long long, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
352 void getCurrentDate();
353 void getCurrentTime();
354 void getDateStruct() const;
355 void getDayOfMonth() const;
356 void getDayOfWeek() const;
357 void getDayOfYear() const;
358 void getHours() const;
359 void getMilliseconds() const;
360 void getMinutes() const;
361 void getMonth() const;
362 void getSeconds() const;
363 void getTime() const;
364 void getYear() const;
365 void getYear1970GMT();
366 void isInstanceOf(uft::Value const&);
367 void makeTime(int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
368 void nullValue();
369 void operator=(uft::Date const&);
370 void timeFromW3CDTFString(uft::String const&);
371 void toDateString(long long);
372 void toMMDDYYYYString(long long);
373 void toString() const;
374 void toString(long long);
375 void toW3CDTFString() const;
376 void toW3CDTFString(long long);
377
378 };
379
380 class DateStruct
381 {
382 public:
383 void getTime();
384 void toString() const;
385 void toW3CDTFString() const;
386
387 };
388
389 class Dict
390 {
391 public:
392 Dict();
393 Dict(uft::Dict const&);
394 Dict(uft::Value const*, uft::Value const*, unsigned int);
395 Dict(uft::Value const*, unsigned int);
396 Dict(unsigned int);
397
398 ~Dict();
399
400class Action {};
401
402 void contains(uft::Value const&) const;
403 void emptyValue();
404 void get(uft::Value const&) const;
405 void getSelf() const;
406 void getValueLoc(uft::Value const&, uft::Dict::Action) const;
407 void isInstanceOf(uft::Value const&);
408 void makeEmpty() const;
409 void mergeDict(uft::Dict const&, bool) const;
410 void nextKey(unsigned int, uft::Value const**, uft::Value**) const;
411 void nullValue();
412 void operator=(uft::Dict const&);
413 void set(uft::Value const&, uft::Value const&) const;
414
415 };
416
417 class DictStruct
418 {
419 public:
420 DictStruct(uft::DictStruct const&);
421 DictStruct(uft::Value const*, uft::Value const*, unsigned int);
422 DictStruct(uft::Value const*, unsigned int);
423 DictStruct(unsigned int);
424
425 ~DictStruct();
426
427 void getValueLoc(uft::Value const&, unsigned int);
428 void makeEmpty();
429 void nextKey(unsigned int, uft::Value const**, uft::Value**) const;
430 void setCapacity(unsigned int, bool);
431 void sort();
432uft::String toString() const;
433
434 };
435
436 class DoubleParser: public uft::ValueParser
437 {
438 public:
439 virtual void parse(uft::ParserContext*, uft::Value const&) const;
440 virtual void getValidStartChars() const;
441
442 };
443
444 class EVName
445 {
446 public:
447 ~EVName();
448
449 };
450
451 class EnumParser: public uft::ValueParser
452 {
453 public:
454 EnumParser(uft::Set const&, bool);
455
456 ~EnumParser();
457
458 virtual void parse(uft::ParserContext*, uft::Value const&) const;
459 virtual void getValidStartChars() const;
460
461 };
462
463 class ErrorHandler
464 {
465 public:
466 ErrorHandler();
467
468 virtual ~ErrorHandler();
469 virtual void reportStateError(uft::String const&) = 0;
470 virtual void reportProcessError(uft::String const&) = 0;
471 virtual void getURLString() = 0;
472 virtual void changeURL(uft::String const&) = 0;
473
474 };
475
476 class Float
477 {
478 public:
479 Float(float);
480
481 ~Float();
482
483 };
484
485 class FloatParser: public uft::ValueParser
486 {
487 public:
488 virtual void parse(uft::ParserContext*, uft::Value const&) const;
489 virtual void getValidStartChars() const;
490
491 };
492
493 class IntParser: public uft::ValueParser
494 {
495 public:
496 virtual void parse(uft::ParserContext*, uft::Value const&) const;
497 virtual void getValidStartChars() const;
498
499 };
500
501 class IntRectStruct
502 {
503 public:
504 void contains(uft::IntRectStruct const&) const;
505 void intersectWidth(uft::IntRectStruct const&);
506 void makeEmpty();
507 void staticInit();
508 void toString() const;
509 void unionWith(uft::IntRectStruct const&);
510
511 void* s_descriptor;
512
513 };
514
515 class LazyRef
516 {
517 public:
518 LazyRef(uft::Value const&, uft::Value (*)(uft::Value const&), bool);
519
520 };
521
522 class LazyRefStruct
523 {
524 public:
525 void copy(uft::StructDescriptor const*, void*, void const*);
526 void destroy(uft::StructDescriptor const*, void*);
527 void extractValue(bool);
528 void flush(uft::StructDescriptor const*, void*, uft::CacheFlushContext*);
529 void query(uft::StructDescriptor const*, void*, uft::Value const&, void*);
530 void queryCached(uft::StructDescriptor const*, void*, uft::Value const&, void*);
531 void toString(uft::StructDescriptor const*, void*);
532
533 };
534
535 class LongParser: public uft::ValueParser
536 {
537 public:
538 virtual void parse(uft::ParserContext*, uft::Value const&) const;
539 virtual void getValidStartChars() const;
540
541 };
542
543 class LowercasingAtomParser: public uft::ValueParser
544 {
545 public:
546 virtual void parse(uft::ParserContext*, uft::Value const&) const;
547 virtual void getValidStartChars() const;
548
549 };
550
551 class ParserContext
552 {
553 public:
554 virtual void resolveNSPrefix(uft::String const&) = 0;
555 virtual void prefixBindingsChanged() = 0;
556 virtual void getNodeType() = 0;
557 virtual void getErrorHandler();
558
559 void getMSchemaContext();
560
561 };
562
563 class MSchemaParserContext: public uft::ParserContext
564 {
565 public:
566 virtual void resolveNSPrefix(uft::String const&);
567 virtual void prefixBindingsChanged();
568 virtual void getNodeType();
569 virtual void getErrorHandler();
570
571 };
572
573 class MutableRef
574 {
575 public:
576 void assign(uft::Value const&) const;
577
578 };
579
580 class MutableRefAccessor
581 {
582 public:
583 virtual void assign(uft::Value const&, uft::Value const&) = 0;
584
585 void* CLASS_ID;
586
587 };
588
589 class MutableRefAccessorImpl: public uft::MutableRefAccessor
590 {
591 public:
592 virtual void assign(uft::Value const&, uft::Value const&);
593
594 void* s_instance;
595
596 };
597
598 class NameParser: public uft::ValueParser
599 {
600 public:
601 virtual void parse(uft::ParserContext*, uft::Value const&) const;
602 virtual void getValidStartChars() const;
603
604 };
605
606 class NullParser: public uft::ValueParser
607 {
608 public:
609 virtual void parse(uft::ParserContext*, uft::Value const&) const;
610 virtual void getValidStartChars() const;
611
612 };
613
614 class Opaque
615 {
616 public:
617 Opaque(unsigned int);
618
619 void getStoredValue() const;
620 void isInstanceOf(uft::Value const&);
621
622 };
623
624 class OpaqueStruct
625 {
626 public:
627 void staticInit();
628
629 void* s_descriptor;
630
631 };
632
633 class ParseErrorHandler: public uft::ErrorHandler
634 {
635 public:
636 virtual ~ParseErrorHandler();
637 virtual void reportStateError(uft::String const&);
638 virtual void reportProcessError(uft::String const&);
639 virtual void getURLString();
640 virtual void changeURL(uft::String const&);
641 virtual void setURLString(uft::String const&);
642
643 };
644
645 class PassThruParser: public uft::ValueParser
646 {
647 public:
648 virtual void parse(uft::ParserContext*, uft::Value const&) const;
649 virtual void getValidStartChars() const;
650
651 };
652
653 class PlatformString
654 {
655 public:
656 PlatformString(char const*);
657 PlatformString(char const*, unsigned int);
658 PlatformString(uft::PlatformString const&);
659 PlatformString(uft::String const&);
660 PlatformString(uft::String const&, unsigned int, unsigned int);
661 PlatformString(uft::StringBuffer const&);
662 PlatformString(uft::UTF16String const&);
663 PlatformString(uft::UTF16String const&, unsigned int, unsigned int);
664 PlatformString(unsigned short const*);
665 PlatformString(unsigned short const*, unsigned int);
666
667 void initUTF16(unsigned short const*, unsigned int);
668 void initUTF8(char const*, unsigned int);
669
670 };
671
672 class QName
673 {
674 public:
675 QName(uft::String const&);
676 QName(uft::String const&, bool);
677 QName(uft::String const&, uft::String const&, uft::String const&);
678
679 ~QName();
680
681 void atomID() const;
682 void fromCanonicalString(uft::String);
683 void getCanonicalNS(uft::String const&);
684 void getCanonicalName() const;
685 void getCanonicalPrefix(uft::String const&);
686 void getLocalName() const;
687 void getNamespaceURI() const;
688 void getPrefix() const;
689 void getTriplet() const;
690
691 };
692
693 class QNameParser: public uft::ValueParser
694 {
695 public:
696 virtual void parse(uft::ParserContext*, uft::Value const&) const;
697 virtual void getValidStartChars() const;
698
699 };
700
701 class QNameStruct
702 {
703 public:
704 QNameStruct(uft::String const&, uft::String const&, uft::String const&);
705
706 void getTriplet() const;
707
708 };
709
710 class Real
711 {
712 public:
713 };
714
715 class RealPoint
716 {
717 public:
718 };
719
720 class RealRect
721 {
722 public:
723 void intersectWith(uft::RealRect const&);
724 void makeEmpty();
725 void toString();
726 void unionWith(uft::RealRect const&);
727
728 };
729
730 class Runtime
731 {
732 public:
733 virtual ~Runtime();
734 virtual void allocUFTBlock(unsigned int) = 0;
735 virtual void allocUFTBlock(unsigned int, char const*, int) = 0;
736 virtual void freeUFTBlock(void*) = 0;
737 virtual void allocCachingBlock(unsigned int) = 0;
738 virtual void allocCachingBlock(unsigned int, char const*, int) = 0;
739 virtual void freeCachingBlock(void*) = 0;
740 virtual void allocBlock(unsigned int) = 0;
741 virtual void allocBlock(unsigned int, char const*, int) = 0;
742 virtual void freeBlock(unsigned int, void*) = 0;
743 virtual void iterateCache(unsigned int*, uft::CachingValue*) = 0;
744 virtual void finishCacheIteration(unsigned int) = 0;
745 virtual void getHeapSize() = 0;
746 virtual void getStructDescriptor(uft::String const&) = 0;
747 virtual void getAtom(uft::String const&) = 0;
748 virtual void getAtom(unsigned int) = 0;
749 virtual void removeAtom(uft::StringBlock*) = 0;
750 virtual void initPredefinedAtoms(char**, unsigned int) = 0;
751 virtual void getStdBufferManager() = 0;
752
753 void staticInit();
754
755 void* s_instance;
756
757 };
758
759 class RuntimeImpl: public uft::Runtime
760 {
761 public:
762 RuntimeImpl();
763
764 virtual ~RuntimeImpl();
765 virtual void allocUFTBlock(unsigned int);
766 virtual void allocUFTBlock(unsigned int, char const*, int);
767 virtual void freeUFTBlock(void*);
768 virtual void allocCachingBlock(unsigned int);
769 virtual void allocCachingBlock(unsigned int, char const*, int);
770 virtual void freeCachingBlock(void*);
771 virtual void allocBlock(unsigned int);
772 virtual void allocBlock(unsigned int, char const*, int);
773 virtual void freeBlock(unsigned int, void*);
774 virtual void iterateCache(unsigned int*, uft::CachingValue*);
775 virtual void finishCacheIteration(unsigned int);
776 virtual void getHeapSize();
777 virtual void getStructDescriptor(uft::String const&);
778 virtual void getAtom(uft::String const&);
779 virtual void getAtom(unsigned int);
780 virtual void removeAtom(uft::StringBlock*);
781 virtual void initPredefinedAtoms(char**, unsigned int);
782 virtual void getStdBufferManager();
783
784 void alloc(unsigned int);
785 void getIndex(uft::StringBlock*, unsigned int*);
786 void initAllocator();
787 void resize(unsigned int);
788 void shutdownAllocator();
789
790 };
791
792 class Set
793 {
794 public:
795 Set();
796 Set(uft::Set const&);
797 Set(uft::Value const&);
798 Set(uft::Value const&, uft::Value const&);
799 Set(uft::Value const&, uft::Value const&, uft::Value const&);
800 Set(uft::Value const&, uft::Value const&, uft::Value const&, uft::Value const&);
801 Set(uft::Value const&, uft::Value const&, uft::Value const&, uft::Value const&, uft::Value const&);
802 Set(unsigned int);
803
804 ~Set();
805
806class Action {};
807
808 void add(uft::Value const&) const;
809 void contains(uft::Value const&) const;
810 void emptyValue();
811 void init(uft::Value const*, unsigned int, unsigned int);
812 void length() const;
813 void makeEmpty() const;
814 void manage(uft::Value const&, uft::Set::Action) const;
815 void nextItem(unsigned int, uft::Value const**) const;
816 void operator=(uft::Set const&);
817 void setCapacity(unsigned int) const;
818
819 };
820
821 class SimpleRefStruct
822 {
823 public:
824 void copy(uft::StructDescriptor const*, void*, void const*);
825 void destroy(uft::StructDescriptor const*, void*);
826 void destroyWeak(uft::StructDescriptor const*, void*);
827 void flush(uft::StructDescriptor const*, void*, uft::CacheFlushContext*);
828 void query(uft::StructDescriptor const*, void*, uft::Value const&, void*);
829 void queryCached(uft::StructDescriptor const*, void*, uft::Value const&, void*);
830 void queryMutable(uft::StructDescriptor const*, void*, uft::Value const&, void*);
831 void queryMutableCached(uft::StructDescriptor const*, void*, uft::Value const&, void*);
832 void queryWeak(uft::StructDescriptor const*, void*, uft::Value const&, void*);
833 void toString(uft::StructDescriptor const*, void*);
834
835 };
836
837 class SizedBlock
838 {
839 public:
840 void getByteSize() const;
841
842 };
843
844 class StdBufferManager: public uft::BufferManager
845 {
846 public:
847 virtual ~StdBufferManager();
848 virtual void alloc(uft::BufferRec*, unsigned int, unsigned int);
849 virtual void realloc(uft::BufferRec*, unsigned int);
850 virtual void clone(uft::BufferRec const*, uft::BufferRec*, unsigned int);
851 virtual void pin(uft::BufferRec*);
852 virtual void unpin(uft::BufferRec*);
853 virtual void free(uft::BufferRec*);
854 virtual void toString(uft::BufferRec const*);
855
856 void getInstance();
857
858 };
859
860 class String
861 {
862 public:
863 String();
864 String(char const*);
865 String(char const*, unsigned int);
866 String(uft::PlatformString const&);
867 String(uft::String const&);
868 String(uft::TransientStringBuffer const&);
869 String(uft::UTF16String const&);
870 String(uft::UTF16String const&, unsigned int, unsigned int);
871 String(unsigned short const*);
872 String(unsigned short const*, unsigned int);
873
874 ~String();
875
876 void atof() const;
877 void atof(char const*);
878 void atof(char const*, unsigned int);
879 void atom() const;
880 void atom(char const*);
881 void atom(char const*, unsigned int);
882 void atom(unsigned int);
883 void atomID() const;
884 char* c_str() const;
885 void compare(char const*) const;
886 void compare(uft::String const&) const;
887 void compareRegion(unsigned int, char const*, unsigned int) const;
888 void compareRegion(unsigned int, uft::String const&, unsigned int, unsigned int) const;
889 void endsWith(char const*) const;
890 void endsWith(uft::String const&) const;
891 void filename(unsigned int) const;
892 void findFirstNotOf(char const*, unsigned int) const;
893 void findFirstNotOf(char const*, unsigned int, unsigned int, unsigned int) const;
894 void findFirstNotOf(uft::String const&, unsigned int, unsigned int) const;
895 void findFirstNotOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
896 void findFirstOf(char const*, unsigned int) const;
897 void findFirstOf(char const*, unsigned int, unsigned int, unsigned int) const;
898 void findFirstOf(uft::String const&, unsigned int, unsigned int) const;
899 void findFirstOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
900 void findLastOf(char const*, unsigned int, unsigned int) const;
901 void findLastOf(char const*, unsigned int, unsigned int, unsigned int) const;
902 void findLastOf(uft::String const&, unsigned int, unsigned int) const;
903 void findLastOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
904 void getStringBlock() const;
905 void indexOf(char const*, unsigned int) const;
906 void indexOf(char const*, unsigned int, unsigned int, unsigned int) const;
907 void indexOf(char, unsigned int, unsigned int) const;
908 void indexOf(uft::String const&, unsigned int, unsigned int) const;
909 void indexOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
910 void initUTF16(unsigned short const*, unsigned int);
911 bool isEmpty() const;
912 bool isInstanceOf(uft::Value const&);
913 bool isXMLName(char const*, unsigned int);
914 int lastIndexOf(char const* token, unsigned int endCharacterIdx) const;
915 int lastIndexOf(char const*, unsigned int, unsigned int, unsigned int) const;
916 int lastIndexOf(char, unsigned int, unsigned int) const;
917 int lastIndexOf(uft::String const&, unsigned int, unsigned int) const;
918 int lastIndexOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
919 int length() const;
920 uft::String lowercase() const;
921 uft::String nullValue();
922 bool operator!=(char const*) const;
923 bool operator!=(uft::String const&) const;
924 uft::TransientStringBuffer operator+(char const*) const;
925 uft::TransientStringBuffer operator+(int) const;
926 uft::TransientStringBuffer operator+(uft::String const&) const;
927 uft::TransientStringBuffer operator+(uft::Value const&) const;
928 String operator=(uft::String const&);
929 bool operator==(char const*) const;
930 bool operator==(uft::String const&) const;
931 void parseASCIIIdent(char const*, uft::String*, bool, char const*);
932 void parseDouble(char const*, double*, char const*);
933 void parseFloat(char const*, float*, char const*);
934 void parseInt(char const*, int*, char const*);
935 void parseLong(char const*, long long*, char const*);
936 void parseNonWhitespace(char const*, uft::String*, char const*);
937 void predefinedAtom(unsigned int);
938 void replaceAll(char, char);
939 void replaceAll(uft::String const&, uft::String const&);
940 void skipWhitespace(char const*, char const*);
941 void skipWhitespaceOrComma(char const*, bool*, char const*);
942 void startsWith(char const*) const;
943 void startsWith(uft::String const&) const;
944uft::TransientStringBuffer substr(unsigned int start, unsigned int end) const;
945 void toString(double);
946 void toString(float);
947 void toString(int);
948 void toString(long long);
949 void uppercase() const;
950 void utf16length() const;
951 char* utf8() const;
952 void utf8RoundOffLen(char const*, unsigned int);
953 void utf8count(char const*, unsigned int, unsigned int);
954
955 void* s_rawAtomList;
956
957 };
958
959 class StringBlock
960 {
961 public:
962 void atomID() const;
963 char* utf8();
964
965 };
966
967 class StringBuffer
968 {
969 public:
970 StringBuffer(int);
971 StringBuffer(uft::Buffer const&, unsigned int, unsigned int);
972 StringBuffer(uft::String const&);
973 StringBuffer(uft::String const&, unsigned int);
974 StringBuffer(uft::String const&, unsigned int, unsigned int);
975 StringBuffer(uft::StringBuffer const&);
976 StringBuffer(uft::Value const&, char*, unsigned int);
977
978 ~StringBuffer();
979
980 void append(char const*);
981 void append(char const*, unsigned int);
982 void append(char);
983 void append(float);
984 void append(int);
985 void append(uft::String const&);
986 void append(uft::StringBuffer const&);
987 void append(uft::Value const&);
988 void compare(char const*) const;
989 void compare(uft::String const&) const;
990 void compare(uft::StringBuffer const&) const;
991 void compareRegion(unsigned int, char const*, unsigned int) const;
992 void compareRegion(unsigned int, uft::String const&, unsigned int, unsigned int) const;
993 void compareRegion(unsigned int, uft::StringBuffer const&, unsigned int, unsigned int) const;
994 void endsWith(char const*) const;
995 void endsWith(char const*, unsigned int) const;
996 void endsWith(uft::String const&) const;
997 void endsWith(uft::StringBuffer const&) const;
998 void findFirstOf(char const*, unsigned int) const;
999 void findFirstOf(char const*, unsigned int, unsigned int, unsigned int) const;
1000 void findFirstOf(uft::String const&, unsigned int, unsigned int) const;
1001 void findFirstOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
1002 void findLastOf(char const*, unsigned int, unsigned int) const;
1003 void findLastOf(char const*, unsigned int, unsigned int, unsigned int) const;
1004 void findLastOf(uft::String const&, unsigned int, unsigned int) const;
1005 void findLastOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
1006 void indexOf(char const*, unsigned int) const;
1007 void indexOf(char const*, unsigned int, unsigned int, unsigned int) const;
1008 void indexOf(char, unsigned int, unsigned int) const;
1009 void indexOf(uft::String const&, unsigned int, unsigned int) const;
1010 void indexOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
1011 void isXMLName() const;
1012 void lastIndexOf(char const*, unsigned int) const;
1013 void lastIndexOf(char const*, unsigned int, unsigned int, unsigned int) const;
1014 void lastIndexOf(char, unsigned int, unsigned int) const;
1015 void lastIndexOf(uft::String const&, unsigned int, unsigned int) const;
1016 void lastIndexOf(uft::StringBuffer const&, unsigned int, unsigned int) const;
1017 void lowercase() const;
1018 void operator!=(char const*) const;
1019 void operator!=(uft::String const&) const;
1020 void operator!=(uft::StringBuffer const&) const;
1021 void operator==(char const*) const;
1022 void operator==(uft::String const&) const;
1023 void operator==(uft::StringBuffer const&) const;
1024 void splice(unsigned int, unsigned int, char const*);
1025 void splice(unsigned int, unsigned int, char const*, unsigned int);
1026 void splice(unsigned int, unsigned int, uft::String const&);
1027 void splice(unsigned int, unsigned int, uft::String const&, unsigned int, unsigned int);
1028 void splice(unsigned int, unsigned int, uft::StringBuffer const&);
1029 void splice(unsigned int, unsigned int, uft::StringBuffer const&, unsigned int, unsigned int);
1030 void splice(unsigned int, unsigned int, uft::Value const&);
1031 void startsWith(char const*) const;
1032 void startsWith(char const*, unsigned int) const;
1033 void startsWith(uft::String const&) const;
1034 void startsWith(uft::StringBuffer const&) const;
1035 void substr(unsigned int) const;
1036 void substr(unsigned int, unsigned int) const;
1037 void trimWhitespace() const;
1038 void uppercase() const;
1039 void utf16length() const;
1040 void utf8() const;
1041 void writableBuffer() const;
1042 void writableBuffer(unsigned int) const;
1043
1044 };
1045
1046 class StringBufferStruct
1047 {
1048 public:
1049 StringBufferStruct(uft::Buffer const&, unsigned int, unsigned int);
1050 StringBufferStruct(uft::Value const&, char*, unsigned int);
1051
1052 ~StringBufferStruct();
1053
1054 };
1055
1056 class StringParser: public uft::ValueParser
1057 {
1058 public:
1059 virtual void parse(uft::ParserContext*, uft::Value const&) const;
1060 virtual void getValidStartChars() const;
1061
1062 };
1063
1064 class StructBlock
1065 {
1066 public:
1067 void getStructDescriptor();
1068 void getStructPtr();
1069 void staticInit();
1070
1071 };
1072
1073 class StructDescriptor
1074 {
1075 public:
1076 StructDescriptor();
1077
1078 };
1079
1080 class SubBufferManager: public uft::BufferManager
1081 {
1082 public:
1083 SubBufferManager(uft::Buffer const&, unsigned int);
1084
1085 virtual ~SubBufferManager();
1086 virtual void alloc(uft::BufferRec*, unsigned int, unsigned int);
1087 virtual void realloc(uft::BufferRec*, unsigned int);
1088 virtual void clone(uft::BufferRec const*, uft::BufferRec*, unsigned int);
1089 virtual void pin(uft::BufferRec*);
1090 virtual void unpin(uft::BufferRec*);
1091 virtual void free(uft::BufferRec*);
1092 virtual void toString(uft::BufferRec const*);
1093
1094 void init(uft::BufferRec*, uft::Buffer const&, unsigned int, unsigned int, unsigned int);
1095
1096 };
1097
1098 class Token
1099 {
1100 public:
1101 ~Token();
1102
1103 void newToken();
1104
1105 };
1106
1107 class TransientStringBuffer
1108 {
1109 public:
1110 TransientStringBuffer(uft::String const&);
1111 TransientStringBuffer(uft::String const&, unsigned int, unsigned int);
1112 TransientStringBuffer(uft::TransientStringBuffer const&);
1113
1114 ~TransientStringBuffer();
1115
1116 void operator+(char const*);
1117 void operator+(int);
1118 void operator+(uft::String const&);
1119 void operator+(uft::Value const&);
1120
1121 };
1122
1123 class Tuple
1124 {
1125 public:
1126 Tuple();
1127 Tuple(uft::SizedBlock*);
1128 Tuple(uft::Value const&);
1129 Tuple(uft::Value const&, uft::Value const&);
1130 Tuple(uft::Value const&, uft::Value const&, uft::Value const&);
1131 Tuple(uft::Value const&, uft::Value const&, uft::Value const&, uft::Value const&);
1132 Tuple(uft::Value const*, unsigned int);
1133
1134 ~Tuple();
1135
1136 void append(uft::Value const&) const;
1137 void contains(uft::Value const&) const;
1138 void emptyValue();
1139 void insert(unsigned int, uft::Value const&) const;
1140 void range(unsigned int, unsigned int) const;
1141 void remove(unsigned int) const;
1142 void replace(unsigned int, uft::Value const&) const;
1143
1144 };
1145
1146 class UFTInitializer
1147 {
1148 public:
1149 UFTInitializer();
1150
1151 ~UFTInitializer();
1152
1153 };
1154
1155 class URL
1156 {
1157 public:
1158 URL(uft::String const&);
1159
1160 ~URL();
1161
1162 void decode(uft::StringBuffer const&);
1163 void encode(uft::StringBuffer const&, bool);
1164 void getBaseURL() const;
1165 void getDomain() const;
1166 void getFragment() const;
1167 void getHost() const;
1168 void getLogin() const;
1169 void getParams() const;
1170 void getParser();
1171 void getPassword() const;
1172 void getPath() const;
1173 void getPort() const;
1174 void getProtocol() const;
1175 void getQuery() const;
1176 void initAbsoluteURL(uft::String const&, uft::String const&);
1177 void initFileURL(uft::String const&);
1178 void initOtherURL(uft::String const&, uft::String const&);
1179 void initRelativeURL(uft::String const&);
1180 void isAbsolute() const;
1181 void isSelfReferring() const;
1182 void parse(char const*, uft::Value*);
1183 void resolve(uft::URL const&) const;
1184
1185 };
1186
1187 class URLStruct
1188 {
1189 public:
1190 void constructStandardBaseURL() const;
1191 void query(uft::Value const&, void*);
1192 void toString() const;
1193
1194 };
1195
1196 class UTF16StringBlock {};
1197 class UTF16String
1198 {
1199 public:
1200 UTF16String(char const*);
1201 UTF16String(char const*, unsigned int);
1202 UTF16String(uft::PlatformString const&);
1203 UTF16String(uft::String const&);
1204 UTF16String(uft::String const&, unsigned int, unsigned int);
1205 UTF16String(uft::StringBuffer const&);
1206 UTF16String(uft::StringBuffer const&, unsigned int, unsigned int);
1207 UTF16String(uft::UTF16StringBlock*);
1208
1209 ~UTF16String();
1210
1211 void initPlatform(char const*, unsigned int);
1212 void initUTF8(char const*, unsigned int);
1213 void isWhiteSpace(unsigned short);
1214 void length() const;
1215 void str16len(unsigned short const*);
1216 void utf16() const;
1217 void utf16length(char const*, unsigned int);
1218
1219 void* s_empty;
1220
1221 };
1222
1223 class Value
1224 {
1225 public:
1226 Value();
1227 Value(bool);
1228 Value(char const*);
1229 Value(char const*, unsigned int);
1230 Value(float);
1231 Value(uft::Value const&);
1232
1233 ~Value();
1234
1235 void addRefStructPtr(void*);
1236 void allocStruct(uft::StructDescriptor const*);
1237 Value clone() const;
1238 void createdCircularReference(uft::Value const&);
1239 void destroy();
1240 void enterCircularReferenceCleanup(void*);
1241 void exitCircularReferenceCleanup(void*);
1242 void extractValue() const;
1243 void fromStructPtr(void*);
1244 BlockHead* getBlock() const;
1245 void getNumber() const;
1246 void getStructDescriptor() const;
1247 void init(char const*);
1248 void init(char const*, unsigned int);
1249 void init(char const*, unsigned int, bool, bool);
1250 void init(double);
1251 void init(float);
1252 void init(long long);
1253 void init(uft::Value const&);
1254 void init(unsigned short const*);
1255 void init(unsigned short const*, unsigned int);
1256 bool isAtom() const;
1257 bool isFalse() const;
1258 bool isInstanceOf(uft::StructDescriptor const*) const;
1259 bool isNull() const;
1260 bool isNumber() const;
1261 bool isRefCounted() const;
1262 bool isString() const;
1263 bool isStringBuffer() const;
1264 bool isStruct() const;
1265 bool isTrue() const;
1266 void makeNumber(double);
1267 Value nullValue();
1268 Value operator=(uft::Value const&);
1269 void ptrEq(uft::Value const&) const;
1270 void query(uft::Value const&, void*) const;
1271 void releaseStructPtr(void*);
1272 void setNull();
1273uft::String toString() const;
1274 void* toStringOrNull() const;
1275 void uniqueRef();
1276
1277 void* sNull;
1278
1279 };
1280
1281 class ValueRef
1282 {
1283 public:
1284 ValueRef(uft::Value const&, unsigned int);
1285
1286 };
1287
1288 class Vector
1289 {
1290 public:
1291 Vector(uft::Value const*, unsigned int);
1292 Vector(uft::Value);
1293 Vector(uft::Value, uft::Value const&);
1294 Vector(uft::Value, uft::Value const&, uft::Value const&);
1295 Vector(uft::Value, uft::Value const&, uft::Value const&, uft::Value const&);
1296 Vector(uft::Vector const&);
1297 Vector(unsigned int, unsigned int);
1298
1299 ~Vector();
1300
1301virtual void vectorfn0(void) {}
1302virtual void vectorfn1(void) {}
1303 void append(uft::Value const&) const;
1304 void appendElements(uft::Tuple const&) const;
1305 void appendElements(uft::Tuple const&, unsigned int, unsigned int) const;
1306 void appendElements(uft::Vector const&) const;
1307 void appendElements(uft::Vector const&, unsigned int, unsigned int) const;
1308 void capacity() const;
1309 void emptyValue();
1310 void findFirst(uft::Value const&) const;
1311 void init(unsigned int, unsigned int);
1312 void insert(unsigned int, uft::Value const&) const;
1313 void isInstanceOf(uft::Value const&);
1314 void lastElement() const;
1315 void lcs(uft::Vector const&);
1316 int length() const;
1317 void makeEmpty() const;
1318 void nullValue();
1319Vector operator=(uft::Vector const&);
1320 uft::Value operator[](unsigned int) const;
1321 void pop() const;
1322 void range(unsigned int, unsigned int) const;
1323 void rangeToTuple(unsigned int, unsigned int) const;
1324 void remove(unsigned int) const;
1325 void setCapacity(unsigned int) const;
1326 void setLength(unsigned int) const;
1327 void toTuple() const;
1328
1329 };
1330
1331 class VectorStruct
1332 {
1333 public:
1334 VectorStruct(uft::VectorStruct const&);
1335 VectorStruct(unsigned int, unsigned int);
1336
1337 ~VectorStruct();
1338
1339 void setCapacity(unsigned int);
1340 void setLength(unsigned int);
1341 void set_manage(uft::Value const&, uft::Set::Action);
1342 void set_nextItem(unsigned int, uft::Value const**) const;
1343 void toString() const;
1344
1345 };
1346
1347 class WeakRef
1348 {
1349 public:
1350 WeakRef(uft::Value const&);
1351
1352 };
1353
1354 template<typename T>
1355 class sref{
1356 public:
1357 ~sref();
1358
1359 bool isInstanceOf(uft::Value const&);
1360 void nullValue();
1361 T* operator->() const;
1362 void operator=(uft::sref<T> const&);
1363 sref();
1364 sref(uft::sref<T> const&);
1365 };
1366
1367 class TraceFlag{};
1368
1369 void UFT_FORMAT_ARGS(char const*, ...);
1370 void allocBlock(unsigned int);
1371 void allocBlock(unsigned int, char const*, int);
1372 void finishCacheIteration(unsigned int);
1373 void flushCache(uft::CacheFlushContext*);
1374 void freeBlock(unsigned int, void*);
1375 void getHeapSize();
1376 void hash(unsigned char const*, unsigned int, unsigned int);
1377 void hash4(unsigned int);
1378 void hash8(unsigned long long);
1379 void iterateCache(unsigned int*);
1380 void operator+(char const*, uft::String const&);
1381 void trace(uft::TraceFlag, char const*, char const*);
1382 void traceFlush();
1383
1384 void* isLittleEndian;
1385 void* s_bufferDescriptor;
1386 void* s_cacheRefDescriptor;
1387 void* s_dateDescriptor;
1388 void* s_dictDescriptor;
1389 void* s_doubleDescriptor;
1390 void* s_lazyCacheRefDescriptor;
1391 void* s_lazyRefDescriptor;
1392 void* s_longIntDescriptor;
1393 void* s_mutableCacheRefDescriptor;
1394 void* s_mutableRefDescriptor;
1395 void* s_qnameDescriptor;
1396 void* s_setDescriptor;
1397 void* s_simpleRefDescriptor;
1398 void* s_stringBufferDescriptor;
1399 void* s_tokenDescriptor;
1400 void* s_urlDescriptor;
1401 void* s_vectorDescriptor;
1402 void* s_weakRefDescriptor;
1403
1404}
1405
1406
1407
1408#endif // _UFT_H

Archive Download this file

Branches