summaryrefslogtreecommitdiffstats
path: root/doc/html/qstring-h.html
blob: d71af174517d53a2bc8f627308359087f5761921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/ntqstring.h:1 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>ntqstring.h Include File</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
 <a href="index.html">
<font color="#004faf">Home</font></a>
 | <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
 | <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
 | <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
 | <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
 | <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>ntqstring.h</h1>

<p>This is the verbatim text of the ntqstring.h include file. It is provided only for illustration; the copyright remains with Trolltech.
<hr>
<pre>
/****************************************************************************
** $Id: qt/ntqstring.h   3.3.8   edited Jan 11 14:38 $
**
** Definition of the TQString class, and related Unicode functions.
**
** Created : 920609
**
** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
**
** This file is part of the tools module of the TQt GUI Toolkit.
**
** This file may be used under the terms of the GNU General Public
** License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Alternatively you may (at your option) use any
** later version of the GNU General Public License if such license has
** been publicly approved by Trolltech ASA (or its successors, if any)
** and the KDE Free TQt Foundation.
**
** Please review the following information to ensure GNU General
** Public Licensing requirements will be met:
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
** If you are unsure which license is appropriate for your use, please
** review the following information:
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
** or contact the sales department at sales@trolltech.com.
**
** This file may be used under the terms of the Q Public License as
** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
** included in the packaging of this file.  Licensees holding valid TQt
** Commercial licenses may use this file in accordance with the TQt
** Commercial License Agreement provided with the Software.
**
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
** herein.
**
**********************************************************************/

#ifndef TQSTRING_H
#define TQSTRING_H

#ifndef QT_H
#include "ntqcstring.h"
#endif // QT_H

#ifndef QT_NO_CAST_ASCII
#include &lt;limits.h&gt;
#endif

#ifndef TQT_NO_STL
#if defined ( Q_CC_MSVC_NET ) &amp;&amp; _MSC_VER &lt; 1310 // Avoids nasty warning for xlocale, line 450
#  pragma warning ( push )
#  pragma warning ( disable : 4189 )
#  include &lt;string&gt;
#  pragma warning ( pop )
#else
#  include &lt;string&gt;
#endif
#if defined(Q_WRONG_SB_CTYPE_MACROS) &amp;&amp; defined(_SB_CTYPE_MACROS)
#undef _SB_CTYPE_MACROS
#endif
#endif


/*****************************************************************************
  TQString class
 *****************************************************************************/

class TQRegExp;
class TQString;
class TQCharRef;
template &lt;class T&gt; class TQDeepCopy;

class Q_EXPORT TQChar {
public:
    TQChar();
    TQChar( char c );
    TQChar( uchar c );
    TQChar( uchar c, uchar r );
    TQChar( const TQChar&amp; c ); // ### remove in 4.0 to allow compiler optimization
    TQChar( ushort rc );
    TQChar( short rc );
    TQChar( uint rc );
    TQChar( int rc );

    QT_STATIC_CONST TQChar null;            // 0000
    QT_STATIC_CONST TQChar replacement;     // FFFD
    QT_STATIC_CONST TQChar byteOrderMark;     // FEFF
    QT_STATIC_CONST TQChar byteOrderSwapped;     // FFFE
    QT_STATIC_CONST TQChar nbsp;            // 00A0

    // Unicode information

    enum Category
    {
        NoCategory,

        Mark_NonSpacing,          //   Mn
        Mark_SpacingCombining,    //   Mc
        Mark_Enclosing,           //   Me

        Number_DecimalDigit,      //   Nd
        Number_Letter,            //   Nl
        Number_Other,             //   No

        Separator_Space,          //   Zs
        Separator_Line,           //   Zl
        Separator_Paragraph,      //   Zp

        Other_Control,            //   Cc
        Other_Format,             //   Cf
        Other_Surrogate,          //   Cs
        Other_PrivateUse,         //   Co
        Other_NotAssigned,        //   Cn

        Letter_Uppercase,         //   Lu
        Letter_Lowercase,         //   Ll
        Letter_Titlecase,         //   Lt
        Letter_Modifier,          //   Lm
        Letter_Other,             //   Lo

        Punctuation_Connector,    //   Pc
        Punctuation_Dash,         //   Pd
        Punctuation_Dask = Punctuation_Dash, // oops
        Punctuation_Open,         //   Ps
        Punctuation_Close,        //   Pe
        Punctuation_InitialQuote, //   Pi
        Punctuation_FinalQuote,   //   Pf
        Punctuation_Other,        //   Po

        Symbol_Math,              //   Sm
        Symbol_Currency,          //   Sc
        Symbol_Modifier,          //   Sk
        Symbol_Other              //   So
    };

    enum Direction
    {
        DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON,
        DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN
    };

    enum Decomposition
    {
        Single, Canonical, Font, NoBreak, Initial, Medial,
        Final, Isolated, Circle, Super, Sub, Vertical,
        Wide, Narrow, Small, Square, Compat, Fraction
    };

    enum Joining
    {
        OtherJoining, Dual, Right, Center
    };

    enum CombiningClass
    {
        Combining_BelowLeftAttached       = 200,
        Combining_BelowAttached           = 202,
        Combining_BelowRightAttached      = 204,
        Combining_LeftAttached            = 208,
        Combining_RightAttached           = 210,
        Combining_AboveLeftAttached       = 212,
        Combining_AboveAttached           = 214,
        Combining_AboveRightAttached      = 216,

