1*514f4c20SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*514f4c20SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*514f4c20SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*514f4c20SAndrew Rist  * distributed with this work for additional information
6*514f4c20SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*514f4c20SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*514f4c20SAndrew Rist  * "License"); you may not use this file except in compliance
9*514f4c20SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*514f4c20SAndrew Rist  *
11*514f4c20SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*514f4c20SAndrew Rist  *
13*514f4c20SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*514f4c20SAndrew Rist  * software distributed under the License is distributed on an
15*514f4c20SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*514f4c20SAndrew Rist  * KIND, either express or implied.  See the License for the
17*514f4c20SAndrew Rist  * specific language governing permissions and limitations
18*514f4c20SAndrew Rist  * under the License.
19*514f4c20SAndrew Rist  *
20*514f4c20SAndrew Rist  *************************************************************/
21*514f4c20SAndrew Rist 
22*514f4c20SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir //------------------------------------------------------------------------
25cdf0e10cSrcweir //------------------------------------------------------------------------
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #ifndef _RTL_STRING_CONST_H_
28cdf0e10cSrcweir #define _RTL_STRING_CONST_H_
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #ifndef _RTL_STRING_UTILS_HXX_
31cdf0e10cSrcweir     #include <rtl_String_Utils.hxx>
32cdf0e10cSrcweir #endif
33cdf0e10cSrcweir 
34cdf0e10cSrcweir //------------------------------------------------------------------------
35cdf0e10cSrcweir //------------------------------------------------------------------------
36cdf0e10cSrcweir 
37cdf0e10cSrcweir #include <limits.h>
38cdf0e10cSrcweir 
39cdf0e10cSrcweir //------------------------------------------------------------------------
40cdf0e10cSrcweir //------------------------------------------------------------------------
41cdf0e10cSrcweir 
42cdf0e10cSrcweir #ifndef _SAL_TYPES_H_
43cdf0e10cSrcweir 	#include <sal/types.h>
44cdf0e10cSrcweir #endif
45cdf0e10cSrcweir 
46cdf0e10cSrcweir #ifndef _RTL_TEXTENC_H
47cdf0e10cSrcweir 	#include <rtl/textenc.h>
48cdf0e10cSrcweir #endif
49cdf0e10cSrcweir 
50cdf0e10cSrcweir #ifndef _RTL_USTRING_H_
51cdf0e10cSrcweir 	#include <rtl/ustring.h>
52cdf0e10cSrcweir #endif
53cdf0e10cSrcweir 
54cdf0e10cSrcweir //------------------------------------------------------------------------
55cdf0e10cSrcweir //------------------------------------------------------------------------
56cdf0e10cSrcweir 
57cdf0e10cSrcweir #ifdef __cplusplus
58cdf0e10cSrcweir extern "C"
59cdf0e10cSrcweir {
60cdf0e10cSrcweir #endif
61cdf0e10cSrcweir 
62cdf0e10cSrcweir //------------------------------------------------------------------------
63cdf0e10cSrcweir //------------------------------------------------------------------------
64cdf0e10cSrcweir 
65cdf0e10cSrcweir static const rtl_TextEncoding kEncodingRTLTextUSASCII = RTL_TEXTENCODING_ASCII_US;
66cdf0e10cSrcweir 
67cdf0e10cSrcweir //------------------------------------------------------------------------
68cdf0e10cSrcweir //------------------------------------------------------------------------
69cdf0e10cSrcweir 
70cdf0e10cSrcweir static const sal_uInt32 kConvertFlagsOUStringToOString = OUSTRING_TO_OSTRING_CVTFLAGS;
71cdf0e10cSrcweir static const sal_uInt32 kConvertFlagsOStringToOUString = OSTRING_TO_OUSTRING_CVTFLAGS;
72cdf0e10cSrcweir 
73cdf0e10cSrcweir //------------------------------------------------------------------------
74cdf0e10cSrcweir //------------------------------------------------------------------------
75cdf0e10cSrcweir 
76cdf0e10cSrcweir static const sal_Char *kTestStr1  = "Sun Microsystems";
77cdf0e10cSrcweir static const sal_Char *kTestStr2  = "Sun Microsystems Java Technology";
78cdf0e10cSrcweir static const sal_Char *kTestStr3  = "Sun microsystems";
79cdf0e10cSrcweir static const sal_Char *kTestStr4  = "SUN MICROSYSTEMS";
80cdf0e10cSrcweir static const sal_Char *kTestStr5  = "sun microsystems";
81cdf0e10cSrcweir static const sal_Char *kTestStr6  = "Java Technology";
82cdf0e10cSrcweir static const sal_Char *kTestStr7  = "Sun ";
83cdf0e10cSrcweir static const sal_Char *kTestStr8  = "Microsystems";
84cdf0e10cSrcweir static const sal_Char *kTestStr9  = "sun microsystems java technology";
85cdf0e10cSrcweir static const sal_Char *kTestStr10 = " Sun Microsystems";
86cdf0e10cSrcweir static const sal_Char *kTestStr11 = "Sun Microsystems ";
87cdf0e10cSrcweir static const sal_Char *kTestStr12 = " Sun Microsystems ";
88cdf0e10cSrcweir static const sal_Char *kTestStr13 = "Sun Microsystems   ";
89cdf0e10cSrcweir static const sal_Char *kTestStr14 = "   Sun Microsystems";
90cdf0e10cSrcweir static const sal_Char *kTestStr15 = "   Sun Microsystems ";
91cdf0e10cSrcweir static const sal_Char *kTestStr16 = " Sun Microsystems   ";
92cdf0e10cSrcweir static const sal_Char *kTestStr17 = "   Sun Microsystems   ";
93cdf0e10cSrcweir static const sal_Char *kTestStr18 = "sUN MICROsYsTEMs";
94cdf0e10cSrcweir static const sal_Char *kTestStr19 = "---Sun-Microsystems---";
95cdf0e10cSrcweir static const sal_Char *kTestStr20 = "sun";
96cdf0e10cSrcweir static const sal_Char *kTestStr21 = "SUN";
97cdf0e10cSrcweir static const sal_Char *kTestStr22 = "SUN MICROSYSTEMS JAVA TECHNOLOGY";
98cdf0e10cSrcweir static const sal_Char *kTestStr23  = " Java Technology";
99cdf0e10cSrcweir static const sal_Char *kTestStr24 = "Sun Microsystems Java Technolog";
100cdf0e10cSrcweir static const sal_Char *kTestStr25 = "";
101cdf0e10cSrcweir static const sal_Char *kTestStr26 = " Mic";
102cdf0e10cSrcweir static const sal_Char *kTestStr27 = "s";
103cdf0e10cSrcweir static const sal_Char *kTestStr28 = "\50\3\5\7\11\13\15\17sun";
104cdf0e10cSrcweir static const sal_Char *kTestStr29 = "\50\3\5\7\11\13\15\17sun\21\23\25\27\31\33\50";
105cdf0e10cSrcweir static const sal_Char *kTestStr30 = "sun\21\23\25\27\31\33\50";
106cdf0e10cSrcweir static const sal_Char *kTestStr31 = "sun Microsystems";
107cdf0e10cSrcweir static const sal_Char *kTestStr32 = "Sun Microsystem ";
108cdf0e10cSrcweir static const sal_Char *kTestStr33 = " ";
109cdf0e10cSrcweir static const sal_Char *kTestStr34 = "\50\5\5\7\11\13\15\17sun";
110cdf0e10cSrcweir static const sal_Char *kTestStr35 = "\50\373\5\7\11\13\15\17sun";
111cdf0e10cSrcweir static const sal_Char *kTestStr36 = "Microsystems Java Technology";
112cdf0e10cSrcweir static const sal_Char *kTestStr37 = "Sun  Java Technology";
113cdf0e10cSrcweir static const sal_Char *kTestStr38 = "\21\23\25\27\31\33\50";
114cdf0e10cSrcweir static const sal_Char *kTestStr39 = "\50\3\5\7\11\13\15\17sun   Sun Microsystems   ";
115cdf0e10cSrcweir static const sal_Char *kTestStr40 = "\50\3\5\7\11\13\15\17sunsun Microsystems";
116cdf0e10cSrcweir static const sal_Char *kTestStr41 = "Sun";
117cdf0e10cSrcweir static const sal_Char *kTestStr42 = "\50\3\5\7\11\13\15\17su";
118cdf0e10cSrcweir static const sal_Char *kTestStr43 = "\50\3\5\7\11\13\15\17sun\256\345";
119cdf0e10cSrcweir static const sal_Char *kTestStr44 = "\256\345";
120cdf0e10cSrcweir static const sal_Char *kTestStr45  = "Sun true";
121cdf0e10cSrcweir static const sal_Char *kTestStr46  = "Sun false";
122cdf0e10cSrcweir static const sal_Char *kTestStr47  = "true";
123cdf0e10cSrcweir static const sal_Char *kTestStr48  = "false";
124cdf0e10cSrcweir static const sal_Char *kTestStr49 = "\50\3\5\7\11\13\15\17suntrue";
125cdf0e10cSrcweir static const sal_Char *kTestStr50 = "\50\3\5\7\11\13\15\17sunfalse";
126cdf0e10cSrcweir static const sal_Char *kTestStr51  = "Sun M";
127cdf0e10cSrcweir //static const sal_Char *kTestStr52  = "Sun \077777";
128cdf0e10cSrcweir //static const sal_Char *kTestStr53  = "Sun \100000";
129cdf0e10cSrcweir //static const sal_Char *kTestStr54  = "\77777";
130cdf0e10cSrcweir //static const sal_Char *kTestStr55  = "\100000";
131cdf0e10cSrcweir static const sal_Char *kTestStr56 = "\50\3\5\7\11\13\15\17suns";
132cdf0e10cSrcweir //static const sal_Char *kTestStr57 = "\50\3\5\7\11\13\15\17sun\77777";
133cdf0e10cSrcweir //static const sal_Char *kTestStr58 = "\50\3\5\7\11\13\15\17sun\10000";
134cdf0e10cSrcweir static const sal_Char *kTestStr1PlusStr6  = "Sun Microsystems" "Java Technology";
135cdf0e10cSrcweir //------------------------------------------------------------------------
136cdf0e10cSrcweir //------------------------------------------------------------------------
137cdf0e10cSrcweir 
138cdf0e10cSrcweir static const sal_Int32 kTestStr1Len  = 16;
139cdf0e10cSrcweir static const sal_Int32 kTestStr2Len  = 32;
140cdf0e10cSrcweir static const sal_Int32 kTestStr3Len  = 16;
141cdf0e10cSrcweir static const sal_Int32 kTestStr4Len  = 16;
142cdf0e10cSrcweir static const sal_Int32 kTestStr5Len  = 16;
143cdf0e10cSrcweir static const sal_Int32 kTestStr6Len  = 15;
144cdf0e10cSrcweir static const sal_Int32 kTestStr7Len  = 4;
145cdf0e10cSrcweir static const sal_Int32 kTestStr8Len  = 12;
146cdf0e10cSrcweir static const sal_Int32 kTestStr9Len  = 32;
147cdf0e10cSrcweir static const sal_Int32 kTestStr10Len = 17;
148cdf0e10cSrcweir static const sal_Int32 kTestStr11Len = 17;
149cdf0e10cSrcweir static const sal_Int32 kTestStr12Len = 18;
150cdf0e10cSrcweir static const sal_Int32 kTestStr13Len = 19;
151cdf0e10cSrcweir static const sal_Int32 kTestStr14Len = 19;
152cdf0e10cSrcweir static const sal_Int32 kTestStr15Len = 20;
153cdf0e10cSrcweir static const sal_Int32 kTestStr16Len = 20;
154cdf0e10cSrcweir static const sal_Int32 kTestStr17Len = 22;
155cdf0e10cSrcweir static const sal_Int32 kTestStr18Len = 16;
156cdf0e10cSrcweir static const sal_Int32 kTestStr19Len = 22;
157cdf0e10cSrcweir static const sal_Int32 kTestStr20Len = 3;
158cdf0e10cSrcweir static const sal_Int32 kTestStr21Len = 3;
159cdf0e10cSrcweir static const sal_Int32 kTestStr22Len = 32;
160cdf0e10cSrcweir static const sal_Int32 kTestStr23Len = 16;
161cdf0e10cSrcweir static const sal_Int32 kTestStr24Len = 31;
162cdf0e10cSrcweir static const sal_Int32 kTestStr25Len = 0;
163cdf0e10cSrcweir static const sal_Int32 kTestStr26Len = 4;
164cdf0e10cSrcweir static const sal_Int32 kTestStr27Len = 1;
165cdf0e10cSrcweir static const sal_Int32 kTestStr28Len = 11;
166cdf0e10cSrcweir static const sal_Int32 kTestStr29Len = 18;
167cdf0e10cSrcweir static const sal_Int32 kTestStr30Len = 10;
168cdf0e10cSrcweir static const sal_Int32 kTestStr31Len = 16;
169cdf0e10cSrcweir static const sal_Int32 kTestStr32Len = 16;
170cdf0e10cSrcweir static const sal_Int32 kTestStr33Len = 1;
171cdf0e10cSrcweir static const sal_Int32 kTestStr34Len = 11;
172cdf0e10cSrcweir static const sal_Int32 kTestStr35Len = 11;
173cdf0e10cSrcweir static const sal_Int32 kTestStr36Len = 28;
174cdf0e10cSrcweir static const sal_Int32 kTestStr37Len = 20;
175cdf0e10cSrcweir static const sal_Int32 kTestStr38Len = 7;
176cdf0e10cSrcweir static const sal_Int32 kTestStr39Len = 33;
177cdf0e10cSrcweir static const sal_Int32 kTestStr40Len = 27;
178cdf0e10cSrcweir static const sal_Int32 kTestStr41Len = 3;
179cdf0e10cSrcweir static const sal_Int32 kTestStr42Len = 10;
180cdf0e10cSrcweir static const sal_Int32 kTestStr43Len = 13;
181cdf0e10cSrcweir static const sal_Int32 kTestStr44Len = 2;
182cdf0e10cSrcweir static const sal_Int32 kTestStr45Len = 8;
183cdf0e10cSrcweir static const sal_Int32 kTestStr46Len = 9;
184cdf0e10cSrcweir static const sal_Int32 kTestStr47Len = 4;
185cdf0e10cSrcweir static const sal_Int32 kTestStr48Len = 5;
186cdf0e10cSrcweir static const sal_Int32 kTestStr49Len = 15;
187cdf0e10cSrcweir static const sal_Int32 kTestStr50Len = 16;
188cdf0e10cSrcweir static const sal_Int32 kTestStr51Len = 5;
189cdf0e10cSrcweir static const sal_Int32 kTestStr52Len = 5;
190cdf0e10cSrcweir static const sal_Int32 kTestStr53Len = 5;
191cdf0e10cSrcweir static const sal_Int32 kTestStr54Len = 1;
192cdf0e10cSrcweir static const sal_Int32 kTestStr55Len = 1;
193cdf0e10cSrcweir static const sal_Int32 kTestStr56Len = 12;
194cdf0e10cSrcweir static const sal_Int32 kTestStr57Len = 12;
195cdf0e10cSrcweir static const sal_Int32 kTestStr58Len = 12;
196cdf0e10cSrcweir static const sal_Int32 kTestStr1PlusStr6Len = kTestStr1Len + kTestStr6Len;
197cdf0e10cSrcweir 
198cdf0e10cSrcweir //------------------------------------------------------------------------
199cdf0e10cSrcweir //------------------------------------------------------------------------
200cdf0e10cSrcweir  static sal_Unicode aUStr1[kTestStr1Len+1];
201cdf0e10cSrcweir  static sal_Unicode aUStr2[kTestStr2Len+1];
202cdf0e10cSrcweir  static sal_Unicode aUStr3[kTestStr3Len+1];
203cdf0e10cSrcweir  static sal_Unicode aUStr4[kTestStr4Len+1];
204cdf0e10cSrcweir  static sal_Unicode aUStr5[kTestStr5Len+1];
205cdf0e10cSrcweir  static sal_Unicode aUStr6[kTestStr6Len+1];
206cdf0e10cSrcweir  static sal_Unicode aUStr7[kTestStr7Len+1];
207cdf0e10cSrcweir  static sal_Unicode aUStr8[kTestStr8Len+1];
208cdf0e10cSrcweir  static sal_Unicode aUStr9[kTestStr9Len+1];
209cdf0e10cSrcweir  static sal_Unicode aUStr10[kTestStr10Len+1];
210cdf0e10cSrcweir  static sal_Unicode aUStr11[kTestStr11Len+1];
211cdf0e10cSrcweir  static sal_Unicode aUStr12[kTestStr12Len+1];
212cdf0e10cSrcweir  static sal_Unicode aUStr13[kTestStr13Len+1];
213cdf0e10cSrcweir  static sal_Unicode aUStr14[kTestStr14Len+1];
214cdf0e10cSrcweir  static sal_Unicode aUStr15[kTestStr15Len+1];
215cdf0e10cSrcweir  static sal_Unicode aUStr16[kTestStr16Len+1];
216cdf0e10cSrcweir  static sal_Unicode aUStr17[kTestStr17Len+1];
217cdf0e10cSrcweir  static sal_Unicode aUStr18[kTestStr18Len+1];
218cdf0e10cSrcweir  static sal_Unicode aUStr19[kTestStr19Len+1];
219cdf0e10cSrcweir  static sal_Unicode aUStr20[kTestStr20Len+1];
220cdf0e10cSrcweir  static sal_Unicode aUStr21[kTestStr21Len+1];
221cdf0e10cSrcweir  static sal_Unicode aUStr22[kTestStr22Len+1];
222cdf0e10cSrcweir  static sal_Unicode aUStr23[kTestStr23Len+1];
223cdf0e10cSrcweir  static sal_Unicode aUStr24[kTestStr24Len+1];
224cdf0e10cSrcweir  static sal_Unicode aUStr25[kTestStr25Len+1];
225cdf0e10cSrcweir  static sal_Unicode aUStr26[kTestStr26Len+1];
226cdf0e10cSrcweir  static sal_Unicode aUStr27[kTestStr27Len+1];
227cdf0e10cSrcweir  static sal_Unicode aUStr28[kTestStr28Len+1];
228cdf0e10cSrcweir  static sal_Unicode aUStr29[kTestStr29Len+1];
229cdf0e10cSrcweir  static sal_Unicode aUStr30[kTestStr30Len+1];
230cdf0e10cSrcweir  static sal_Unicode aUStr31[kTestStr31Len+1];
231cdf0e10cSrcweir  static sal_Unicode aUStr32[kTestStr32Len+1];
232cdf0e10cSrcweir  static sal_Unicode aUStr33[kTestStr33Len+1];
233cdf0e10cSrcweir  static sal_Unicode aUStr34[kTestStr34Len+1];
234cdf0e10cSrcweir  static sal_Unicode aUStr35[kTestStr35Len+1];
235cdf0e10cSrcweir  static sal_Unicode aUStr36[kTestStr36Len+1];
236cdf0e10cSrcweir  static sal_Unicode aUStr37[kTestStr37Len+1];
237cdf0e10cSrcweir  static sal_Unicode aUStr38[kTestStr38Len+1];
238cdf0e10cSrcweir  static sal_Unicode aUStr39[kTestStr39Len+1];
239cdf0e10cSrcweir  static sal_Unicode aUStr40[kTestStr40Len+1];
240cdf0e10cSrcweir  static sal_Unicode aUStr41[kTestStr41Len+1];
241cdf0e10cSrcweir  static sal_Unicode aUStr42[kTestStr42Len+1];
242cdf0e10cSrcweir  static sal_Unicode aUStr43[kTestStr43Len+1];
243cdf0e10cSrcweir  static sal_Unicode aUStr44[kTestStr44Len+1];
244cdf0e10cSrcweir  static sal_Unicode aUStr45[kTestStr45Len+1];
245cdf0e10cSrcweir  static sal_Unicode aUStr46[kTestStr46Len+1];
246cdf0e10cSrcweir  static sal_Unicode aUStr47[kTestStr47Len+1];
247cdf0e10cSrcweir  static sal_Unicode aUStr48[kTestStr48Len+1];
248cdf0e10cSrcweir  static sal_Unicode aUStr49[kTestStr49Len+1];
249cdf0e10cSrcweir  static sal_Unicode aUStr50[kTestStr50Len+1];
250cdf0e10cSrcweir  static sal_Unicode aUStr51[kTestStr51Len+1];
251cdf0e10cSrcweir // static sal_Unicode aUStr52[kTestStr52Len+1]={83,117,110,32,32767};
252cdf0e10cSrcweir // static sal_Unicode aUStr53[kTestStr53Len+1]={83,117,110,32,SAL_MIN_INT16 /*-32768*/};
253cdf0e10cSrcweir // static sal_Unicode aUStr54[kTestStr54Len+1]={32767};
254cdf0e10cSrcweir // static sal_Unicode aUStr55[kTestStr55Len+1]={SAL_MIN_INT16 /*-32768*/};
255cdf0e10cSrcweir  static sal_Unicode aUStr56[kTestStr56Len+1];
256cdf0e10cSrcweir // static sal_Unicode aUStr57[kTestStr57Len+1]={40,3,5,7,9,11,13,15,115,117,110,32767};
257cdf0e10cSrcweir // static sal_Unicode aUStr58[kTestStr58Len+1]={40,3,5,7,9,11,13,15,115,117,110,SAL_MIN_INT16 /*-32768*/};
258cdf0e10cSrcweir  static sal_Unicode aUStr1PlusUStr6[kTestStr1Len + kTestStr6Len + 1];
259cdf0e10cSrcweir 
260cdf0e10cSrcweir // we are already in "C"
261cdf0e10cSrcweir 
test_ini_uString()262cdf0e10cSrcweir static sal_Bool SAL_CALL test_ini_uString()
263cdf0e10cSrcweir {
264cdf0e10cSrcweir 
265cdf0e10cSrcweir 	sal_Bool iniResult= sal_True;
266cdf0e10cSrcweir 
267cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr1, kTestStr1, kTestStr1Len );
268cdf0e10cSrcweir 
269cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr2, kTestStr2, kTestStr2Len );
270cdf0e10cSrcweir 
271cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr3, kTestStr3, kTestStr3Len );
272cdf0e10cSrcweir 
273cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr4, kTestStr4, kTestStr4Len );
274cdf0e10cSrcweir 
275cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr5, kTestStr5, kTestStr5Len );
276cdf0e10cSrcweir 
277cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr6, kTestStr6, kTestStr6Len );
278cdf0e10cSrcweir 
279cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr7, kTestStr7, kTestStr7Len );
280cdf0e10cSrcweir 
281cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr8, kTestStr8, kTestStr8Len );
282cdf0e10cSrcweir 
283cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr9, kTestStr9, kTestStr9Len );
284cdf0e10cSrcweir 
285cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr10, kTestStr10, kTestStr10Len );
286cdf0e10cSrcweir 
287cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr11, kTestStr11, kTestStr11Len );
288cdf0e10cSrcweir 
289cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr12, kTestStr12, kTestStr12Len );
290cdf0e10cSrcweir 
291cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr13, kTestStr13, kTestStr13Len );
292cdf0e10cSrcweir 
293cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr14, kTestStr14, kTestStr14Len );
294cdf0e10cSrcweir 
295cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr15, kTestStr15, kTestStr15Len );
296cdf0e10cSrcweir 
297cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr16, kTestStr16, kTestStr16Len );
298cdf0e10cSrcweir 
299cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr17, kTestStr17, kTestStr17Len );
300cdf0e10cSrcweir 
301cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr18, kTestStr18, kTestStr18Len );
302cdf0e10cSrcweir 
303cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr19, kTestStr19, kTestStr19Len );
304cdf0e10cSrcweir 
305cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr20, kTestStr20, kTestStr20Len );
306cdf0e10cSrcweir 
307cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr21, kTestStr21, kTestStr21Len );
308cdf0e10cSrcweir 
309cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr22, kTestStr22, kTestStr22Len );
310cdf0e10cSrcweir 
311cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr23, kTestStr23, kTestStr23Len );
312cdf0e10cSrcweir 
313cdf0e10cSrcweir 	iniResult &=AStringToUStringNCopy( aUStr1PlusUStr6, kTestStr1PlusStr6, kTestStr1PlusStr6Len );
314cdf0e10cSrcweir 
315cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr24, kTestStr24, kTestStr24Len );
316cdf0e10cSrcweir 
317cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr25, kTestStr25, kTestStr25Len );
318cdf0e10cSrcweir 
319cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr26, kTestStr26, kTestStr26Len );
320cdf0e10cSrcweir 
321cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr27, kTestStr27, kTestStr27Len );
322cdf0e10cSrcweir 
323cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr28, kTestStr28, kTestStr28Len );
324cdf0e10cSrcweir 
325cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr29, kTestStr29, kTestStr29Len );
326cdf0e10cSrcweir 
327cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr30, kTestStr30, kTestStr30Len );
328cdf0e10cSrcweir 
329cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr31, kTestStr31, kTestStr31Len );
330cdf0e10cSrcweir 
331cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr32, kTestStr32, kTestStr32Len );
332cdf0e10cSrcweir 
333cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr33, kTestStr33, kTestStr33Len );
334cdf0e10cSrcweir 
335cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr34, kTestStr34, kTestStr34Len );
336cdf0e10cSrcweir 
337cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr35, kTestStr35, kTestStr35Len );
338cdf0e10cSrcweir 
339cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr36, kTestStr36, kTestStr36Len );
340cdf0e10cSrcweir 
341cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr37, kTestStr37, kTestStr37Len );
342cdf0e10cSrcweir 
343cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr38, kTestStr38, kTestStr38Len );
344cdf0e10cSrcweir 
345cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr39, kTestStr39, kTestStr39Len );
346cdf0e10cSrcweir 
347cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr40, kTestStr40, kTestStr40Len );
348cdf0e10cSrcweir 
349cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr41, kTestStr41, kTestStr41Len );
350cdf0e10cSrcweir 
351cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr42, kTestStr42, kTestStr42Len );
352cdf0e10cSrcweir 
353cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr43, kTestStr43, kTestStr43Len );
354cdf0e10cSrcweir 
355cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr44, kTestStr44, kTestStr44Len );
356cdf0e10cSrcweir 
357cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr45, kTestStr45, kTestStr45Len );
358cdf0e10cSrcweir 
359cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr46, kTestStr46, kTestStr46Len );
360cdf0e10cSrcweir 
361cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr47, kTestStr47, kTestStr47Len );
362cdf0e10cSrcweir 
363cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr48, kTestStr48, kTestStr48Len );
364cdf0e10cSrcweir 
365cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr49, kTestStr49, kTestStr49Len );
366cdf0e10cSrcweir 
367cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr50, kTestStr50, kTestStr50Len );
368cdf0e10cSrcweir 
369cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr51, kTestStr51, kTestStr51Len );
370cdf0e10cSrcweir 
371cdf0e10cSrcweir         //iniResult &=AStringToUStringNCopy( aUStr52, kTestStr52, kTestStr52Len );
372cdf0e10cSrcweir 
373cdf0e10cSrcweir        // iniResult &=AStringToUStringNCopy( aUStr53, kTestStr53, kTestStr53Len );
374cdf0e10cSrcweir 
375cdf0e10cSrcweir         //iniResult &=AStringToUStringNCopy( aUStr54, kTestStr54, kTestStr54Len );
376cdf0e10cSrcweir 
377cdf0e10cSrcweir         //iniResult &=AStringToUStringNCopy( aUStr55, kTestStr55, kTestStr55Len );
378cdf0e10cSrcweir 
379cdf0e10cSrcweir         iniResult &=AStringToUStringNCopy( aUStr56, kTestStr56, kTestStr56Len );
380cdf0e10cSrcweir 
381cdf0e10cSrcweir        // iniResult &=AStringToUStringNCopy( aUStr57, kTestStr57, kTestStr57Len );
382cdf0e10cSrcweir 
383cdf0e10cSrcweir         //iniResult &=AStringToUStringNCopy( aUStr58, kTestStr58, kTestStr58Len );
384cdf0e10cSrcweir 	return iniResult;
385cdf0e10cSrcweir 
386cdf0e10cSrcweir }
387cdf0e10cSrcweir 
388cdf0e10cSrcweir 
389cdf0e10cSrcweir 
390cdf0e10cSrcweir 
391cdf0e10cSrcweir static const sal_Int32 uTestStr1Len  = 16;
392cdf0e10cSrcweir static const sal_Int32 uTestStr2Len  = 32;
393cdf0e10cSrcweir static const sal_Int32 uTestStr3Len  = 16;
394cdf0e10cSrcweir static const sal_Int32 uTestStr4Len  = 16;
395cdf0e10cSrcweir static const sal_Int32 uTestStr5Len  = 16;
396cdf0e10cSrcweir static const sal_Int32 uTestStr9Len  = 32;
397cdf0e10cSrcweir static const sal_Int32 uTestStr22Len = 32;
398cdf0e10cSrcweir 
399cdf0e10cSrcweir 
400cdf0e10cSrcweir 
401cdf0e10cSrcweir //------------------------------------------------------------------------
402cdf0e10cSrcweir //------------------------------------------------------------------------
403cdf0e10cSrcweir const sal_Unicode uTestStr31[]= {0x400,0x410,0x4DF};
404cdf0e10cSrcweir const sal_Unicode uTestStr32[]= {0x9F9F,0xA000,0x8F80,0x9AD9};
405cdf0e10cSrcweir 
406cdf0e10cSrcweir 
407cdf0e10cSrcweir 
408cdf0e10cSrcweir //------------------------------------------------------------------------
409cdf0e10cSrcweir //------------------------------------------------------------------------
410cdf0e10cSrcweir 
411cdf0e10cSrcweir static const sal_Int32 uTestStr31Len  = 3;
412cdf0e10cSrcweir static const sal_Int32 uTestStr32Len  = 4;
413cdf0e10cSrcweir 
414cdf0e10cSrcweir //------------------------------------------------------------------------
415cdf0e10cSrcweir //------------------------------------------------------------------------
416cdf0e10cSrcweir 
417cdf0e10cSrcweir static const sal_Int16 kRadixBinary     = 2;
418cdf0e10cSrcweir static const sal_Int16 kRadixOctol      = 8;
419cdf0e10cSrcweir static const sal_Int16 kRadixDecimal    = 10;
420cdf0e10cSrcweir static const sal_Int16 kRadixHexdecimal = 16;
421cdf0e10cSrcweir static const sal_Int16 kRadixBase36     = 36;
422cdf0e10cSrcweir 
423cdf0e10cSrcweir //------------------------------------------------------------------------
424cdf0e10cSrcweir //------------------------------------------------------------------------
425cdf0e10cSrcweir 
426cdf0e10cSrcweir static const sal_Int8  kSInt8Max  = SCHAR_MAX;
427cdf0e10cSrcweir static const sal_Int16 kUInt8Max  = UCHAR_MAX;
428cdf0e10cSrcweir static const sal_Int16 kSInt16Max = SHRT_MAX;
429cdf0e10cSrcweir static const sal_Int32 kUInt16Max = USHRT_MAX;
430cdf0e10cSrcweir static const sal_Int32 kSInt32Max = INT_MAX;
431cdf0e10cSrcweir static const sal_Int64 kUInt32Max = UINT_MAX;
432cdf0e10cSrcweir #if (defined UNX) || (defined OS2)
433cdf0e10cSrcweir static const sal_Int64 kSInt64Max = 9223372036854775807LL;
434cdf0e10cSrcweir #else
435cdf0e10cSrcweir static const sal_Int64 kSInt64Max = 9223372036854775807;
436cdf0e10cSrcweir #endif
437cdf0e10cSrcweir //------------------------------------------------------------------------
438cdf0e10cSrcweir 
439cdf0e10cSrcweir static const sal_Int32 kInt32MaxNumsCount = 5;
440cdf0e10cSrcweir 
441cdf0e10cSrcweir static const sal_Int32 kInt32MaxNums[kInt32MaxNumsCount] =
442cdf0e10cSrcweir                         {
443cdf0e10cSrcweir                             kSInt8Max,  kUInt8Max,
444cdf0e10cSrcweir                             kSInt16Max, kUInt16Max,
445cdf0e10cSrcweir                             kSInt32Max
446cdf0e10cSrcweir                         };
447cdf0e10cSrcweir 
448cdf0e10cSrcweir static const sal_Int32 kInt64MaxNumsCount = 7;
449cdf0e10cSrcweir 
450cdf0e10cSrcweir static const sal_Int64 kInt64MaxNums[kInt64MaxNumsCount] =
451cdf0e10cSrcweir                         {
452cdf0e10cSrcweir                             kSInt8Max,  kUInt8Max,
453cdf0e10cSrcweir                             kSInt16Max, kUInt16Max,
454cdf0e10cSrcweir                             kSInt32Max, kUInt32Max,
455cdf0e10cSrcweir                             kSInt64Max
456cdf0e10cSrcweir                         };
457cdf0e10cSrcweir 
458cdf0e10cSrcweir //------------------------------------------------------------------------
459cdf0e10cSrcweir //------------------------------------------------------------------------
460cdf0e10cSrcweir 
461cdf0e10cSrcweir static const sal_Char *kSInt8MaxBinaryStr  = "1111111";
462cdf0e10cSrcweir static const sal_Char *kUInt8MaxBinaryStr  = "11111111";
463cdf0e10cSrcweir static const sal_Char *kSInt16MaxBinaryStr = "111111111111111";
464cdf0e10cSrcweir static const sal_Char *kUInt16MaxBinaryStr = "1111111111111111";
465cdf0e10cSrcweir static const sal_Char *kSInt32MaxBinaryStr =
466cdf0e10cSrcweir                                         "1111111111111111111111111111111";
467cdf0e10cSrcweir static const sal_Char *kUInt32MaxBinaryStr =
468cdf0e10cSrcweir                                         "11111111111111111111111111111111";
469cdf0e10cSrcweir static const sal_Char *kSInt64MaxBinaryStr =
470cdf0e10cSrcweir             "111111111111111111111111111111111111111111111111111111111111111";
471cdf0e10cSrcweir 
472cdf0e10cSrcweir //------------------------------------------------------------------------
473cdf0e10cSrcweir 
474cdf0e10cSrcweir static const sal_Char *kSInt8MaxOctolStr  = "177";
475cdf0e10cSrcweir static const sal_Char *kUInt8MaxOctolStr  = "377";
476cdf0e10cSrcweir static const sal_Char *kSInt16MaxOctolStr = "77777";
477cdf0e10cSrcweir static const sal_Char *kUInt16MaxOctolStr = "177777";
478cdf0e10cSrcweir static const sal_Char *kSInt32MaxOctolStr = "17777777777";
479cdf0e10cSrcweir static const sal_Char *kUInt32MaxOctolStr = "37777777777";
480cdf0e10cSrcweir static const sal_Char *kSInt64MaxOctolStr = "777777777777777777777";
481cdf0e10cSrcweir 
482cdf0e10cSrcweir //------------------------------------------------------------------------
483cdf0e10cSrcweir 
484cdf0e10cSrcweir static const sal_Char *kSInt8MaxDecimalStr  = "127";
485cdf0e10cSrcweir static const sal_Char *kUInt8MaxDecimalStr  = "255";
486cdf0e10cSrcweir static const sal_Char *kSInt16MaxDecimalStr = "32767";
487cdf0e10cSrcweir static const sal_Char *kUInt16MaxDecimalStr = "65535";
488cdf0e10cSrcweir static const sal_Char *kSInt32MaxDecimalStr = "2147483647";
489cdf0e10cSrcweir static const sal_Char *kUInt32MaxDecimalStr = "4294967295";
490cdf0e10cSrcweir static const sal_Char *kSInt64MaxDecimalStr = "9223372036854775807";
491cdf0e10cSrcweir 
492cdf0e10cSrcweir //------------------------------------------------------------------------
493cdf0e10cSrcweir 
494cdf0e10cSrcweir static const sal_Char *kSInt8MaxHexDecimalStr  = "7f";
495cdf0e10cSrcweir static const sal_Char *kUInt8MaxHexDecimalStr  = "ff";
496cdf0e10cSrcweir static const sal_Char *kSInt16MaxHexDecimalStr = "7fff";
497cdf0e10cSrcweir static const sal_Char *kUInt16MaxHexDecimalStr = "ffff";
498cdf0e10cSrcweir static const sal_Char *kSInt32MaxHexDecimalStr = "7fffffff";
499cdf0e10cSrcweir static const sal_Char *kUInt32MaxHexDecimalStr = "ffffffff";
500cdf0e10cSrcweir static const sal_Char *kSInt64MaxHexDecimalStr = "7fffffffffffffff";
501cdf0e10cSrcweir 
502cdf0e10cSrcweir //------------------------------------------------------------------------
503cdf0e10cSrcweir 
504cdf0e10cSrcweir static const sal_Char *kSInt8MaxBase36Str  = "3j";
505cdf0e10cSrcweir static const sal_Char *kUInt8MaxBase36Str  = "73";
506cdf0e10cSrcweir static const sal_Char *kSInt16MaxBase36Str = "pa7";
507cdf0e10cSrcweir static const sal_Char *kUInt16MaxBase36Str = "1ekf";
508cdf0e10cSrcweir static const sal_Char *kSInt32MaxBase36Str = "zik0zj";
509cdf0e10cSrcweir static const sal_Char *kUInt32MaxBase36Str = "1z141z3";
510cdf0e10cSrcweir static const sal_Char *kSInt64MaxBase36Str = "1y2p0ij32e8e7";
511cdf0e10cSrcweir 
512cdf0e10cSrcweir //------------------------------------------------------------------------
513cdf0e10cSrcweir //------------------------------------------------------------------------
514cdf0e10cSrcweir 
515cdf0e10cSrcweir static const sal_Int32 kBinaryNumsCount = 16;
516cdf0e10cSrcweir 
517cdf0e10cSrcweir static const sal_Char *kBinaryNumsStr[kBinaryNumsCount] =
518cdf0e10cSrcweir                         {
519cdf0e10cSrcweir                             "0",   "1",    "10",   "11",
520cdf0e10cSrcweir                             "100",  "101",  "110",  "111",
521cdf0e10cSrcweir                             "1000", "1001", "1010", "1011",
522cdf0e10cSrcweir                             "1100", "1101", "1110", "1111"
523cdf0e10cSrcweir                         };
524cdf0e10cSrcweir 
525cdf0e10cSrcweir static const sal_Int32 kBinaryMaxNumsCount = 7;
526cdf0e10cSrcweir 
527cdf0e10cSrcweir static const sal_Char *kBinaryMaxNumsStr[kBinaryMaxNumsCount] =
528cdf0e10cSrcweir                         {
529cdf0e10cSrcweir                             kSInt8MaxBinaryStr,
530cdf0e10cSrcweir                             kUInt8MaxBinaryStr,
531cdf0e10cSrcweir                             kSInt16MaxBinaryStr,
532cdf0e10cSrcweir                             kUInt16MaxBinaryStr,
533cdf0e10cSrcweir                             kSInt32MaxBinaryStr,
534cdf0e10cSrcweir                             kUInt32MaxBinaryStr,
535cdf0e10cSrcweir                             kSInt64MaxBinaryStr
536cdf0e10cSrcweir                         };
537cdf0e10cSrcweir 
538cdf0e10cSrcweir //------------------------------------------------------------------------
539cdf0e10cSrcweir 
540cdf0e10cSrcweir static const sal_Int32 kOctolNumsCount = 16;
541cdf0e10cSrcweir 
542cdf0e10cSrcweir static const sal_Char *kOctolNumsStr[kOctolNumsCount] =
543cdf0e10cSrcweir                         {
544cdf0e10cSrcweir                             "0",  "1",  "2",  "3",
545cdf0e10cSrcweir                             "4",  "5",  "6",  "7",
546cdf0e10cSrcweir                             "10", "11", "12", "13",
547cdf0e10cSrcweir                             "14", "15", "16", "17"
548cdf0e10cSrcweir                         };
549cdf0e10cSrcweir 
550cdf0e10cSrcweir static const sal_Int32 kOctolMaxNumsCount = 7;
551cdf0e10cSrcweir 
552cdf0e10cSrcweir static const sal_Char *kOctolMaxNumsStr[kOctolMaxNumsCount] =
553cdf0e10cSrcweir                         {
554cdf0e10cSrcweir                             kSInt8MaxOctolStr,
555cdf0e10cSrcweir                             kUInt8MaxOctolStr,
556cdf0e10cSrcweir                             kSInt16MaxOctolStr,
557cdf0e10cSrcweir                             kUInt16MaxOctolStr,
558cdf0e10cSrcweir                             kSInt32MaxOctolStr,
559cdf0e10cSrcweir                             kUInt32MaxOctolStr,
560cdf0e10cSrcweir                             kSInt64MaxOctolStr
561cdf0e10cSrcweir                         };
562cdf0e10cSrcweir 
563cdf0e10cSrcweir //------------------------------------------------------------------------
564cdf0e10cSrcweir 
565cdf0e10cSrcweir static const sal_Int32 kDecimalNumsCount = 16;
566cdf0e10cSrcweir 
567cdf0e10cSrcweir static const sal_Char *kDecimalNumsStr[kDecimalNumsCount] =
568cdf0e10cSrcweir                         {
569cdf0e10cSrcweir                             "0",  "1",  "2",  "3",
570cdf0e10cSrcweir                             "4",  "5",  "6",  "7",
571cdf0e10cSrcweir                             "8",  "9", "10", "11",
572cdf0e10cSrcweir                             "12", "13", "14", "15"
573cdf0e10cSrcweir                         };
574cdf0e10cSrcweir 
575cdf0e10cSrcweir static const sal_Int32 kDecimalMaxNumsCount = 7;
576cdf0e10cSrcweir 
577cdf0e10cSrcweir static const sal_Char *kDecimalMaxNumsStr[kDecimalMaxNumsCount] =
578cdf0e10cSrcweir                         {
579cdf0e10cSrcweir                             kSInt8MaxDecimalStr,
580cdf0e10cSrcweir                             kUInt8MaxDecimalStr,
581cdf0e10cSrcweir                             kSInt16MaxDecimalStr,
582cdf0e10cSrcweir                             kUInt16MaxDecimalStr,
583cdf0e10cSrcweir                             kSInt32MaxDecimalStr,
584cdf0e10cSrcweir                             kUInt32MaxDecimalStr,
585cdf0e10cSrcweir                             kSInt64MaxDecimalStr
586cdf0e10cSrcweir                         };
587cdf0e10cSrcweir 
588cdf0e10cSrcweir //------------------------------------------------------------------------
589cdf0e10cSrcweir 
590cdf0e10cSrcweir static const sal_Int32 kHexDecimalNumsCount = 16;
591cdf0e10cSrcweir 
592cdf0e10cSrcweir static const sal_Char *kHexDecimalNumsStr[kHexDecimalNumsCount] =
593cdf0e10cSrcweir                         {
594cdf0e10cSrcweir                             "0", "1", "2", "3",
595cdf0e10cSrcweir                             "4", "5", "6", "7",
596cdf0e10cSrcweir                             "8", "9", "a", "b",
597cdf0e10cSrcweir                             "c", "d", "e", "f"
598cdf0e10cSrcweir                         };
599cdf0e10cSrcweir 
600cdf0e10cSrcweir static const sal_Int32 kHexDecimalMaxNumsCount = 7;
601cdf0e10cSrcweir 
602cdf0e10cSrcweir static const sal_Char *kHexDecimalMaxNumsStr[kHexDecimalMaxNumsCount] =
603cdf0e10cSrcweir                         {
604cdf0e10cSrcweir                             kSInt8MaxHexDecimalStr,
605cdf0e10cSrcweir                             kUInt8MaxHexDecimalStr,
606cdf0e10cSrcweir                             kSInt16MaxHexDecimalStr,
607cdf0e10cSrcweir                             kUInt16MaxHexDecimalStr,
608cdf0e10cSrcweir                             kSInt32MaxHexDecimalStr,
609cdf0e10cSrcweir                             kUInt32MaxHexDecimalStr,
610cdf0e10cSrcweir                             kSInt64MaxHexDecimalStr
611cdf0e10cSrcweir                         };
612cdf0e10cSrcweir 
613cdf0e10cSrcweir //------------------------------------------------------------------------
614cdf0e10cSrcweir 
615cdf0e10cSrcweir static const sal_Int32 kBase36NumsCount = 36;
616cdf0e10cSrcweir 
617cdf0e10cSrcweir static const sal_Char *kBase36NumsStr[kBase36NumsCount] =
618cdf0e10cSrcweir                         {
619cdf0e10cSrcweir                             "0", "1", "2", "3",
620cdf0e10cSrcweir                             "4", "5", "6", "7",
621cdf0e10cSrcweir                             "8", "9", "a", "b",
622cdf0e10cSrcweir                             "c", "d", "e", "f",
623cdf0e10cSrcweir                             "g", "h", "i", "j",
624cdf0e10cSrcweir                             "k", "l", "m", "n",
625cdf0e10cSrcweir                             "o", "p", "q", "r",
626cdf0e10cSrcweir                             "s", "t", "u", "v",
627cdf0e10cSrcweir                             "w", "x", "y", "z"
628cdf0e10cSrcweir                         };
629cdf0e10cSrcweir 
630cdf0e10cSrcweir static const sal_Int32 kBase36MaxNumsCount = 7;
631cdf0e10cSrcweir 
632cdf0e10cSrcweir static const sal_Char *kBase36MaxNumsStr[kBase36MaxNumsCount] =
633cdf0e10cSrcweir                         {
634cdf0e10cSrcweir                             kSInt8MaxBase36Str,
635cdf0e10cSrcweir                             kUInt8MaxBase36Str,
636cdf0e10cSrcweir                             kSInt16MaxBase36Str,
637cdf0e10cSrcweir                             kUInt16MaxBase36Str,
638cdf0e10cSrcweir                             kSInt32MaxBase36Str,
639cdf0e10cSrcweir                             kUInt32MaxBase36Str,
640cdf0e10cSrcweir                             kSInt64MaxBase36Str
641cdf0e10cSrcweir                         };
642cdf0e10cSrcweir 
643cdf0e10cSrcweir //------------------------------------------------------------------------
644cdf0e10cSrcweir //------------------------------------------------------------------------
645cdf0e10cSrcweir static const sal_Int32 nDoubleCount=24;
646cdf0e10cSrcweir // static const sal_Char *inputDouble[nDoubleCount] =
647cdf0e10cSrcweir // 	{
648cdf0e10cSrcweir //             "3","3.1","3.1415","3.1415926535","3.141592653589793",
649cdf0e10cSrcweir //             "3.1415926535897932","3.14159265358979323","+3.1",
650cdf0e10cSrcweir //             "3.141592653589793238462643","9.1096e-31","2.997925e8","6.241e18","5.381e+18",
651cdf0e10cSrcweir //             "1.7e-309","6.5822e-16","1.7e+307","2.2e30","03.1"," 3.1","-3.1",
652cdf0e10cSrcweir //             "-0.0","0.0","","1.00e308"
653cdf0e10cSrcweir // 	};
654cdf0e10cSrcweir static const double   expValDouble[nDoubleCount]=
655cdf0e10cSrcweir 	{
656cdf0e10cSrcweir             3.0,3.1,3.1415,3.1415926535,3.141592653589793,
657cdf0e10cSrcweir             3.1415926535897932,3.14159265358979323,3.1,
658cdf0e10cSrcweir             3.141592653589793238462643,9.1096e-31,2.997925e8,6.241e18,5.381e18,
659cdf0e10cSrcweir             1.7e-309,6.5822e-16,1.7e+307,2.2e30,3.1,3.1,-3.1,
660cdf0e10cSrcweir             0.0,0.0,0.0,1.00e+308
661cdf0e10cSrcweir 	};
662cdf0e10cSrcweir //------------------------------------------------------------------------
663cdf0e10cSrcweir static const sal_Int32 nFloatCount=22;
664cdf0e10cSrcweir // static const sal_Char *inputFloat[nFloatCount] =
665cdf0e10cSrcweir //         {
666cdf0e10cSrcweir //             "3",
667cdf0e10cSrcweir //             "3.1",
668cdf0e10cSrcweir //             "3.1415",
669cdf0e10cSrcweir //             "3.14159",
670cdf0e10cSrcweir //             "3.141592",
671cdf0e10cSrcweir //             "3.1415926",
672cdf0e10cSrcweir //             "3.14159265",
673cdf0e10cSrcweir //             "3.141592653589793238462643",
674cdf0e10cSrcweir //             "6.5822e-16",
675cdf0e10cSrcweir //             "9.1096e-31",
676cdf0e10cSrcweir //             "2.997925e8",
677cdf0e10cSrcweir //             "6.241e18",
678cdf0e10cSrcweir //             "1.00e38",
679cdf0e10cSrcweir //             "6.241e-37",
680cdf0e10cSrcweir //             "6.241e37",
681cdf0e10cSrcweir //             "03.1",
682cdf0e10cSrcweir //             " 3.1",
683cdf0e10cSrcweir //             "-3.1",
684cdf0e10cSrcweir //             "+3.1",
685cdf0e10cSrcweir //             "-0.0",
686cdf0e10cSrcweir //             "0.0",
687cdf0e10cSrcweir //             ""
688cdf0e10cSrcweir //         };
689cdf0e10cSrcweir static const float  expValFloat[nFloatCount] =
690cdf0e10cSrcweir         {
691cdf0e10cSrcweir             3.0f,
692cdf0e10cSrcweir             3.1f,
693cdf0e10cSrcweir             3.1415f,
694cdf0e10cSrcweir             3.14159f,
695cdf0e10cSrcweir             3.141592f,
696cdf0e10cSrcweir             3.1415926f,
697cdf0e10cSrcweir             3.14159265f,
698cdf0e10cSrcweir             3.141592653589793238462643f,
699cdf0e10cSrcweir             6.5822e-16f,
700cdf0e10cSrcweir             9.1096e-31f,
701cdf0e10cSrcweir             2.997925e8f,
702cdf0e10cSrcweir             6.241e18f,
703cdf0e10cSrcweir             1.00e38f,
704cdf0e10cSrcweir             6.241e-37f,
705cdf0e10cSrcweir             6.241e37f,
706cdf0e10cSrcweir             3.1f,
707cdf0e10cSrcweir             3.1f,
708cdf0e10cSrcweir             -3.1f,
709cdf0e10cSrcweir             3.1f,
710cdf0e10cSrcweir             0.0f,
711cdf0e10cSrcweir             0.0f,
712cdf0e10cSrcweir             0.0f
713cdf0e10cSrcweir         };
714cdf0e10cSrcweir static const float  fPrecision[nFloatCount] =
715cdf0e10cSrcweir         {
716cdf0e10cSrcweir             3e-7f,
717cdf0e10cSrcweir             3e-7f,
718cdf0e10cSrcweir             3e-7f,
719cdf0e10cSrcweir             3e-7f,
720cdf0e10cSrcweir             3e-7f,
721cdf0e10cSrcweir             3e-7f,
722cdf0e10cSrcweir             3e-7f,
723cdf0e10cSrcweir             3e-7f,
724cdf0e10cSrcweir             6e-16f * 1e-7f,
725cdf0e10cSrcweir             9e-31f * 1e-7f,
726cdf0e10cSrcweir             3e8f   * 1e-7f,
727cdf0e10cSrcweir             6e18f  * 1e-7f,
728cdf0e10cSrcweir             1e38f  * 1e-7f,
729cdf0e10cSrcweir             6e-37f * 1e-7f,
730cdf0e10cSrcweir             6e37f  * 1e-7f,
731cdf0e10cSrcweir             3e-7f,
732cdf0e10cSrcweir             3e-7f,
733cdf0e10cSrcweir             3e-7f,
734cdf0e10cSrcweir             3e-7f,
735cdf0e10cSrcweir             1e-7f,
736cdf0e10cSrcweir             1e-7f,
737cdf0e10cSrcweir             1e-7f
738cdf0e10cSrcweir         };
739cdf0e10cSrcweir //------------------------------------------------------------------------
740cdf0e10cSrcweir static const sal_Int32 nCharCount=15;
741cdf0e10cSrcweir static const sal_Char *inputChar[nCharCount] =
742cdf0e10cSrcweir         {
743cdf0e10cSrcweir             "A","a","0","-","_",
744cdf0e10cSrcweir             "\25","\33","\35",
745cdf0e10cSrcweir             "@","\n","\'","\"",
746cdf0e10cSrcweir             "\0","","Sun Microsystems"
747cdf0e10cSrcweir         };
748cdf0e10cSrcweir static const sal_Unicode  expValChar[nCharCount] =
749cdf0e10cSrcweir         {
750cdf0e10cSrcweir             65,97,48,45,95,
751cdf0e10cSrcweir             21,27,29,
752cdf0e10cSrcweir             64,10,39,34,
753cdf0e10cSrcweir             0,0,83
754cdf0e10cSrcweir         };
755cdf0e10cSrcweir //------------------------------------------------------------------------
756cdf0e10cSrcweir static const sal_Int32 nDefaultCount=6;
757cdf0e10cSrcweir static const sal_Unicode input1Default[nDefaultCount] =
758cdf0e10cSrcweir         {
759cdf0e10cSrcweir             77,115,85,119,32,0
760cdf0e10cSrcweir         };
761cdf0e10cSrcweir static const sal_Int32 input2Default[nDefaultCount] =
762cdf0e10cSrcweir         {
763cdf0e10cSrcweir             0,0,0,0,0,0
764cdf0e10cSrcweir         };
765cdf0e10cSrcweir static const sal_Int32  expValDefault[nDefaultCount] =
766cdf0e10cSrcweir         {
767cdf0e10cSrcweir             4,9,-1,-1,3,-1
768cdf0e10cSrcweir         };
769cdf0e10cSrcweir //------------------------------------------------------------------------
770cdf0e10cSrcweir static const sal_Int32 nNormalCount=10;
771cdf0e10cSrcweir static const sal_Unicode input1Normal[nNormalCount] =
772cdf0e10cSrcweir         {
773cdf0e10cSrcweir             77,77,77,115,115,115,119,119,0,0
774cdf0e10cSrcweir         };
775cdf0e10cSrcweir static const sal_Int32 input2Normal[nNormalCount] =
776cdf0e10cSrcweir         {
777cdf0e10cSrcweir             0,32,80,0,13,20,0,80,0,32
778cdf0e10cSrcweir         };
779cdf0e10cSrcweir static const sal_Int32  expValNormal[nNormalCount] =
780cdf0e10cSrcweir         {
781cdf0e10cSrcweir             4,-1,-1,9,15,-1,-1,-1,-1,-1
782cdf0e10cSrcweir         };
783cdf0e10cSrcweir //------------------------------------------------------------------------
784cdf0e10cSrcweir static const sal_Int32 nlastDefaultCount=5;
785cdf0e10cSrcweir static const sal_Unicode input1lastDefault[nlastDefaultCount] =
786cdf0e10cSrcweir         {
787cdf0e10cSrcweir             77,115,119,32,0
788cdf0e10cSrcweir         };
789cdf0e10cSrcweir static const sal_Int32 input2lastDefault[nlastDefaultCount] =
790cdf0e10cSrcweir         {
791cdf0e10cSrcweir             31,31,31,31,31
792cdf0e10cSrcweir         };
793cdf0e10cSrcweir static const sal_Int32  expVallastDefault[nlastDefaultCount] =
794cdf0e10cSrcweir         {
795cdf0e10cSrcweir             4,15,-1,21,-1
796cdf0e10cSrcweir         };
797cdf0e10cSrcweir //------------------------------------------------------------------------
798cdf0e10cSrcweir static const sal_Int32 nlastNormalCount=8;
799cdf0e10cSrcweir static const sal_Unicode input1lastNormal[nlastNormalCount] =
800cdf0e10cSrcweir         {
801cdf0e10cSrcweir             77,77,77,115,115,119,119,0
802cdf0e10cSrcweir         };
803cdf0e10cSrcweir static const sal_Int32 input2lastNormal[nlastNormalCount] =
804cdf0e10cSrcweir         {
805cdf0e10cSrcweir             29,0,80,31,3,31,80,31
806cdf0e10cSrcweir         };
807cdf0e10cSrcweir static const sal_Int32  expVallastNormal[nlastNormalCount] =
808cdf0e10cSrcweir         {
809cdf0e10cSrcweir             4,-1,4,15,-1,-1,-1,-1
810cdf0e10cSrcweir         };
811cdf0e10cSrcweir //------------------------------------------------------------------------
812cdf0e10cSrcweir static const sal_Int32 nStrDefaultCount=6;
813cdf0e10cSrcweir static const sal_Unicode *input1StrDefault[nStrDefaultCount] =
814cdf0e10cSrcweir         {
815cdf0e10cSrcweir             aUStr7,aUStr8,aUStr21,
816cdf0e10cSrcweir             aUStr30,aUStr25,aUStr26
817cdf0e10cSrcweir         };
818cdf0e10cSrcweir static const sal_Int32 input2StrDefault[nStrDefaultCount] =
819cdf0e10cSrcweir         {
820cdf0e10cSrcweir             0,0,0,0,0,0
821cdf0e10cSrcweir         };
822cdf0e10cSrcweir static const sal_Int32 expValStrDefault[nStrDefaultCount] =
823cdf0e10cSrcweir         {
824cdf0e10cSrcweir             0,4,-1,-1,-1,3
825cdf0e10cSrcweir         };
826cdf0e10cSrcweir //------------------------------------------------------------------------
827cdf0e10cSrcweir static const sal_Int32 nStrNormalCount=9;
828cdf0e10cSrcweir static const sal_Unicode *input1StrNormal[nStrNormalCount] =
829cdf0e10cSrcweir         {
830cdf0e10cSrcweir             aUStr7,aUStr7,aUStr8,aUStr8,aUStr21,aUStr30,aUStr25,aUStr25,aUStr26
831cdf0e10cSrcweir         };
832cdf0e10cSrcweir static const sal_Int32 input2StrNormal[nStrNormalCount] =
833cdf0e10cSrcweir         {
834cdf0e10cSrcweir             0,32,0,30,0,0,0,32,0
835cdf0e10cSrcweir         };
836cdf0e10cSrcweir static const sal_Int32 expValStrNormal[nStrNormalCount] =
837cdf0e10cSrcweir         {
838cdf0e10cSrcweir             0,-1,4,-1,-1,-1,-1,-1,3
839cdf0e10cSrcweir         };
840cdf0e10cSrcweir //------------------------------------------------------------------------
841cdf0e10cSrcweir static const sal_Int32 nStrLastDefaultCount=6;
842cdf0e10cSrcweir static const sal_Unicode *input1StrLastDefault[nStrLastDefaultCount] =
843cdf0e10cSrcweir         {
844cdf0e10cSrcweir             aUStr7,aUStr8,aUStr21,aUStr30,aUStr25,aUStr26
845cdf0e10cSrcweir         };
846cdf0e10cSrcweir static const sal_Int32 input2StrLastDefault[nStrLastDefaultCount] =
847cdf0e10cSrcweir         {
848cdf0e10cSrcweir             31,31,31,31,31,31
849cdf0e10cSrcweir         };
850cdf0e10cSrcweir static const sal_Int32  expValStrLastDefault[nStrLastDefaultCount] =
851cdf0e10cSrcweir         {
852cdf0e10cSrcweir             0,4,-1,-1,-1,3
853cdf0e10cSrcweir         };
854cdf0e10cSrcweir //------------------------------------------------------------------------
855cdf0e10cSrcweir static const sal_Int32 nStrLastNormalCount=12;
856cdf0e10cSrcweir static const sal_Unicode *input1StrLastNormal[nStrLastNormalCount] =
857cdf0e10cSrcweir         {
858cdf0e10cSrcweir             aUStr7,aUStr7,aUStr7,aUStr8,aUStr8,aUStr21,aUStr30,
859cdf0e10cSrcweir             aUStr25,aUStr25,aUStr26,aUStr27,aUStr27
860cdf0e10cSrcweir         };
861cdf0e10cSrcweir static const sal_Int32 input2StrLastNormal[nStrLastNormalCount] =
862cdf0e10cSrcweir         {
863cdf0e10cSrcweir             31,0,80,31,2,31,31,31,0,31,31,14
864cdf0e10cSrcweir         };
865cdf0e10cSrcweir static const sal_Int32  expValStrLastNormal[nStrLastNormalCount] =
866cdf0e10cSrcweir         {
867cdf0e10cSrcweir             0,-1,0,4,-1,-1,-1,-1,-1,3,15,11
868cdf0e10cSrcweir         };
869cdf0e10cSrcweir //------------------------------------------------------------------------
870cdf0e10cSrcweir static const sal_Int32 kNonSInt32Max = INT_MIN;
871cdf0e10cSrcweir static const sal_Int32 kNonSInt16Max = SHRT_MIN;
872cdf0e10cSrcweir //------------------------------------------------------------------------
873cdf0e10cSrcweir #ifdef __cplusplus
874cdf0e10cSrcweir }
875cdf0e10cSrcweir #endif
876cdf0e10cSrcweir 
877cdf0e10cSrcweir //------------------------------------------------------------------------
878cdf0e10cSrcweir //------------------------------------------------------------------------
879cdf0e10cSrcweir 
880cdf0e10cSrcweir #endif /* _RTL_STRING_CONST_H_ */
881cdf0e10cSrcweir 
882