1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 //------------------------------------------------------------------------
25 //------------------------------------------------------------------------
26 
27 #ifndef _RTL_STRING_CONST_H_
28 #define _RTL_STRING_CONST_H_
29 
30 #ifndef _RTL_STRING_UTILS_HXX_
31     #include <rtl_String_Utils.hxx>
32 #endif
33 
34 //------------------------------------------------------------------------
35 //------------------------------------------------------------------------
36 
37 #include <limits.h>
38 
39 //------------------------------------------------------------------------
40 //------------------------------------------------------------------------
41 
42 #ifndef _SAL_TYPES_H_
43 	#include <sal/types.h>
44 #endif
45 
46 #ifndef _RTL_TEXTENC_H
47 	#include <rtl/textenc.h>
48 #endif
49 
50 #ifndef _RTL_USTRING_H_
51 	#include <rtl/ustring.h>
52 #endif
53 
54 //------------------------------------------------------------------------
55 //------------------------------------------------------------------------
56 
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 //------------------------------------------------------------------------
63 //------------------------------------------------------------------------
64 
65 static const rtl_TextEncoding kEncodingRTLTextUSASCII = RTL_TEXTENCODING_ASCII_US;
66 
67 //------------------------------------------------------------------------
68 //------------------------------------------------------------------------
69 
70 static const sal_uInt32 kConvertFlagsOUStringToOString = OUSTRING_TO_OSTRING_CVTFLAGS;
71 static const sal_uInt32 kConvertFlagsOStringToOUString = OSTRING_TO_OUSTRING_CVTFLAGS;
72 
73 //------------------------------------------------------------------------
74 //------------------------------------------------------------------------
75 
76 static const sal_Char *kTestStr1  = "Sun Microsystems";
77 static const sal_Char *kTestStr2  = "Sun Microsystems Java Technology";
78 static const sal_Char *kTestStr3  = "Sun microsystems";
79 static const sal_Char *kTestStr7  = "Sun ";
80 static const sal_Char *kTestStr8  = "Microsystems";
81 static const sal_Char *kTestStr14 = "   Sun Microsystems";
82 static const sal_Char *kTestStr17 = "   Sun Microsystems   ";
83 static const sal_Char *kTestStr23  = " Java Technology";
84 static const sal_Char *kTestStr25 = "";
85 static const sal_Char *kTestStr27 = "s";
86 static const sal_Char *kTestStr28 = "\50\3\5\7\11\13\15\17sun";
87 static const sal_Char *kTestStr29 = "\50\3\5\7\11\13\15\17sun\21\23\25\27\31\33\50";
88 static const sal_Char *kTestStr31 = "sun Microsystems";
89 static const sal_Char *kTestStr32 = "Sun Microsystem ";
90 static const sal_Char *kTestStr33 = " ";
91 static const sal_Char *kTestStr34 = "\50\5\5\7\11\13\15\17sun";
92 static const sal_Char *kTestStr35 = "\50\373\5\7\11\13\15\17sun";
93 static const sal_Char *kTestStr36 = "Microsystems Java Technology";
94 static const sal_Char *kTestStr37 = "Sun  Java Technology";
95 static const sal_Char *kTestStr38 = "\21\23\25\27\31\33\50";
96 static const sal_Char *kTestStr39 = "\50\3\5\7\11\13\15\17sun   Sun Microsystems   ";
97 static const sal_Char *kTestStr40 = "\50\3\5\7\11\13\15\17sunsun Microsystems";
98 static const sal_Char *kTestStr45  = "Sun true";
99 static const sal_Char *kTestStr46  = "Sun false";
100 static const sal_Char *kTestStr47  = "true";
101 static const sal_Char *kTestStr48  = "false";
102 static const sal_Char *kTestStr49 = "\50\3\5\7\11\13\15\17suntrue";
103 static const sal_Char *kTestStr50 = "\50\3\5\7\11\13\15\17sunfalse";
104 static const sal_Char *kTestStr51  = "Sun M";
105 //static const sal_Char *kTestStr52  = "Sun \077777";
106 //static const sal_Char *kTestStr53  = "Sun \100000";
107 //static const sal_Char *kTestStr54  = "\77777";
108 //static const sal_Char *kTestStr55  = "\100000";
109 static const sal_Char *kTestStr56 = "\50\3\5\7\11\13\15\17suns";
110 //static const sal_Char *kTestStr57 = "\50\3\5\7\11\13\15\17sun\77777";
111 //static const sal_Char *kTestStr58 = "\50\3\5\7\11\13\15\17sun\10000";
112 static const sal_Char *kTestStr59  = "Sun 11";
113 static const sal_Char *kTestStr60  = "11";
114 static const sal_Char *kTestStr61  = "\50\3\5\7\11\13\15\17sun11";
115 static const sal_Char *kTestStr62  = "Sun 0";
116 static const sal_Char *kTestStr63  = "Sun -11";
117 static const sal_Char *kTestStr64  = "Sun 2147483647";
118 static const sal_Char *kTestStr65  = "Sun -2147483648";
119 static const sal_Char *kTestStr66  = "0";
120 static const sal_Char *kTestStr67  = "-11";
121 static const sal_Char *kTestStr68  = "2147483647";
122 static const sal_Char *kTestStr69  = "-2147483648";
123 static const sal_Char *kTestStr70  = "\50\3\5\7\11\13\15\17sun0";
124 static const sal_Char *kTestStr71  = "\50\3\5\7\11\13\15\17sun-11";
125 static const sal_Char *kTestStr72  = "\50\3\5\7\11\13\15\17sun2147483647";
126 static const sal_Char *kTestStr73  = "\50\3\5\7\11\13\15\17sun-2147483648";
127 static const sal_Char *kTestStr116  = "Sun 9223372036854775807";
128 static const sal_Char *kTestStr117  = "Sun -9223372036854775808";
129 static const sal_Char *kTestStr118  = "9223372036854775807";
130 static const sal_Char *kTestStr119  = "-9223372036854775808";
131 static const sal_Char *kTestStr120  = "\50\3\5\7\11\13\15\17sun9223372036854775807";
132 static const sal_Char *kTestStr121  = "\50\3\5\7\11\13\15\17sun-9223372036854775808";
133 static const sal_Char *kTestStr143  = "Sun \377";
134 static const sal_Char *kTestStr144  = "\377";
135 static const sal_Char *kTestStr145 = "\50\3\5\7\11\13\15\17sun\377";
136 
137 //------------------------------------------------------------------------
138 //------------------------------------------------------------------------
139 
140 static const sal_Int32 kTestStr1Len  = 16;
141 static const sal_Int32 kTestStr2Len  = 32;
142 static const sal_Int32 kTestStr3Len  = 16;
143 static const sal_Int32 kTestStr4Len  = 16;
144 static const sal_Int32 kTestStr5Len  = 16;
145 static const sal_Int32 kTestStr6Len  = 15;
146 static const sal_Int32 kTestStr7Len  = 4;
147 static const sal_Int32 kTestStr8Len  = 12;
148 static const sal_Int32 kTestStr9Len  = 32;
149 static const sal_Int32 kTestStr10Len = 17;
150 static const sal_Int32 kTestStr11Len = 17;
151 static const sal_Int32 kTestStr12Len = 18;
152 static const sal_Int32 kTestStr13Len = 19;
153 static const sal_Int32 kTestStr14Len = 19;
154 static const sal_Int32 kTestStr15Len = 20;
155 static const sal_Int32 kTestStr16Len = 20;
156 static const sal_Int32 kTestStr17Len = 22;
157 static const sal_Int32 kTestStr18Len = 16;
158 static const sal_Int32 kTestStr19Len = 22;
159 static const sal_Int32 kTestStr20Len = 3;
160 static const sal_Int32 kTestStr21Len = 3;
161 static const sal_Int32 kTestStr22Len = 32;
162 static const sal_Int32 kTestStr23Len = 16;
163 static const sal_Int32 kTestStr24Len = 31;
164 static const sal_Int32 kTestStr25Len = 0;
165 static const sal_Int32 kTestStr26Len = 4;
166 static const sal_Int32 kTestStr27Len = 1;
167 static const sal_Int32 kTestStr28Len = 11;
168 static const sal_Int32 kTestStr29Len = 18;
169 static const sal_Int32 kTestStr30Len = 10;
170 static const sal_Int32 kTestStr31Len = 16;
171 static const sal_Int32 kTestStr32Len = 16;
172 static const sal_Int32 kTestStr33Len = 1;
173 static const sal_Int32 kTestStr34Len = 11;
174 static const sal_Int32 kTestStr35Len = 11;
175 static const sal_Int32 kTestStr36Len = 28;
176 static const sal_Int32 kTestStr37Len = 20;
177 static const sal_Int32 kTestStr38Len = 7;
178 static const sal_Int32 kTestStr39Len = 33;
179 static const sal_Int32 kTestStr40Len = 27;
180 static const sal_Int32 kTestStr41Len = 3;
181 static const sal_Int32 kTestStr42Len = 10;
182 static const sal_Int32 kTestStr43Len = 13;
183 static const sal_Int32 kTestStr44Len = 2;
184 static const sal_Int32 kTestStr45Len = 8;
185 static const sal_Int32 kTestStr46Len = 9;
186 static const sal_Int32 kTestStr47Len = 4;
187 static const sal_Int32 kTestStr48Len = 5;
188 static const sal_Int32 kTestStr49Len = 15;
189 static const sal_Int32 kTestStr50Len = 16;
190 static const sal_Int32 kTestStr51Len = 5;
191 static const sal_Int32 kTestStr52Len = 5;
192 static const sal_Int32 kTestStr53Len = 5;
193 static const sal_Int32 kTestStr54Len = 1;
194 static const sal_Int32 kTestStr55Len = 1;
195 static const sal_Int32 kTestStr56Len = 12;
196 static const sal_Int32 kTestStr57Len = 12;
197 static const sal_Int32 kTestStr58Len = 12;
198 static const sal_Int32 kTestStr59Len = 6;
199 static const sal_Int32 kTestStr60Len = 2;
200 static const sal_Int32 kTestStr61Len = 13;
201 static const sal_Int32 kTestStr62Len = 5;
202 static const sal_Int32 kTestStr63Len = 7;
203 static const sal_Int32 kTestStr64Len = 14;
204 static const sal_Int32 kTestStr65Len = 15;
205 static const sal_Int32 kTestStr66Len = 1;
206 static const sal_Int32 kTestStr67Len = 3;
207 static const sal_Int32 kTestStr68Len = 10;
208 static const sal_Int32 kTestStr69Len = 11;
209 static const sal_Int32 kTestStr70Len = 12;
210 static const sal_Int32 kTestStr71Len = 14;
211 static const sal_Int32 kTestStr72Len = 21;
212 static const sal_Int32 kTestStr73Len = 22;
213 static const sal_Int32 kTestStr74Len = 7;
214 static const sal_Int32 kTestStr75Len = 7;
215 static const sal_Int32 kTestStr76Len = 10;
216 static const sal_Int32 kTestStr77Len = 12;
217 static const sal_Int32 kTestStr78Len = 12;
218 static const sal_Int32 kTestStr79Len = 13;
219 static const sal_Int32 kTestStr80Len = 13;
220 static const sal_Int32 kTestStr81Len = 3;
221 static const sal_Int32 kTestStr82Len = 3;
222 static const sal_Int32 kTestStr83Len = 6;
223 static const sal_Int32 kTestStr84Len = 8;
224 static const sal_Int32 kTestStr85Len = 8;
225 static const sal_Int32 kTestStr86Len = 9;
226 static const sal_Int32 kTestStr87Len = 9;
227 static const sal_Int32 kTestStr88Len = 14;
228 static const sal_Int32 kTestStr89Len = 14;
229 static const sal_Int32 kTestStr90Len = 17;
230 static const sal_Int32 kTestStr91Len = 19;
231 static const sal_Int32 kTestStr92Len = 19;
232 static const sal_Int32 kTestStr93Len = 20;
233 static const sal_Int32 kTestStr94Len = 20;
234 static const sal_Int32 kTestStr95Len = 8;
235 static const sal_Int32 kTestStr96Len = 8;
236 static const sal_Int32 kTestStr97Len = 11;
237 static const sal_Int32 kTestStr98Len = 13;
238 static const sal_Int32 kTestStr99Len = 13;
239 static const sal_Int32 kTestStr100Len = 14;
240 static const sal_Int32 kTestStr101Len = 14;
241 static const sal_Int32 kTestStr102Len = 4;
242 static const sal_Int32 kTestStr103Len = 4;
243 static const sal_Int32 kTestStr104Len = 7;
244 static const sal_Int32 kTestStr105Len = 9;
245 static const sal_Int32 kTestStr106Len = 9;
246 static const sal_Int32 kTestStr107Len = 10;
247 static const sal_Int32 kTestStr108Len = 10;
248 static const sal_Int32 kTestStr109Len = 15;
249 static const sal_Int32 kTestStr110Len = 15;
250 static const sal_Int32 kTestStr111Len = 18;
251 static const sal_Int32 kTestStr112Len = 20;
252 static const sal_Int32 kTestStr113Len = 20;
253 static const sal_Int32 kTestStr114Len = 21;
254 static const sal_Int32 kTestStr115Len = 21;
255 static const sal_Int32 kTestStr116Len = 23;
256 static const sal_Int32 kTestStr117Len = 24;
257 static const sal_Int32 kTestStr118Len = 19;
258 static const sal_Int32 kTestStr119Len = 20;
259 static const sal_Int32 kTestStr120Len = 30;
260 static const sal_Int32 kTestStr121Len = 31;
261 static const sal_Int32 kTestStr122Len = 16;
262 static const sal_Int32 kTestStr123Len = 21;
263 static const sal_Int32 kTestStr124Len = 23;
264 static const sal_Int32 kTestStr125Len = 30;
265 static const sal_Int32 kTestStr126Len = 12;
266 static const sal_Int32 kTestStr127Len = 17;
267 static const sal_Int32 kTestStr128Len = 19;
268 static const sal_Int32 kTestStr129Len = 26;
269 static const sal_Int32 kTestStr130Len = 23;
270 static const sal_Int32 kTestStr131Len = 28;
271 static const sal_Int32 kTestStr132Len = 30;
272 static const sal_Int32 kTestStr133Len = 37;
273 static const sal_Int32 kTestStr134Len = 22;
274 static const sal_Int32 kTestStr135Len = 24;
275 static const sal_Int32 kTestStr136Len = 31;
276 static const sal_Int32 kTestStr137Len = 18;
277 static const sal_Int32 kTestStr138Len = 20;
278 static const sal_Int32 kTestStr139Len = 27;
279 static const sal_Int32 kTestStr140Len = 29;
280 static const sal_Int32 kTestStr141Len = 31;
281 static const sal_Int32 kTestStr142Len = 38;
282 static const sal_Int32 kTestStr143Len = 5;
283 static const sal_Int32 kTestStr144Len = 1;
284 static const sal_Int32 kTestStr145Len = 12;
285 static const sal_Int32 kTestStr146Len = 19;
286 static const sal_Int32 kTestStr147Len = 19;
287 static const sal_Int32 kTestStr148Len = 19;
288 static const sal_Int32 kTestStr149Len = 32;
289 static const sal_Int32 kTestStr150Len = 32;
290 static const sal_Int32 kTestStr151Len = 31;
291 static const sal_Int32 kTestStr152Len = 31;
292 static const sal_Int32 kTestStr153Len = 31;
293 static const sal_Int32 kTestStr154Len = 36;
294 static const sal_Int32 kTestStr155Len = 36;
295 static const sal_Int32 kTestStr156Len = 36;
296 static const sal_Int32 kTestStr157Len = 49;
297 static const sal_Int32 kTestStr158Len = 49;
298 static const sal_Int32 kTestStr159Len = 49;
299 static const sal_Int32 kTestStr160Len = 48;
300 static const sal_Int32 kTestStr161Len = 48;
301 static const sal_Int32 kTestStr162Len = 48;
302 static const sal_Int32 kTestStr163Len = 15;
303 static const sal_Int32 kTestStr164Len = 15;
304 static const sal_Int32 kTestStr165Len = 15;
305 static const sal_Int32 kTestStr166Len = 28;
306 static const sal_Int32 kTestStr167Len = 28;
307 static const sal_Int32 kTestStr168Len = 28;
308 static const sal_Int32 kTestStr169Len = 27;
309 static const sal_Int32 kTestStr170Len = 27;
310 static const sal_Int32 kTestStr171Len = 27;
311 static const sal_Int32 kTestStr1PlusStr6Len = kTestStr1Len + kTestStr6Len;
312 
313 //------------------------------------------------------------------------
314 //------------------------------------------------------------------------
315 static const sal_Int32 uTestStr1Len  = 16;
316 static const sal_Int32 uTestStr2Len  = 32;
317 static const sal_Int32 uTestStr3Len  = 16;
318 static const sal_Int32 uTestStr4Len  = 16;
319 static const sal_Int32 uTestStr5Len  = 16;
320 static const sal_Int32 uTestStr9Len  = 32;
321 static const sal_Int32 uTestStr22Len = 32;
322 
323 
324 
325 //------------------------------------------------------------------------
326 //------------------------------------------------------------------------
327 const sal_Unicode uTestStr31[]= {0x400,0x410,0x4DF};
328 const sal_Unicode uTestStr32[]= {0x9F9F,0xA000,0x8F80,0x9AD9};
329 
330 
331 
332 //------------------------------------------------------------------------
333 //------------------------------------------------------------------------
334 
335 static const sal_Int32 uTestStr31Len  = 3;
336 static const sal_Int32 uTestStr32Len  = 4;
337 
338 //------------------------------------------------------------------------
339 //------------------------------------------------------------------------
340 
341 static const sal_Int16 kRadixBinary     = 2;
342 static const sal_Int16 kRadixOctol      = 8;
343 static const sal_Int16 kRadixDecimal    = 10;
344 static const sal_Int16 kRadixHexdecimal = 16;
345 static const sal_Int16 kRadixBase36     = 36;
346 
347 //------------------------------------------------------------------------
348 //------------------------------------------------------------------------
349 
350 static const sal_Int8  kSInt8Max  = SCHAR_MAX;
351 static const sal_Int16 kUInt8Max  = UCHAR_MAX;
352 static const sal_Int16 kSInt16Max = SHRT_MAX;
353 static const sal_Int32 kUInt16Max = USHRT_MAX;
354 static const sal_Int32 kSInt32Max = INT_MAX;
355 static const sal_Int64 kUInt32Max = UINT_MAX;
356 static const sal_Int64 kSInt64Max = SAL_CONST_INT64(9223372036854775807);
357 
358 //------------------------------------------------------------------------
359 
360 static const sal_Int32 kInt32MaxNumsCount = 5;
361 
362 static const sal_Int32 kInt32MaxNums[kInt32MaxNumsCount] =
363                         {
364                             kSInt8Max,  kUInt8Max,
365                             kSInt16Max, kUInt16Max,
366                             kSInt32Max
367                         };
368 
369 static const sal_Int32 kInt64MaxNumsCount = 7;
370 
371 static const sal_Int64 kInt64MaxNums[kInt64MaxNumsCount] =
372                         {
373                             kSInt8Max,  kUInt8Max,
374                             kSInt16Max, kUInt16Max,
375                             kSInt32Max, kUInt32Max,
376                             kSInt64Max
377                         };
378 
379 //------------------------------------------------------------------------
380 //------------------------------------------------------------------------
381 
382 static const sal_Int32 kBinaryNumsCount = 16;
383 
384 static const sal_Int32 kBinaryMaxNumsCount = 7;
385 
386 //------------------------------------------------------------------------
387 
388 static const sal_Int32 kOctolNumsCount = 16;
389 
390 static const sal_Int32 kOctolMaxNumsCount = 7;
391 
392 //------------------------------------------------------------------------
393 
394 static const sal_Int32 kDecimalNumsCount = 16;
395 
396 static const sal_Int32 kDecimalMaxNumsCount = 7;
397 
398 //------------------------------------------------------------------------
399 
400 static const sal_Int32 kHexDecimalNumsCount = 16;
401 
402 static const sal_Int32 kHexDecimalMaxNumsCount = 7;
403 
404 //------------------------------------------------------------------------
405 
406 static const sal_Int32 kBase36NumsCount = 36;
407 
408 static const sal_Int32 kBase36MaxNumsCount = 7;
409 
410 //------------------------------------------------------------------------
411 //------------------------------------------------------------------------
412 static const sal_Int32 nDoubleCount=24;
413 static const double   expValDouble[nDoubleCount]=
414 	{
415             3.0,3.1,3.1415,3.1415926535,3.141592653589793,
416             3.1415926535897932,3.14159265358979323,3.1,
417             3.141592653589793238462643,9.1096e-31,2.997925e8,6.241e18,5.381e18,
418             1.7e-309,6.5822e-16,1.7e+307,2.2e30,3.1,3.1,-3.1,
419             0.0,0.0,0.0,1.00e+308
420 	};
421 //------------------------------------------------------------------------
422 static const sal_Int32 nFloatCount=22;
423 static const float  expValFloat[nFloatCount] =
424         {
425             3.0f,3.1f,3.1415f,3.14159f,3.141592f,
426             3.1415926f,3.14159265f,3.141592653589793238462643f,
427             6.5822e-16f,9.1096e-31f,2.997925e8f,6.241e18f,
428             1.00e38f,6.241e-37f,6.241e37f,3.1f,3.1f,-3.1f,
429             3.1f,0.0f,0.0f,0.0f
430         };
431 //------------------------------------------------------------------------
432 static const sal_Int32 nCharCount=15;
433 static const sal_Unicode  expValChar[nCharCount] =
434         {
435             65,97,48,45,95,
436             21,27,29,
437             64,10,39,34,
438             0,0,83
439         };
440 //------------------------------------------------------------------------
441 static const sal_Int32 nDefaultCount=6;
442 static const sal_Unicode input1Default[nDefaultCount] =
443         {
444             77,115,85,119,32,0
445         };
446 static const sal_Int32 input2Default[nDefaultCount] =
447         {
448             0,0,0,0,0,0
449         };
450 static const sal_Int32  expValDefault[nDefaultCount] =
451         {
452             4,9,-1,-1,3,-1
453         };
454 //------------------------------------------------------------------------
455 static const sal_Int32 nNormalCount=10;
456 static const sal_Unicode input1Normal[nNormalCount] =
457         {
458             77,77,77,115,115,115,119,119,0,0
459         };
460 static const sal_Int32 input2Normal[nNormalCount] =
461         {
462             0,32,80,0,13,20,0,80,0,32
463         };
464 static const sal_Int32  expValNormal[nNormalCount] =
465         {
466             4,-1,-1,9,15,-1,-1,-1,-1,-1
467         };
468 //------------------------------------------------------------------------
469 static const sal_Int32 nlastDefaultCount=5;
470 static const sal_Unicode input1lastDefault[nlastDefaultCount] =
471         {
472             77,115,119,32,0
473         };
474 static const sal_Int32 input2lastDefault[nlastDefaultCount] =
475         {
476             31,31,31,31,31
477         };
478 static const sal_Int32  expVallastDefault[nlastDefaultCount] =
479         {
480             4,15,-1,21,-1
481         };
482 //------------------------------------------------------------------------
483 static const sal_Int32 nlastNormalCount=8;
484 static const sal_Unicode input1lastNormal[nlastNormalCount] =
485         {
486             77,77,77,115,115,119,119,0
487         };
488 static const sal_Int32 input2lastNormal[nlastNormalCount] =
489         {
490             29,0,80,31,3,31,80,31
491         };
492 static const sal_Int32  expVallastNormal[nlastNormalCount] =
493         {
494             4,-1,4,15,-1,-1,-1,-1
495         };
496 //------------------------------------------------------------------------
497 static const sal_Int32 nStrDefaultCount=6;
498 static const sal_Int32 input2StrDefault[nStrDefaultCount] =
499         {
500             0,0,0,0,0,0
501         };
502 static const sal_Int32 expValStrDefault[nStrDefaultCount] =
503         {
504             0,4,-1,-1,-1,3
505         };
506 //------------------------------------------------------------------------
507 static const sal_Int32 nStrNormalCount=9;
508 static const sal_Int32 input2StrNormal[nStrNormalCount] =
509         {
510             0,32,0,30,0,0,0,32,0
511         };
512 static const sal_Int32 expValStrNormal[nStrNormalCount] =
513         {
514             0,-1,4,-1,-1,-1,-1,-1,3
515         };
516 //------------------------------------------------------------------------
517 static const sal_Int32 nStrLastDefaultCount=6;
518 static const sal_Int32 input2StrLastDefault[nStrLastDefaultCount] =
519         {
520             31,31,31,31,31,31
521         };
522 static const sal_Int32  expValStrLastDefault[nStrLastDefaultCount] =
523         {
524             0,4,-1,-1,-1,3
525         };
526 //------------------------------------------------------------------------
527 static const sal_Int32 nStrLastNormalCount=12;
528 static const sal_Int32 input2StrLastNormal[nStrLastNormalCount] =
529         {
530             31,0,80,31,2,31,31,31,0,31,31,14
531         };
532 static const sal_Int32  expValStrLastNormal[nStrLastNormalCount] =
533         {
534             0,-1,0,4,-1,-1,-1,-1,-1,3,15,11
535         };
536 //------------------------------------------------------------------------
537 static const sal_Int32 kNonSInt32Max = INT_MIN;
538 static const sal_Int32 kNonSInt16Max = SHRT_MIN;
539 //------------------------------------------------------------------------
540 #ifdef __cplusplus
541 }
542 #endif
543 
544 //------------------------------------------------------------------------
545 //------------------------------------------------------------------------
546 
547 #endif /* _RTL_STRING_CONST_H_ */
548 
549