        Combining_BelowLeft               = 218,
        Combining_Below                   = 220,
        Combining_BelowRight              = 222,
        Combining_Left                    = 224,
        Combining_Right                   = 226,
        Combining_AboveLeft               = 228,
        Combining_Above                   = 230,
        Combining_AboveRight              = 232,

        Combining_DoubleBelow             = 233,
        Combining_DoubleAbove             = 234,
        Combining_IotaSubscript           = 240
    };

    // ****** WHEN ADDING FUNCTIONS, CONSIDER ADDING TO TQCharRef TOO

    int digitValue() const;
    TQChar lower() const;
    TQChar upper() const;

    Category category() const;
    Direction direction() const;
    Joining joining() const;
    bool mirrored() const;
    TQChar mirroredChar() const;
    const TQString &amp;decomposition() const; // ### return just TQString in 4.0
    Decomposition decompositionTag() const;
    unsigned char combiningClass() const;

    char latin1() const { return ucs &gt; 0xff ? 0 : (char) ucs; }
    ushort unicode() const { return ucs; }
#ifdef Q_NO_PACKED_REFERENCE
    ushort &amp;unicode() { return *(&amp;ucs); }
#else
    ushort &amp;unicode() { return ucs; }
#endif
#ifndef QT_NO_CAST_ASCII
    // like all ifdef'd code this is undocumented
    operator char() const { return latin1(); }
#endif

    bool isNull() const { return unicode()==0; }
    bool isPrint() const;
    bool isPunct() const;
    bool isSpace() const;
    bool isMark() const;
    bool isLetter() const;
    bool isNumber() const;
    bool isLetterOrNumber() const;
    bool isDigit() const;
    bool isSymbol() const;

    uchar cell() const { return ((uchar) ucs &amp; 0xff); }
    uchar row() const { return ((uchar) (ucs&gt;&gt;8)&amp;0xff); }
    void setCell( uchar cell ) { ucs = (ucs &amp; 0xff00) + cell; }
    void setRow( uchar row ) { ucs = (((ushort) row)&lt;&lt;8) + (ucs&amp;0xff); }

    static bool networkOrdered() {
	int wordSize;
	bool bigEndian = FALSE;
	tqSysInfo( &amp;wordSize, &amp;bigEndian );
	return bigEndian;
    }

    friend inline bool operator==( char ch, TQChar c );
    friend inline bool operator==( TQChar c, char ch );
    friend inline bool operator==( TQChar c1, TQChar c2 );
    friend inline bool operator!=( TQChar c1, TQChar c2 );
    friend inline bool operator!=( char ch, TQChar c );
    friend inline bool operator!=( TQChar c, char ch );
    friend inline bool operator&lt;=( TQChar c, char ch );
    friend inline bool operator&lt;=( char ch, TQChar c );
    friend inline bool operator&lt;=( TQChar c1, TQChar c2 );

private:
    ushort ucs;
#if defined(QT_QSTRING_UCS_4)
    ushort grp;
#endif
} TQ_PACKED;

inline TQChar::TQChar() : ucs( 0 )
#ifdef QT_QSTRING_UCS_4
    , grp( 0 )
#endif
{
}
inline TQChar::TQChar( char c ) : ucs( (uchar)c )
#ifdef QT_QSTRING_UCS_4
    , grp( 0 )
#endif
{
}
inline TQChar::TQChar( uchar c ) : ucs( c )
#ifdef QT_QSTRING_UCS_4
    , grp( 0 )
#endif
{
}
inline TQChar::TQChar( uchar c, uchar r ) : ucs( (r &lt;&lt; 8) | c )
#ifdef QT_QSTRING_UCS_4
    , grp( 0 )
#endif
{
}
inline TQChar::TQChar( const TQChar&amp; c ) : ucs( c.ucs )
#ifdef QT_QSTRING_UCS_4
   , grp( c.grp )
#endif
{
}

inline TQChar::TQChar( ushort rc ) : ucs( rc )
#ifdef QT_QSTRING_UCS_4
    , grp( 0 )
#endif
{
}
inline TQChar::TQChar( short rc ) : ucs( (ushort) rc )
#ifdef QT_QSTRING_UCS_4
    , grp( 0 )
#endif
{
}
inline TQChar::TQChar( uint rc ) : ucs(  (ushort ) (rc &amp; 0xffff) )
#ifdef QT_QSTRING_UCS_4
    , grp( (ushort) ((rc &gt;&gt; 16) &amp; 0xffff) )
#endif
{
}
inline TQChar::TQChar( int rc ) : ucs( (ushort) (rc &amp; 0xffff) )
#ifdef QT_QSTRING_UCS_4
    , grp( (ushort) ((rc &gt;&gt; 16) &amp; 0xffff) )
#endif
{
}

inline bool operator==( char ch, TQChar c )
{
    return ((uchar) ch) == c.ucs;
}

inline bool operator==( TQChar c, char ch )
{
    return ((uchar) ch) == c.ucs;
}

inline bool operator==( TQChar c1, TQChar c2 )
{
    return c1.ucs == c2.ucs;
}

inline bool operator!=( TQChar c1, TQChar c2 )
{
    return c1.ucs != c2.ucs;
}

inline bool operator!=( char ch, TQChar c )
{
    return ((uchar)ch) != c.ucs;
}

