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