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