inline bool operator!=( TQChar c, char ch )
{
    return ((uchar) ch) != c.ucs;
}

inline bool operator&lt;=( TQChar c, char ch )
{
    return c.ucs &lt;= ((uchar) ch);
}

inline bool operator&lt;=( char ch, TQChar c )
{
    return ((uchar) ch) &lt;= c.ucs;
}

inline bool operator&lt;=( TQChar c1, TQChar c2 )
{
    return c1.ucs &lt;= c2.ucs;
}

inline bool operator&gt;=( TQChar c, char ch ) { return ch &lt;= c; }
inline bool operator&gt;=( char ch, TQChar c ) { return c &lt;= ch; }
inline bool operator&gt;=( TQChar c1, TQChar c2 ) { return c2 &lt;= c1; }
inline bool operator&lt;( TQChar c, char ch ) { return !(ch&lt;=c); }
inline bool operator&lt;( char ch, TQChar c ) { return !(c&lt;=ch); }
inline bool operator&lt;( TQChar c1, TQChar c2 ) { return !(c2&lt;=c1); }
inline bool operator&gt;( TQChar c, char ch ) { return !(ch&gt;=c); }
inline bool operator&gt;( char ch, TQChar c ) { return !(c&gt;=ch); }
inline bool operator&gt;( TQChar c1, TQChar c2 ) { return !(c2&gt;=c1); }

// internal
struct Q_EXPORT TQStringData : public TQShared {
    TQStringData() :
        TQShared(), unicode(0), ascii(0), len(0), issimpletext(TRUE), maxl(0), islatin1(FALSE) { ref(); }
    TQStringData(TQChar *u, uint l, uint m) :
        TQShared(), unicode(u), ascii(0), len(l), issimpletext(FALSE), maxl(m), islatin1(FALSE) { }
    ~TQStringData() { if ( unicode ) delete[] ((char*)unicode);
                     if ( ascii ) delete[] ascii; }

    void deleteSelf();
    TQChar *unicode;
    char *ascii;
    void setDirty() {
	if ( ascii ) {
	    delete [] ascii;
	    ascii = 0;
	}
	issimpletext = FALSE;
    }
#ifdef Q_OS_MAC9
    uint len;
#else
    uint len : 30;
#endif
    uint issimpletext : 1;
#ifdef Q_OS_MAC9
    uint maxl;
#else
    uint maxl : 30;
#endif
    uint islatin1 : 1;

private:
#if defined(TQ_DISABLE_COPY)
    TQStringData( const TQStringData&amp; );
    TQStringData&amp; operator=( const TQStringData&amp; );
#endif
};


class Q_EXPORT TQString
{
public:
    TQString();                                  // make null string
    TQString( TQChar );                           // one-char string
    TQString( const TQString &amp; );                 // impl-shared copy
    TQString( const TQByteArray&amp; );               // deep copy
    TQString( const TQChar* unicode, uint length ); // deep copy
#ifndef QT_NO_CAST_ASCII
    TQString( const char *str );                 // deep copy
#endif
#ifndef TQT_NO_STL
    TQString( const std::string&amp; );                   // deep copy
#endif
    ~TQString();

    TQString    &amp;operator=( const TQString &amp; );   // impl-shared copy
    TQString    &amp;operator=( const char * );      // deep copy
#ifndef TQT_NO_STL
    TQString    &amp;operator=( const std::string&amp; );     // deep copy
#endif
    TQString    &amp;operator=( const TQCString&amp; );   // deep copy
    TQString    &amp;operator=( TQChar c );
    TQString    &amp;operator=( char c );

    QT_STATIC_CONST TQString null;

    bool        isNull()        const;
    bool        isEmpty()       const;
    uint        length()        const;
    void        truncate( uint pos );

    TQString &amp;   fill( TQChar c, int len = -1 );

    TQString     copy()  const;

    TQString arg( long a, int fieldWidth = 0, int base = 10 ) const;
    TQString arg( ulong a, int fieldWidth = 0, int base = 10 ) const;
    TQString arg( TQ_LLONG a, int fieldwidth=0, int base=10 ) const;
    TQString arg( TQ_ULLONG a, int fieldwidth=0, int base=10 ) const;
    TQString arg( int a, int fieldWidth = 0, int base = 10 ) const;
    TQString arg( uint a, int fieldWidth = 0, int base = 10 ) const;
    TQString arg( short a, int fieldWidth = 0, int base = 10 ) const;
    TQString arg( ushort a, int fieldWidth = 0, int base = 10 ) const;
    TQString arg( double a, int fieldWidth = 0, char fmt = 'g',
		 int prec = -1 ) const;
    TQString arg( char a, int fieldWidth = 0 ) const;
    TQString arg( TQChar a, int fieldWidth = 0 ) const;
    TQString arg( const TQString&amp; a, int fieldWidth = 0 ) const;
    TQString arg( const TQString&amp; a1, const TQString&amp; a2 ) const;
    TQString arg( const TQString&amp; a1, const TQString&amp; a2,
		 const TQString&amp; a3 ) const;
    TQString arg( const TQString&amp; a1, const TQString&amp; a2, const TQString&amp; a3,
		 const TQString&amp; a4 ) const;

#ifndef QT_NO_SPRINTF
    TQString    &amp;sprintf( const char* format, ... )
#if defined(Q_CC_GNU) &amp;&amp; !defined(__INSURE__)
        __attribute__ ((format (printf, 2, 3)))
#endif
        ;
#endif

    int         find( TQChar c, int index=0, bool cs=TRUE ) const;
    int         find( char c, int index=0, bool cs=TRUE ) const;
    int         find( const TQString &amp;str, int index=0, bool cs=TRUE ) const;
#ifndef QT_NO_REGEXP
    int         find( const TQRegExp &amp;, int index=0 ) const;
#endif
#ifndef QT_NO_CAST_ASCII
    int         find( const char* str, int index=0 ) const;
#endif
    int         findRev( TQChar c, int index=-1, bool cs=TRUE) const;
    int         findRev( char c, int index=-1, bool cs=TRUE) const;
    int         findRev( const TQString &amp;str, int index=-1, bool cs=TRUE) const;
#ifndef QT_NO_REGEXP
    int         findRev( const TQRegExp &amp;, int index=-1 ) const;
#endif
#ifndef QT_NO_CAST_ASCII
    int         findRev( const char* str, int index=-1 ) const;
#endif
    int         contains( TQChar c, bool cs=TRUE ) const;
    int         contains( char c, bool cs=TRUE ) const
                    { return contains(TQChar(c), cs); }
#ifndef QT_NO_CAST_ASCII
    int         contains( const char* str, bool cs=TRUE ) const;
#endif
    int         contains( const TQString &amp;str, bool cs=TRUE ) const;
#ifndef QT_NO_REGEXP
    int         contains( const TQRegExp &amp; ) const;
#endif

