tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / sal / qa / OStringBuffer / rtl_String_Const.h
blob551191fcced5a9be976b056d9a5e54a3bfb02b96
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_CONST_H
21 #define INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_CONST_H
23 #include <limits.h>
24 #include <sal/types.h>
25 #include <rtl/textenc.h>
26 #include <rtl/ustring.h>
28 #ifdef __cplusplus
29 extern "C"
31 #endif
33 const rtl_TextEncoding kEncodingRTLTextUSASCII = RTL_TEXTENCODING_ASCII_US;
35 const sal_uInt32 kConvertFlagsOUStringToOString = OUSTRING_TO_OSTRING_CVTFLAGS;
36 const sal_uInt32 kConvertFlagsOStringToOUString = OSTRING_TO_OUSTRING_CVTFLAGS;
38 const char * const kTestStr1 = "Sun Microsystems";
39 const char * const kTestStr2 = "Sun Microsystems Java Technology";
40 const char * const kTestStr7 = "Sun ";
41 const char * const kTestStr8 = "Microsystems";
42 const char * const kTestStr14 = " Sun Microsystems";
43 const char * const kTestStr17 = " Sun Microsystems ";
44 const char * const kTestStr23 = " Java Technology";
45 const char * const kTestStr25 = "";
46 const char * const kTestStr27 = "s";
47 const char * const kTestStr28 = "\50\3\5\7\11\13\15\17sun";
48 const char * const kTestStr29 = "\50\3\5\7\11\13\15\17sun\21\23\25\27\31\33\50";
49 const char * const kTestStr31 = "sun Microsystems";
50 const char * const kTestStr36 = "Microsystems Java Technology";
51 const char * const kTestStr37 = "Sun Java Technology";
52 const char * const kTestStr38 = "\21\23\25\27\31\33\50";
53 const char * const kTestStr39 = "\50\3\5\7\11\13\15\17sun Sun Microsystems ";
54 const char * const kTestStr40 = "\50\3\5\7\11\13\15\17sunsun Microsystems";
55 const char * const kTestStr45 = "Sun true";
56 const char * const kTestStr46 = "Sun false";
57 const char * const kTestStr47 = "true";
58 const char * const kTestStr48 = "false";
59 const char * const kTestStr49 = "\50\3\5\7\11\13\15\17suntrue";
60 const char * const kTestStr50 = "\50\3\5\7\11\13\15\17sunfalse";
61 const char * const kTestStr51 = "Sun M";
62 //static const char *kTestStr52 = "Sun \077777";
63 //static const char *kTestStr53 = "Sun \100000";
64 //static const char *kTestStr54 = "\77777";
65 //static const char *kTestStr55 = "\100000";
66 const char * const kTestStr56 = "\50\3\5\7\11\13\15\17suns";
67 //static const char *kTestStr57 = "\50\3\5\7\11\13\15\17sun\77777";
68 //static const char *kTestStr58 = "\50\3\5\7\11\13\15\17sun\10000";
69 const char * const kTestStr59 = "Sun 11";
70 const char * const kTestStr60 = "11";
71 const char * const kTestStr61 = "\50\3\5\7\11\13\15\17sun11";
72 const char * const kTestStr62 = "Sun 0";
73 const char * const kTestStr63 = "Sun -11";
74 const char * const kTestStr64 = "Sun 2147483647";
75 const char * const kTestStr65 = "Sun -2147483648";
76 const char * const kTestStr66 = "0";
77 const char * const kTestStr67 = "-11";
78 const char * const kTestStr68 = "2147483647";
79 const char * const kTestStr69 = "-2147483648";
80 const char * const kTestStr70 = "\50\3\5\7\11\13\15\17sun0";
81 const char * const kTestStr71 = "\50\3\5\7\11\13\15\17sun-11";
82 const char * const kTestStr72 = "\50\3\5\7\11\13\15\17sun2147483647";
83 const char * const kTestStr73 = "\50\3\5\7\11\13\15\17sun-2147483648";
84 const char * const kTestStr116 = "Sun 9223372036854775807";
85 const char * const kTestStr117 = "Sun -9223372036854775808";
86 const char * const kTestStr118 = "9223372036854775807";
87 const char * const kTestStr119 = "-9223372036854775808";
88 const char * const kTestStr120 = "\50\3\5\7\11\13\15\17sun9223372036854775807";
89 const char * const kTestStr121 = "\50\3\5\7\11\13\15\17sun-9223372036854775808";
90 const char * const kTestStr143 = "Sun \377";
91 const char * const kTestStr144 = "\377";
92 const char * const kTestStr145 = "\50\3\5\7\11\13\15\17sun\377";
94 const sal_Int32 kTestStr1Len = 16;
95 const sal_Int32 kTestStr2Len = 32;
96 const sal_Int32 kTestStr3Len = 16;
97 const sal_Int32 kTestStr4Len = 16;
98 const sal_Int32 kTestStr5Len = 16;
99 const sal_Int32 kTestStr6Len = 15;
100 const sal_Int32 kTestStr7Len = 4;
101 const sal_Int32 kTestStr8Len = 12;
102 const sal_Int32 kTestStr9Len = 32;
103 const sal_Int32 kTestStr10Len = 17;
104 const sal_Int32 kTestStr11Len = 17;
105 const sal_Int32 kTestStr12Len = 18;
106 const sal_Int32 kTestStr13Len = 19;
107 const sal_Int32 kTestStr14Len = 19;
108 const sal_Int32 kTestStr15Len = 20;
109 const sal_Int32 kTestStr16Len = 20;
110 const sal_Int32 kTestStr17Len = 22;
111 const sal_Int32 kTestStr18Len = 16;
112 const sal_Int32 kTestStr19Len = 22;
113 const sal_Int32 kTestStr20Len = 3;
114 const sal_Int32 kTestStr21Len = 3;
115 const sal_Int32 kTestStr22Len = 32;
116 const sal_Int32 kTestStr23Len = 16;
117 const sal_Int32 kTestStr24Len = 31;
118 const sal_Int32 kTestStr25Len = 0;
119 const sal_Int32 kTestStr26Len = 4;
120 const sal_Int32 kTestStr27Len = 1;
121 const sal_Int32 kTestStr28Len = 11;
122 const sal_Int32 kTestStr29Len = 18;
123 const sal_Int32 kTestStr30Len = 10;
124 const sal_Int32 kTestStr31Len = 16;
125 const sal_Int32 kTestStr32Len = 16;
126 const sal_Int32 kTestStr33Len = 1;
127 const sal_Int32 kTestStr34Len = 11;
128 const sal_Int32 kTestStr35Len = 11;
129 const sal_Int32 kTestStr36Len = 28;
130 const sal_Int32 kTestStr37Len = 20;
131 const sal_Int32 kTestStr38Len = 7;
132 const sal_Int32 kTestStr39Len = 33;
133 const sal_Int32 kTestStr40Len = 27;
134 const sal_Int32 kTestStr41Len = 3;
135 const sal_Int32 kTestStr42Len = 10;
136 const sal_Int32 kTestStr43Len = 13;
137 const sal_Int32 kTestStr44Len = 2;
138 const sal_Int32 kTestStr45Len = 8;
139 const sal_Int32 kTestStr46Len = 9;
140 const sal_Int32 kTestStr47Len = 4;
141 const sal_Int32 kTestStr48Len = 5;
142 const sal_Int32 kTestStr49Len = 15;
143 const sal_Int32 kTestStr50Len = 16;
144 const sal_Int32 kTestStr51Len = 5;
145 const sal_Int32 kTestStr52Len = 5;
146 const sal_Int32 kTestStr53Len = 5;
147 const sal_Int32 kTestStr54Len = 1;
148 const sal_Int32 kTestStr55Len = 1;
149 const sal_Int32 kTestStr56Len = 12;
150 const sal_Int32 kTestStr57Len = 12;
151 const sal_Int32 kTestStr58Len = 12;
152 const sal_Int32 kTestStr59Len = 6;
153 const sal_Int32 kTestStr60Len = 2;
154 const sal_Int32 kTestStr61Len = 13;
155 const sal_Int32 kTestStr62Len = 5;
156 const sal_Int32 kTestStr63Len = 7;
157 const sal_Int32 kTestStr64Len = 14;
158 const sal_Int32 kTestStr65Len = 15;
159 const sal_Int32 kTestStr66Len = 1;
160 const sal_Int32 kTestStr67Len = 3;
161 const sal_Int32 kTestStr68Len = 10;
162 const sal_Int32 kTestStr69Len = 11;
163 const sal_Int32 kTestStr70Len = 12;
164 const sal_Int32 kTestStr71Len = 14;
165 const sal_Int32 kTestStr72Len = 21;
166 const sal_Int32 kTestStr73Len = 22;
167 const sal_Int32 kTestStr74Len = 7;
168 const sal_Int32 kTestStr75Len = 7;
169 const sal_Int32 kTestStr76Len = 10;
170 const sal_Int32 kTestStr77Len = 12;
171 const sal_Int32 kTestStr78Len = 12;
172 const sal_Int32 kTestStr79Len = 13;
173 const sal_Int32 kTestStr80Len = 13;
174 const sal_Int32 kTestStr81Len = 3;
175 const sal_Int32 kTestStr82Len = 3;
176 const sal_Int32 kTestStr83Len = 6;
177 const sal_Int32 kTestStr84Len = 8;
178 const sal_Int32 kTestStr85Len = 8;
179 const sal_Int32 kTestStr86Len = 9;
180 const sal_Int32 kTestStr87Len = 9;
181 const sal_Int32 kTestStr88Len = 14;
182 const sal_Int32 kTestStr89Len = 14;
183 const sal_Int32 kTestStr90Len = 17;
184 const sal_Int32 kTestStr91Len = 19;
185 const sal_Int32 kTestStr92Len = 19;
186 const sal_Int32 kTestStr93Len = 20;
187 const sal_Int32 kTestStr94Len = 20;
188 const sal_Int32 kTestStr95Len = 8;
189 const sal_Int32 kTestStr96Len = 8;
190 const sal_Int32 kTestStr97Len = 11;
191 const sal_Int32 kTestStr98Len = 13;
192 const sal_Int32 kTestStr99Len = 13;
193 const sal_Int32 kTestStr100Len = 14;
194 const sal_Int32 kTestStr101Len = 14;
195 const sal_Int32 kTestStr102Len = 4;
196 const sal_Int32 kTestStr103Len = 4;
197 const sal_Int32 kTestStr104Len = 7;
198 const sal_Int32 kTestStr105Len = 9;
199 const sal_Int32 kTestStr106Len = 9;
200 const sal_Int32 kTestStr107Len = 10;
201 const sal_Int32 kTestStr108Len = 10;
202 const sal_Int32 kTestStr109Len = 15;
203 const sal_Int32 kTestStr110Len = 15;
204 const sal_Int32 kTestStr111Len = 18;
205 const sal_Int32 kTestStr112Len = 20;
206 const sal_Int32 kTestStr113Len = 20;
207 const sal_Int32 kTestStr114Len = 21;
208 const sal_Int32 kTestStr115Len = 21;
209 const sal_Int32 kTestStr116Len = 23;
210 const sal_Int32 kTestStr117Len = 24;
211 const sal_Int32 kTestStr118Len = 19;
212 const sal_Int32 kTestStr119Len = 20;
213 const sal_Int32 kTestStr120Len = 30;
214 const sal_Int32 kTestStr121Len = 31;
215 const sal_Int32 kTestStr122Len = 16;
216 const sal_Int32 kTestStr123Len = 21;
217 const sal_Int32 kTestStr124Len = 23;
218 const sal_Int32 kTestStr125Len = 30;
219 const sal_Int32 kTestStr126Len = 12;
220 const sal_Int32 kTestStr127Len = 17;
221 const sal_Int32 kTestStr128Len = 19;
222 const sal_Int32 kTestStr129Len = 26;
223 const sal_Int32 kTestStr130Len = 23;
224 const sal_Int32 kTestStr131Len = 28;
225 const sal_Int32 kTestStr132Len = 30;
226 const sal_Int32 kTestStr133Len = 37;
227 const sal_Int32 kTestStr134Len = 22;
228 const sal_Int32 kTestStr135Len = 24;
229 const sal_Int32 kTestStr136Len = 31;
230 const sal_Int32 kTestStr137Len = 18;
231 const sal_Int32 kTestStr138Len = 20;
232 const sal_Int32 kTestStr139Len = 27;
233 const sal_Int32 kTestStr140Len = 29;
234 const sal_Int32 kTestStr141Len = 31;
235 const sal_Int32 kTestStr142Len = 38;
236 const sal_Int32 kTestStr143Len = 5;
237 const sal_Int32 kTestStr144Len = 1;
238 const sal_Int32 kTestStr145Len = 12;
239 const sal_Int32 kTestStr146Len = 19;
240 const sal_Int32 kTestStr147Len = 19;
241 const sal_Int32 kTestStr148Len = 19;
242 const sal_Int32 kTestStr149Len = 32;
243 const sal_Int32 kTestStr150Len = 32;
244 const sal_Int32 kTestStr151Len = 31;
245 const sal_Int32 kTestStr152Len = 31;
246 const sal_Int32 kTestStr153Len = 31;
247 const sal_Int32 kTestStr154Len = 36;
248 const sal_Int32 kTestStr155Len = 36;
249 const sal_Int32 kTestStr156Len = 36;
250 const sal_Int32 kTestStr157Len = 49;
251 const sal_Int32 kTestStr158Len = 49;
252 const sal_Int32 kTestStr159Len = 49;
253 const sal_Int32 kTestStr160Len = 48;
254 const sal_Int32 kTestStr161Len = 48;
255 const sal_Int32 kTestStr162Len = 48;
256 const sal_Int32 kTestStr163Len = 15;
257 const sal_Int32 kTestStr164Len = 15;
258 const sal_Int32 kTestStr165Len = 15;
259 const sal_Int32 kTestStr166Len = 28;
260 const sal_Int32 kTestStr167Len = 28;
261 const sal_Int32 kTestStr168Len = 28;
262 const sal_Int32 kTestStr169Len = 27;
263 const sal_Int32 kTestStr170Len = 27;
264 const sal_Int32 kTestStr171Len = 27;
265 const sal_Int32 kTestStr1PlusStr6Len = kTestStr1Len + kTestStr6Len;
267 const sal_Int32 uTestStr1Len = 16;
268 const sal_Int32 uTestStr2Len = 32;
269 const sal_Int32 uTestStr3Len = 16;
270 const sal_Int32 uTestStr4Len = 16;
271 const sal_Int32 uTestStr5Len = 16;
272 const sal_Int32 uTestStr9Len = 32;
273 const sal_Int32 uTestStr22Len = 32;
275 const sal_Unicode uTestStr31[]= {0x400,0x410,0x4DF};
276 const sal_Unicode uTestStr32[]= {0x9F9F,0xA000,0x8F80,0x9AD9};
278 const sal_Int32 uTestStr31Len = 3;
279 const sal_Int32 uTestStr32Len = 4;
281 const sal_Int16 kRadixBinary = 2;
282 const sal_Int16 kRadixOctol = 8;
283 const sal_Int16 kRadixDecimal = 10;
284 const sal_Int16 kRadixHexdecimal = 16;
285 const sal_Int16 kRadixBase36 = 36;
287 const sal_Int8 kSInt8Max = SCHAR_MAX;
288 const sal_Int16 kUInt8Max = UCHAR_MAX;
289 const sal_Int16 kSInt16Max = SHRT_MAX;
290 const sal_Int32 kUInt16Max = USHRT_MAX;
291 const sal_Int32 kSInt32Max = INT_MAX;
292 const sal_Int64 kUInt32Max = UINT_MAX;
293 const sal_Int64 kSInt64Max = SAL_CONST_INT64(9223372036854775807);
295 const sal_Int32 kInt32MaxNumsCount = 5;
297 const sal_Int32 kInt32MaxNums[kInt32MaxNumsCount] =
299 kSInt8Max, kUInt8Max,
300 kSInt16Max, kUInt16Max,
301 kSInt32Max
304 const sal_Int32 kInt64MaxNumsCount = 7;
306 const sal_Int64 kInt64MaxNums[kInt64MaxNumsCount] =
308 kSInt8Max, kUInt8Max,
309 kSInt16Max, kUInt16Max,
310 kSInt32Max, kUInt32Max,
311 kSInt64Max
314 const sal_Int32 kBinaryNumsCount = 16;
316 const sal_Int32 kBinaryMaxNumsCount = 7;
318 const sal_Int32 kOctolNumsCount = 16;
320 const sal_Int32 kOctolMaxNumsCount = 7;
322 const sal_Int32 kDecimalNumsCount = 16;
324 const sal_Int32 kDecimalMaxNumsCount = 7;
326 const sal_Int32 kHexDecimalNumsCount = 16;
328 const sal_Int32 kHexDecimalMaxNumsCount = 7;
330 const sal_Int32 kBase36NumsCount = 36;
332 const sal_Int32 kBase36MaxNumsCount = 7;
334 const sal_Int32 nDoubleCount=24;
335 const double expValDouble[nDoubleCount]=
337 3.0,3.1,3.1415,3.1415926535,3.141592653589793,
338 3.1415926535897932,3.14159265358979323,3.1,
339 3.141592653589793238462643,9.1096e-31,2.997925e8,6.241e18,5.381e18,
340 1.7e-309,6.5822e-16,1.7e+307,2.2e30,3.1,3.1,-3.1,
341 0.0,0.0,0.0,1.00e+308
344 const sal_Int32 nFloatCount=22;
345 const float expValFloat[nFloatCount] =
347 3.0f,3.1f,3.1415f,3.14159f,3.141592f,
348 3.1415926f,3.14159265f,3.141592653589793238462643f,
349 6.5822e-16f,9.1096e-31f,2.997925e8f,6.241e18f,
350 1.00e38f,6.241e-37f,6.241e37f,3.1f,3.1f,-3.1f,
351 3.1f,0.0f,0.0f,0.0f
354 const sal_Int32 nCharCount=15;
355 const sal_Unicode expValChar[nCharCount] =
357 65,97,48,45,95,
358 21,27,29,
359 64,10,39,34,
360 0,0,83
363 const sal_Int32 nDefaultCount=6;
364 const sal_Unicode input1Default[nDefaultCount] =
366 77,115,85,119,32,0
368 const sal_Int32 input2Default[nDefaultCount] =
370 0,0,0,0,0,0
372 const sal_Int32 expValDefault[nDefaultCount] =
374 4,9,-1,-1,3,-1
377 const sal_Int32 nNormalCount=10;
378 const sal_Unicode input1Normal[nNormalCount] =
380 77,77,77,115,115,115,119,119,0,0
382 const sal_Int32 input2Normal[nNormalCount] =
384 0,32,80,0,13,20,0,80,0,32
386 const sal_Int32 expValNormal[nNormalCount] =
388 4,-1,-1,9,15,-1,-1,-1,-1,-1
391 const sal_Int32 nlastDefaultCount=5;
392 const sal_Unicode input1lastDefault[nlastDefaultCount] =
394 77,115,119,32,0
396 const sal_Int32 input2lastDefault[nlastDefaultCount] =
398 31,31,31,31,31
400 const sal_Int32 expVallastDefault[nlastDefaultCount] =
402 4,15,-1,21,-1
405 const sal_Int32 nlastNormalCount=8;
406 const sal_Unicode input1lastNormal[nlastNormalCount] =
408 77,77,77,115,115,119,119,0
410 const sal_Int32 input2lastNormal[nlastNormalCount] =
412 29,0,80,31,3,31,80,31
414 const sal_Int32 expVallastNormal[nlastNormalCount] =
416 4,-1,4,15,-1,-1,-1,-1
419 const sal_Int32 nStrDefaultCount=6;
420 const sal_Int32 input2StrDefault[nStrDefaultCount] =
422 0,0,0,0,0,0
424 const sal_Int32 expValStrDefault[nStrDefaultCount] =
426 0,4,-1,-1,-1,3
429 const sal_Int32 nStrNormalCount=9;
430 const sal_Int32 input2StrNormal[nStrNormalCount] =
432 0,32,0,30,0,0,0,32,0
434 const sal_Int32 expValStrNormal[nStrNormalCount] =
436 0,-1,4,-1,-1,-1,-1,-1,3
439 const sal_Int32 nStrLastDefaultCount=6;
440 const sal_Int32 input2StrLastDefault[nStrLastDefaultCount] =
442 31,31,31,31,31,31
444 const sal_Int32 expValStrLastDefault[nStrLastDefaultCount] =
446 0,4,-1,-1,-1,3
449 const sal_Int32 nStrLastNormalCount=12;
450 const sal_Int32 input2StrLastNormal[nStrLastNormalCount] =
452 31,0,80,31,2,31,31,31,0,31,31,14
454 const sal_Int32 expValStrLastNormal[nStrLastNormalCount] =
456 0,-1,0,4,-1,-1,-1,-1,-1,3,15,11
459 const sal_Int32 kNonSInt32Max = INT_MIN;
460 const sal_Int32 kNonSInt16Max = SHRT_MIN;
462 #ifdef __cplusplus
464 #endif
466 #endif // INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_CONST_H
468 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */