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