    enum SectionFlags {
	SectionDefault             = 0x00,
	SectionSkipEmpty           = 0x01,
	SectionIncludeLeadingSep   = 0x02,
	SectionIncludeTrailingSep  = 0x04,
	SectionCaseInsensitiveSeps = 0x08
    };
    TQString     section( TQChar sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const;
    TQString     section( char sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const;
#ifndef QT_NO_CAST_ASCII
    TQString      section( const char *in_sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const;
#endif
    TQString     section( const TQString &amp;in_sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const;
#ifndef QT_NO_REGEXP
    TQString     section( const TQRegExp &amp;reg, int start, int end = 0xffffffff, int flags = SectionDefault ) const;
#endif

    TQString     left( uint len )  const;
    TQString     right( uint len ) const;
    TQString     mid( uint index, uint len=0xffffffff) const;

    TQString     leftJustify( uint width, TQChar fill=' ', bool trunc=FALSE)const;
    TQString     rightJustify( uint width, TQChar fill=' ',bool trunc=FALSE)const;

    TQString     lower() const;
    TQString     upper() const;

    TQString     stripWhiteSpace()       const;
    TQString     simplifyWhiteSpace()    const;

    TQString    &amp;insert( uint index, const TQString &amp; );
#ifndef QT_NO_CAST_ASCII
    TQString    &amp;insert( uint index, const TQByteArray &amp; );
    TQString    &amp;insert( uint index, const char * );
#endif
    TQString    &amp;insert( uint index, const TQChar*, uint len );
    TQString    &amp;insert( uint index, TQChar );
    TQString    &amp;insert( uint index, char c ) { return insert(index,TQChar(c)); }
    TQString    &amp;append( char );
    TQString    &amp;append( TQChar );
    TQString    &amp;append( const TQString &amp; );
#ifndef QT_NO_CAST_ASCII
    TQString    &amp;append( const TQByteArray &amp; );
    TQString    &amp;append( const char * );
#endif
#if !defined(TQT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII)
    TQString    &amp;append( const std::string&amp; );
#endif
    TQString    &amp;prepend( char );
    TQString    &amp;prepend( TQChar );
    TQString    &amp;prepend( const TQString &amp; );
#ifndef QT_NO_CAST_ASCII
    TQString    &amp;prepend( const TQByteArray &amp; );
    TQString    &amp;prepend( const char * );
#endif
#if !defined(TQT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII)
    TQString    &amp;prepend( const std::string&amp; );
#endif
    TQString    &amp;remove( uint index, uint len );
#if defined(Q_QDOC)
    TQString    &amp;remove( const TQString &amp; str, bool cs = TRUE );
#else
    // ### TQt 4.0: merge these two into one, and remove Q_QDOC hack
    TQString    &amp;remove( const TQString &amp; );
    TQString    &amp;remove( const TQString &amp;, bool cs );
#endif
    TQString    &amp;remove( TQChar c );
    TQString    &amp;remove( char c )
    { return remove( TQChar(c) ); }
#ifndef QT_NO_CAST_ASCII
    TQString    &amp;remove( const char * );
#endif
#ifndef QT_NO_REGEXP
    TQString    &amp;remove( const TQRegExp &amp; );
#endif
    TQString    &amp;replace( uint index, uint len, const TQString &amp; );
    TQString    &amp;replace( uint index, uint len, const TQChar*, uint clen );
    TQString    &amp;replace( uint index, uint len, TQChar );
    TQString    &amp;replace( uint index, uint len, char c )
    { return replace( index, len, TQChar(c) ); }
#if defined(Q_QDOC)
    TQString    &amp;replace( TQChar c, const TQString &amp; after, bool cs = TRUE );
    TQString    &amp;replace( char c, const TQString &amp; after, bool cs = TRUE );
    TQString    &amp;replace( const TQString &amp; before, const TQString &amp; after,
			 bool cs = TRUE );
#else
    // ### TQt 4.0: merge these two into one, and remove Q_QDOC hack
    TQString    &amp;replace( TQChar c, const TQString &amp; );
    TQString    &amp;replace( TQChar c, const TQString &amp;, bool );

    // ### TQt 4.0: merge these two into one, and remove Q_QDOC hack
    TQString    &amp;replace( char c, const TQString &amp; after )
    { return replace( TQChar(c), after, TRUE ); }
    TQString    &amp;replace( char c, const TQString &amp; after, bool cs )
    { return replace( TQChar(c), after, cs ); }

    // ### TQt 4.0: merge these two into one, and remove Q_QDOC hack
    TQString    &amp;replace( const TQString &amp;, const TQString &amp; );
    TQString    &amp;replace( const TQString &amp;, const TQString &amp;, bool );
#endif
#ifndef QT_NO_REGEXP_CAPTURE
    TQString    &amp;replace( const TQRegExp &amp;, const TQString &amp; );
#endif
    TQString    &amp;replace( TQChar, TQChar );

    short       toShort( bool *ok=0, int base=10 )      const;
    ushort      toUShort( bool *ok=0, int base=10 )     const;
    int         toInt( bool *ok=0, int base=10 )        const;
    uint        toUInt( bool *ok=0, int base=10 )       const;
    long        toLong( bool *ok=0, int base=10 )       const;
    ulong       toULong( bool *ok=0, int base=10 )      const;
    TQ_LLONG     toLongLong( bool *ok=0, int base=10 )   const;
    TQ_ULLONG    toULongLong( bool *ok=0, int base=10 )  const;
    float       toFloat( bool *ok=0 )   const;
    double      toDouble( bool *ok=0 )  const;

    TQString    &amp;setNum( short, int base=10 );
    TQString    &amp;setNum( ushort, int base=10 );
    TQString    &amp;setNum( int, int base=10 );
    TQString    &amp;setNum( uint, int base=10 );
    TQString    &amp;setNum( long, int base=10 );
    TQString    &amp;setNum( ulong, int base=10 );
    TQString    &amp;setNum( TQ_LLONG, int base=10 );
    TQString    &amp;setNum( TQ_ULLONG, int base=10 );
    TQString    &amp;setNum( float, char f='g', int prec=6 );
    TQString    &amp;setNum( double, char f='g', int prec=6 );

    static TQString number( long, int base=10 );
    static TQString number( ulong, int base=10);
    static TQString number( TQ_LLONG, int base=10 );
    static TQString number( TQ_ULLONG, int base=10);
    static TQString number( int, int base=10 );
    static TQString number( uint, int base=10);
    static TQString number( double, char f='g', int prec=6 );

    void        setExpand( uint index, TQChar c );

    TQString    &amp;operator+=( const TQString &amp;str );
#ifndef QT_NO_CAST_ASCII
    TQString    &amp;operator+=( const TQByteArray &amp;str );
    TQString    &amp;operator+=( const char *str );
#endif
#if !defined(TQT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII)
    TQString    &amp;operator+=( const std::string&amp; );
#endif
    TQString    &amp;operator+=( TQChar c );
    TQString    &amp;operator+=( char c );

    TQChar at( uint i ) const
        { return i &lt; d-&gt;len ? d-&gt;unicode[i] : TQChar::null; }
    TQChar operator[]( int i ) const { return at((uint)i); }
    TQCharRef at( uint i );
    TQCharRef operator[]( int i );

    TQChar constref(uint i) const
        { return at(i); }
    TQChar&amp; ref(uint i)
        { // Optimized for easy-inlining by simple compilers.
            if ( d-&gt;count != 1 || i &gt;= d-&gt;len )
                subat( i );
            d-&gt;setDirty();
            return d-&gt;unicode[i];
        }

    const TQChar* unicode() const { return d-&gt;unicode; }
    const char* ascii() const;
    static TQString fromAscii(const char*, int len=-1);
    const char* latin1() const;
    static TQString fromLatin1(const char*, int len=-1);
    TQCString utf8() const;
    static TQString fromUtf8(const char*, int len=-1);
    TQCString local8Bit() const;
    static TQString fromLocal8Bit(const char*, int len=-1);
    bool operator!() const;
#ifndef TQT_NO_ASCII_CAST
    operator const char *() const { return ascii(); }
#endif
#ifndef TQT_NO_STL
    operator std::string() const { return ascii() ? ascii() : ""; }
#endif

    static TQString fromUcs2( const unsigned short *ucs2 );
    const unsigned short *ucs2() const;

    TQString &amp;setUnicode( const TQChar* unicode, uint len );
    TQString &amp;setUnicodeCodes( const ushort* unicode_as_ushorts, uint len );
    TQString &amp;setAscii( const char*, int len=-1 );
    TQString &amp;setLatin1( const char*, int len=-1 );

    int compare( const TQString&amp; s ) const;
    static int compare( const TQString&amp; s1, const TQString&amp; s2 )
    { return s1.compare( s2 ); }

    int localeAwareCompare( const TQString&amp; s ) const;
    static int localeAwareCompare( const TQString&amp; s1, const TQString&amp; s2 )
    { return s1.localeAwareCompare( s2 ); }

#ifndef QT_NO_DATASTREAM
    friend Q_EXPORT TQDataStream &amp;operator&gt;&gt;( TQDataStream &amp;, TQString &amp; );
#endif

    void compose();

#ifndef TQT_NO_COMPAT
    const char* data() const { return ascii(); }
#endif

#if defined(Q_QDOC)
    bool startsWith( const TQString&amp; str, bool cs = TRUE ) const;
    bool endsWith( const TQString&amp; str, bool cs = TRUE ) const;
#else
    // ### TQt 4.0: merge these two into one, and remove Q_QDOC hack
    bool startsWith( const TQString&amp; str ) const;
    bool startsWith( const TQString&amp; str, bool cs ) const;

    // ### TQt 4.0: merge these two into one, and remove Q_QDOC hack
    bool endsWith( const TQString&amp; str ) const;
    bool endsWith( const TQString&amp; str, bool cs ) const;
#endif

    void setLength( uint newLength );

    uint capacity() const;
    void reserve( uint minCapacity );
    void squeeze();

    bool simpleText() const { if ( !d-&gt;issimpletext ) checkSimpleText(); return (bool)d-&gt;issimpletext; }
    bool isRightToLeft() const;


private:
    TQString( int size, bool /* dummy */ );	// allocate size incl. \0

    void deref();
    void real_detach();
    void subat( uint );
    TQString multiArg( int numArgs, const TQString&amp; a1, const TQString&amp; a2,
		      const TQString&amp; a3 = TQString::null,
		      const TQString&amp; a4 = TQString::null ) const;

    void checkSimpleText() const;
    void grow( uint newLength );
#ifndef QT_NO_CAST_ASCII
    TQString &amp;insertHelper( uint index, const char *s, uint len=UINT_MAX );
    TQString &amp;operatorPlusEqHelper( const char *s, uint len2=UINT_MAX );
#endif

    static TQChar* latin1ToUnicode( const char*, uint * len, uint maxlen=(uint)-1 );
    static TQChar* latin1ToUnicode( const TQByteArray&amp;, uint * len );
    static char* unicodeToLatin1( const TQChar*, uint len );

    TQStringData *d;
    static TQStringData* shared_null;
    static TQStringData* makeSharedNull();

    friend class TQConstString;
    friend class TQTextStream;
    TQString( TQStringData* dd, bool /* dummy */ ) : d(dd) { }

    // needed for TQDeepCopy
    void detach();
    friend class TQDeepCopy&lt;TQString&gt;;
};

class Q_EXPORT TQCharRef {
    friend class TQString;
    TQString&amp; s;
    uint p;
    TQCharRef(TQString* str, uint pos) : s(*str), p(pos) { }

public:
    // most TQChar operations repeated here

    // all this is not documented: We just say "like TQChar" and let it be.
#ifndef Q_QDOC
    ushort unicode() const { return s.constref(p).unicode(); }
    char latin1() const { return s.constref(p).latin1(); }

    // An operator= for each TQChar cast constructors
    TQCharRef operator=(char c ) { s.ref(p)=c; return *this; }
    TQCharRef operator=(uchar c ) { s.ref(p)=c; return *this; }
    TQCharRef operator=(TQChar c ) { s.ref(p)=c; return *this; }
    TQCharRef operator=(const TQCharRef&amp; c ) { s.ref(p)=c.unicode(); return *this; }
    TQCharRef operator=(ushort rc ) { s.ref(p)=rc; return *this; }
    TQCharRef operator=(short rc ) { s.ref(p)=rc; return *this; }
    TQCharRef operator=(uint rc ) { s.ref(p)=rc; return *this; }
    TQCharRef operator=(int rc ) { s.ref(p)=rc; return *this; }

    operator TQChar () const { return s.constref(p); }

    // each function...
    bool isNull() const { return unicode()==0; }
    bool isPrint() const { return s.constref(p).isPrint(); }
    bool isPunct() const { return s.constref(p).isPunct(); }
    bool isSpace() const { return s.constref(p).isSpace(); }
    bool isMark() const { return s.constref(p).isMark(); }
    bool isLetter() const { return s.constref(p).isLetter(); }
    bool isNumber() const { return s.constref(p).isNumber(); }
    bool isLetterOrNumber() { return s.constref(p).isLetterOrNumber(); }
    bool isDigit() const { return s.constref(p).isDigit(); }

    int digitValue() const { return s.constref(p).digitValue(); }
    TQChar lower() const { return s.constref(p).lower(); }
    TQChar upper() const { return s.constref(p).upper(); }

    TQChar::Category category() const { return s.constref(p).category(); }
    TQChar::Direction direction() const { return s.constref(p).direction(); }
    TQChar::Joining joining() const { return s.constref(p).joining(); }
    bool mirrored() const { return s.constref(p).mirrored(); }
    TQChar mirroredChar() const { return s.constref(p).mirroredChar(); }
    const TQString &amp;decomposition() const { return s.constref(p).decomposition(); }
    TQChar::Decomposition decompositionTag() const { return s.constref(p).decompositionTag(); }
    unsigned char combiningClass() const { return s.constref(p).combiningClass(); }

    // Not the non-const ones of these.
    uchar cell() const { return s.constref(p).cell(); }
    uchar row() const { return s.constref(p).row(); }
#endif
};

inline TQCharRef TQString::at( uint i ) { return TQCharRef(this,i); }
inline TQCharRef TQString::operator[]( int i ) { return at((uint)i); }


class Q_EXPORT TQConstString : private TQString {
public:
    TQConstString( const TQChar* unicode, uint length );
    ~TQConstString();
    const TQString&amp; string() const { return *this; }
};


/*****************************************************************************
  TQString stream functions
 *****************************************************************************/
#ifndef QT_NO_DATASTREAM
Q_EXPORT TQDataStream &amp;operator&lt;&lt;( TQDataStream &amp;, const TQString &amp; );
Q_EXPORT TQDataStream &amp;operator&gt;&gt;( TQDataStream &amp;, TQString &amp; );
#endif

/*****************************************************************************
  TQString inline functions
 *****************************************************************************/

// These two move code into makeSharedNull() and deletesData()
// to improve cache-coherence (and reduce code bloat), while
// keeping the common cases fast.
//
// No safe way to pre-init shared_null on ALL compilers/linkers.
inline TQString::TQString() :
    d(shared_null ? shared_null : makeSharedNull())
{
    d-&gt;ref();
}
//
inline TQString::~TQString()
{
    if ( d-&gt;deref() ) {
        if ( d != shared_null )
	    d-&gt;deleteSelf();
    }
}

// needed for TQDeepCopy
inline void TQString::detach()
{ real_detach(); }

inline TQString TQString::section( TQChar sep, int start, int end, int flags ) const
{ return section(TQString(sep), start, end, flags); }

inline TQString TQString::section( char sep, int start, int end, int flags ) const
{ return section(TQChar(sep), start, end, flags); }

#ifndef QT_NO_CAST_ASCII
inline TQString TQString::section( const char *in_sep, int start, int end, int flags ) const
{ return section(TQString(in_sep), start, end, flags); }
#endif

inline TQString &amp;TQString::operator=( TQChar c )
{ *this = TQString(c); return *this; }

inline TQString &amp;TQString::operator=( char c )
{ *this = TQString(TQChar(c)); return *this; }

inline bool TQString::isNull() const
{ return unicode() == 0; }

inline bool TQString::operator!() const
{ return isNull(); }

inline uint TQString::length() const
{ return d-&gt;len; }

inline uint TQString::capacity() const
{ return d-&gt;maxl; }

inline bool TQString::isEmpty() const
{ return length() == 0; }

inline TQString TQString::copy() const
{ return TQString( *this ); }

#ifndef QT_NO_CAST_ASCII
inline TQString &amp;TQString::insert( uint index, const char *s )
{ return insertHelper( index, s ); }

inline TQString &amp;TQString::insert( uint index, const TQByteArray &amp;s )
{
    int pos = s.find( 0 );
    return insertHelper( index, s, pos==-1 ? s.size() : pos );
}
#endif

inline TQString &amp;TQString::prepend( const TQString &amp; s )
{ return insert(0,s); }

inline TQString &amp;TQString::prepend( TQChar c )
{ return insert(0,c); }

inline TQString &amp;TQString::prepend( char c )
{ return insert(0,c); }

#ifndef QT_NO_CAST_ASCII
inline TQString &amp;TQString::prepend( const TQByteArray &amp; s )
{ return insert(0,s); }
#endif

#ifndef QT_NO_CAST_ASCII
inline TQString &amp;TQString::operator+=( const TQByteArray &amp;s )
{
    int pos = s.find( 0 );
    return operatorPlusEqHelper( s, pos==-1 ? s.size() : pos );
}
#endif

inline TQString &amp;TQString::append( const TQString &amp; s )
{ return operator+=(s); }

#ifndef QT_NO_CAST_ASCII
inline TQString &amp;TQString::append( const TQByteArray &amp;s )
{ return operator+=(s); }

inline TQString &amp;TQString::append( const char * s )
{ return operator+=(s); }
#endif

inline TQString &amp;TQString::append( TQChar c )
{ return operator+=(c); }

inline TQString &amp;TQString::append( char c )
{ return operator+=(c); }

#ifndef TQT_NO_STL
inline TQString &amp;TQString::operator=( const std::string&amp; str )
{ return operator=(str.c_str()); }
#ifndef QT_NO_CAST_ASCII
inline TQString &amp;TQString::operator+=( const std::string&amp; s )
{ return operator+=(s.c_str()); }
inline TQString &amp;TQString::append( const std::string&amp; s )
{ return operator+=(s); }
inline TQString &amp;TQString::prepend( const std::string&amp; s )
{ return insert(0, s); }
#endif
#endif

inline TQString &amp;TQString::setNum( short n, int base )
{ return setNum((TQ_LLONG)n, base); }

inline TQString &amp;TQString::setNum( ushort n, int base )
{ return setNum((TQ_ULLONG)n, base); }

inline TQString &amp;TQString::setNum( int n, int base )
{ return setNum((TQ_LLONG)n, base); }

inline TQString &amp;TQString::setNum( uint n, int base )
{ return setNum((TQ_ULLONG)n, base); }

inline TQString &amp;TQString::setNum( float n, char f, int prec )
{ return setNum((double)n,f,prec); }

inline TQString TQString::arg( int a, int fieldWidth, int base ) const
{ return arg( (TQ_LLONG)a, fieldWidth, base ); }

inline TQString TQString::arg( uint a, int fieldWidth, int base ) const
{ return arg( (TQ_ULLONG)a, fieldWidth, base ); }

inline TQString TQString::arg( short a, int fieldWidth, int base ) const
{ return arg( (TQ_LLONG)a, fieldWidth, base ); }

inline TQString TQString::arg( ushort a, int fieldWidth, int base ) const
{ return arg( (TQ_ULLONG)a, fieldWidth, base ); }

inline TQString TQString::arg( const TQString&amp; a1, const TQString&amp; a2 ) const {
    return multiArg( 2, a1, a2 );
}

inline TQString TQString::arg( const TQString&amp; a1, const TQString&amp; a2,
			     const TQString&amp; a3 ) const {
    return multiArg( 3, a1, a2, a3 );
}

inline TQString TQString::arg( const TQString&amp; a1, const TQString&amp; a2,
			     const TQString&amp; a3, const TQString&amp; a4 ) const {
    return multiArg( 4, a1, a2, a3, a4 );
}

inline int TQString::find( char c, int index, bool cs ) const
{ return find(TQChar(c), index, cs); }

inline int TQString::findRev( char c, int index, bool cs ) const
{ return findRev( TQChar(c), index, cs ); }

#ifndef QT_NO_CAST_ASCII
inline int TQString::find( const char* str, int index ) const
{ return find(TQString::fromAscii(str), index); }

inline int TQString::findRev( const char* str, int index ) const
{ return findRev(TQString::fromAscii(str), index); }
#endif


/*****************************************************************************
  TQString non-member operators
 *****************************************************************************/

Q_EXPORT bool operator!=( const TQString &amp;s1, const TQString &amp;s2 );
Q_EXPORT bool operator&lt;( const TQString &amp;s1, const TQString &amp;s2 );
Q_EXPORT bool operator&lt;=( const TQString &amp;s1, const TQString &amp;s2 );
Q_EXPORT bool operator==( const TQString &amp;s1, const TQString &amp;s2 );
Q_EXPORT bool operator&gt;( const TQString &amp;s1, const TQString &amp;s2 );
Q_EXPORT bool operator&gt;=( const TQString &amp;s1, const TQString &amp;s2 );
#ifndef QT_NO_CAST_ASCII
Q_EXPORT bool operator!=( const TQString &amp;s1, const char *s2 );
Q_EXPORT bool operator&lt;( const TQString &amp;s1, const char *s2 );
Q_EXPORT bool operator&lt;=( const TQString &amp;s1, const char *s2 );
Q_EXPORT bool operator==( const TQString &amp;s1, const char *s2 );
Q_EXPORT bool operator&gt;( const TQString &amp;s1, const char *s2 );
Q_EXPORT bool operator&gt;=( const TQString &amp;s1, const char *s2 );
Q_EXPORT bool operator!=( const char *s1, const TQString &amp;s2 );
Q_EXPORT bool operator&lt;( const char *s1, const TQString &amp;s2 );
Q_EXPORT bool operator&lt;=( const char *s1, const TQString &amp;s2 );
Q_EXPORT bool operator==( const char *s1, const TQString &amp;s2 );
//Q_EXPORT bool operator&gt;( const char *s1, const TQString &amp;s2 ); // MSVC++
Q_EXPORT bool operator&gt;=( const char *s1, const TQString &amp;s2 );
#endif

Q_EXPORT inline const TQString operator+( const TQString &amp;s1, const TQString &amp;s2 )
{
    TQString tmp( s1 );
    tmp += s2;
    return tmp;
}

#ifndef QT_NO_CAST_ASCII
Q_EXPORT inline const TQString operator+( const TQString &amp;s1, const char *s2 )
{
    TQString tmp( s1 );
    tmp += TQString::fromAscii(s2);
    return tmp;
}

Q_EXPORT inline const TQString operator+( const char *s1, const TQString &amp;s2 )
{
    TQString tmp = TQString::fromAscii( s1 );
    tmp += s2;
    return tmp;
}
#endif

Q_EXPORT inline const TQString operator+( const TQString &amp;s1, TQChar c2 )
{
    TQString tmp( s1 );
    tmp += c2;
    return tmp;
}

Q_EXPORT inline const TQString operator+( const TQString &amp;s1, char c2 )
{
    TQString tmp( s1 );
    tmp += c2;
    return tmp;
}

Q_EXPORT inline const TQString operator+( TQChar c1, const TQString &amp;s2 )
{
    TQString tmp;
    tmp += c1;
    tmp += s2;
    return tmp;
}

Q_EXPORT inline const TQString operator+( char c1, const TQString &amp;s2 )
{
    TQString tmp;
    tmp += c1;
    tmp += s2;
    return tmp;
}

#ifndef TQT_NO_STL
Q_EXPORT inline const TQString operator+(const TQString&amp; s1, const std::string&amp; s2)
{
    return s1 + TQString(s2);
}

Q_EXPORT inline const TQString operator+(const std::string&amp; s1, const TQString&amp; s2)
{
    TQString tmp(s2);
    return TQString(tmp.prepend(s1));
}
#endif


#if defined(Q_OS_WIN32)
extern Q_EXPORT TQString qt_winTQString(void*);
extern Q_EXPORT const void* qt_winTchar(const TQString&amp; str, bool addnul);
extern Q_EXPORT void* qt_winTchar_new(const TQString&amp; str);
extern Q_EXPORT TQCString qt_winTQString2MB( const TQString&amp; s, int len=-1 );
extern Q_EXPORT TQString qt_winMB2TQString( const char* mb, int len=-1 );
#endif

#define Q_DEFINED_QSTRING
#include "ntqwinexport.h"
#endif // TQSTRING_H
</pre>
<!-- eof -->
<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>TQt 3.3.8</div>
</table></div></address></body>
</html>