/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_CONST_H
#define INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_CONST_H

#include <limits.h>
#include <sal/types.h>
#include <rtl/textenc.h>
#include <rtl/ustring.h>

#ifdef __cplusplus
extern "C"
{
#endif

const rtl_TextEncoding kEncodingRTLTextUSASCII = RTL_TEXTENCODING_ASCII_US;

const sal_uInt32 kConvertFlagsOUStringToOString = OUSTRING_TO_OSTRING_CVTFLAGS;
const sal_uInt32 kConvertFlagsOStringToOUString = OSTRING_TO_OUSTRING_CVTFLAGS;

const char * const kTestStr1  = "Sun Microsystems";
const char * const kTestStr2  = "Sun Microsystems Java Technology";
const char * const kTestStr7  = "Sun ";
const char * const kTestStr8  = "Microsystems";
const char * const kTestStr14 = "   Sun Microsystems";
const char * const kTestStr17 = "   Sun Microsystems   ";
const char * const kTestStr23  = " Java Technology";
const char * const kTestStr25 = "";
const char * const kTestStr27 = "s";
const char * const kTestStr28 = "\50\3\5\7\11\13\15\17sun";
const char * const kTestStr29 = "\50\3\5\7\11\13\15\17sun\21\23\25\27\31\33\50";
const char * const kTestStr31 = "sun Microsystems";
const char * const kTestStr36 = "Microsystems Java Technology";
const char * const kTestStr37 = "Sun  Java Technology";
const char * const kTestStr38 = "\21\23\25\27\31\33\50";
const char * const kTestStr39 = "\50\3\5\7\11\13\15\17sun   Sun Microsystems   ";
const char * const kTestStr40 = "\50\3\5\7\11\13\15\17sunsun Microsystems";
const char * const kTestStr45  = "Sun true";
const char * const kTestStr46  = "Sun false";
const char * const kTestStr47  = "true";
const char * const kTestStr48  = "false";
const char * const kTestStr49 = "\50\3\5\7\11\13\15\17suntrue";
const char * const kTestStr50 = "\50\3\5\7\11\13\15\17sunfalse";
const char * const kTestStr51  = "Sun M";
//static const char *kTestStr52  = "Sun \077777";
//static const char *kTestStr53  = "Sun \100000";
//static const char *kTestStr54  = "\77777";
//static const char *kTestStr55  = "\100000";
const char * const kTestStr56 = "\50\3\5\7\11\13\15\17suns";
//static const char *kTestStr57 = "\50\3\5\7\11\13\15\17sun\77777";
//static const char *kTestStr58 = "\50\3\5\7\11\13\15\17sun\10000";
const char * const kTestStr59  = "Sun 11";
const char * const kTestStr60  = "11";
const char * const kTestStr61  = "\50\3\5\7\11\13\15\17sun11";
const char * const kTestStr62  = "Sun 0";
const char * const kTestStr63  = "Sun -11";
const char * const kTestStr64  = "Sun 2147483647";
const char * const kTestStr65  = "Sun -2147483648";
const char * const kTestStr66  = "0";
const char * const kTestStr67  = "-11";
const char * const kTestStr68  = "2147483647";
const char * const kTestStr69  = "-2147483648";
const char * const kTestStr70  = "\50\3\5\7\11\13\15\17sun0";
const char * const kTestStr71  = "\50\3\5\7\11\13\15\17sun-11";
const char * const kTestStr72  = "\50\3\5\7\11\13\15\17sun2147483647";
const char * const kTestStr73  = "\50\3\5\7\11\13\15\17sun-2147483648";
const char * const kTestStr116  = "Sun 9223372036854775807";
const char * const kTestStr117  = "Sun -9223372036854775808";
const char * const kTestStr118  = "9223372036854775807";
const char * const kTestStr119  = "-9223372036854775808";
const char * const kTestStr120  = "\50\3\5\7\11\13\15\17sun9223372036854775807";
const char * const kTestStr121  = "\50\3\5\7\11\13\15\17sun-9223372036854775808";
const char * const kTestStr143  = "Sun \377";
const char * const kTestStr144  = "\377";
const char * const kTestStr145 = "\50\3\5\7\11\13\15\17sun\377";

const sal_Int32 kTestStr1Len  = 16;
const sal_Int32 kTestStr2Len  = 32;
const sal_Int32 kTestStr3Len  = 16;
const sal_Int32 kTestStr4Len  = 16;
const sal_Int32 kTestStr5Len  = 16;
const sal_Int32 kTestStr6Len  = 15;
const sal_Int32 kTestStr7Len  = 4;
const sal_Int32 kTestStr8Len  = 12;
const sal_Int32 kTestStr9Len  = 32;
const sal_Int32 kTestStr10Len = 17;
const sal_Int32 kTestStr11Len = 17;
const sal_Int32 kTestStr12Len = 18;
const sal_Int32 kTestStr13Len = 19;
const sal_Int32 kTestStr14Len = 19;
const sal_Int32 kTestStr15Len = 20;
const sal_Int32 kTestStr16Len = 20;
const sal_Int32 kTestStr17Len = 22;
const sal_Int32 kTestStr18Len = 16;
const sal_Int32 kTestStr19Len = 22;
const sal_Int32 kTestStr20Len = 3;
const sal_Int32 kTestStr21Len = 3;
const sal_Int32 kTestStr22Len = 32;
const sal_Int32 kTestStr23Len = 16;
const sal_Int32 kTestStr24Len = 31;
const sal_Int32 kTestStr25Len = 0;
const sal_Int32 kTestStr26Len = 4;
const sal_Int32 kTestStr27Len = 1;
const sal_Int32 kTestStr28Len = 11;
const sal_Int32 kTestStr29Len = 18;
const sal_Int32 kTestStr30Len = 10;
const sal_Int32 kTestStr31Len = 16;
const sal_Int32 kTestStr32Len = 16;
const sal_Int32 kTestStr33Len = 1;
const sal_Int32 kTestStr34Len = 11;
const sal_Int32 kTestStr35Len = 11;
const sal_Int32 kTestStr36Len = 28;
const sal_Int32 kTestStr37Len = 20;
const sal_Int32 kTestStr38Len = 7;
const sal_Int32 kTestStr39Len = 33;
const sal_Int32 kTestStr40Len = 27;
const sal_Int32 kTestStr41Len = 3;
const sal_Int32 kTestStr42Len = 10;
const sal_Int32 kTestStr43Len = 13;
const sal_Int32 kTestStr44Len = 2;
const sal_Int32 kTestStr45Len = 8;
const sal_Int32 kTestStr46Len = 9;
const sal_Int32 kTestStr47Len = 4;
const sal_Int32 kTestStr48Len = 5;
const sal_Int32 kTestStr49Len = 15;
const sal_Int32 kTestStr50Len = 16;
const sal_Int32 kTestStr51Len = 5;
const sal_Int32 kTestStr52Len = 5;
const sal_Int32 kTestStr53Len = 5;
const sal_Int32 kTestStr54Len = 1;
const sal_Int32 kTestStr55Len = 1;
const sal_Int32 kTestStr56Len = 12;
const sal_Int32 kTestStr57Len = 12;
const sal_Int32 kTestStr58Len = 12;
const sal_Int32 kTestStr59Len = 6;
const sal_Int32 kTestStr60Len = 2;
const sal_Int32 kTestStr61Len = 13;
const sal_Int32 kTestStr62Len = 5;
const sal_Int32 kTestStr63Len = 7;
const sal_Int32 kTestStr64Len = 14;
const sal_Int32 kTestStr65Len = 15;
const sal_Int32 kTestStr66Len = 1;
const sal_Int32 kTestStr67Len = 3;
const sal_Int32 kTestStr68Len = 10;
const sal_Int32 kTestStr69Len = 11;
const sal_Int32 kTestStr70Len = 12;
const sal_Int32 kTestStr71Len = 14;
const sal_Int32 kTestStr72Len = 21;
const sal_Int32 kTestStr73Len = 22;
const sal_Int32 kTestStr74Len = 7;
const sal_Int32 kTestStr75Len = 7;
const sal_Int32 kTestStr76Len = 10;
const sal_Int32 kTestStr77Len = 12;
const sal_Int32 kTestStr78Len = 12;
const sal_Int32 kTestStr79Len = 13;
const sal_Int32 kTestStr80Len = 13;
const sal_Int32 kTestStr81Len = 3;
const sal_Int32 kTestStr82Len = 3;
const sal_Int32 kTestStr83Len = 6;
const sal_Int32 kTestStr84Len = 8;
const sal_Int32 kTestStr85Len = 8;
const sal_Int32 kTestStr86Len = 9;
const sal_Int32 kTestStr87Len = 9;
const sal_Int32 kTestStr88Len = 14;
const sal_Int32 kTestStr89Len = 14;
const sal_Int32 kTestStr90Len = 17;
const sal_Int32 kTestStr91Len = 19;
const sal_Int32 kTestStr92Len = 19;
const sal_Int32 kTestStr93Len = 20;
const sal_Int32 kTestStr94Len = 20;
const sal_Int32 kTestStr95Len = 8;
const sal_Int32 kTestStr96Len = 8;
const sal_Int32 kTestStr97Len = 11;
const sal_Int32 kTestStr98Len = 13;
const sal_Int32 kTestStr99Len = 13;
const sal_Int32 kTestStr100Len = 14;
const sal_Int32 kTestStr101Len = 14;
const sal_Int32 kTestStr102Len = 4;
const sal_Int32 kTestStr103Len = 4;
const sal_Int32 kTestStr104Len = 7;
const sal_Int32 kTestStr105Len = 9;
const sal_Int32 kTestStr106Len = 9;
const sal_Int32 kTestStr107Len = 10;
const sal_Int32 kTestStr108Len = 10;
const sal_Int32 kTestStr109Len = 15;
const sal_Int32 kTestStr110Len = 15;
const sal_Int32 kTestStr111Len = 18;
const sal_Int32 kTestStr112Len = 20;
const sal_Int32 kTestStr113Len = 20;
const sal_Int32 kTestStr114Len = 21;
const sal_Int32 kTestStr115Len = 21;
const sal_Int32 kTestStr116Len = 23;
const sal_Int32 kTestStr117Len = 24;
const sal_Int32 kTestStr118Len = 19;
const sal_Int32 kTestStr119Len = 20;
const sal_Int32 kTestStr120Len = 30;
const sal_Int32 kTestStr121Len = 31;
const sal_Int32 kTestStr122Len = 16;
const sal_Int32 kTestStr123Len = 21;
const sal_Int32 kTestStr124Len = 23;
const sal_Int32 kTestStr125Len = 30;
const sal_Int32 kTestStr126Len = 12;
const sal_Int32 kTestStr127Len = 17;
const sal_Int32 kTestStr128Len = 19;
const sal_Int32 kTestStr129Len = 26;
const sal_Int32 kTestStr130Len = 23;
const sal_Int32 kTestStr131Len = 28;
const sal_Int32 kTestStr132Len = 30;
const sal_Int32 kTestStr133Len = 37;
const sal_Int32 kTestStr134Len = 22;
const sal_Int32 kTestStr135Len = 24;
const sal_Int32 kTestStr136Len = 31;
const sal_Int32 kTestStr137Len = 18;
const sal_Int32 kTestStr138Len = 20;
const sal_Int32 kTestStr139Len = 27;
const sal_Int32 kTestStr140Len = 29;
const sal_Int32 kTestStr141Len = 31;
const sal_Int32 kTestStr142Len = 38;
const sal_Int32 kTestStr143Len = 5;
const sal_Int32 kTestStr144Len = 1;
const sal_Int32 kTestStr145Len = 12;
const sal_Int32 kTestStr146Len = 19;
const sal_Int32 kTestStr147Len = 19;
const sal_Int32 kTestStr148Len = 19;
const sal_Int32 kTestStr149Len = 32;
const sal_Int32 kTestStr150Len = 32;
const sal_Int32 kTestStr151Len = 31;
const sal_Int32 kTestStr152Len = 31;
const sal_Int32 kTestStr153Len = 31;
const sal_Int32 kTestStr154Len = 36;
const sal_Int32 kTestStr155Len = 36;
const sal_Int32 kTestStr156Len = 36;
const sal_Int32 kTestStr157Len = 49;
const sal_Int32 kTestStr158Len = 49;
const sal_Int32 kTestStr159Len = 49;
const sal_Int32 kTestStr160Len = 48;
const sal_Int32 kTestStr161Len = 48;
const sal_Int32 kTestStr162Len = 48;
const sal_Int32 kTestStr163Len = 15;
const sal_Int32 kTestStr164Len = 15;
const sal_Int32 kTestStr165Len = 15;
const sal_Int32 kTestStr166Len = 28;
const sal_Int32 kTestStr167Len = 28;
const sal_Int32 kTestStr168Len = 28;
const sal_Int32 kTestStr169Len = 27;
const sal_Int32 kTestStr170Len = 27;
const sal_Int32 kTestStr171Len = 27;
const sal_Int32 kTestStr1PlusStr6Len = kTestStr1Len + kTestStr6Len;

const sal_Int32 uTestStr1Len  = 16;
const sal_Int32 uTestStr2Len  = 32;
const sal_Int32 uTestStr3Len  = 16;
const sal_Int32 uTestStr4Len  = 16;
const sal_Int32 uTestStr5Len  = 16;
const sal_Int32 uTestStr9Len  = 32;
const sal_Int32 uTestStr22Len = 32;

const sal_Unicode uTestStr31[]= {0x400,0x410,0x4DF};
const sal_Unicode uTestStr32[]= {0x9F9F,0xA000,0x8F80,0x9AD9};

const sal_Int32 uTestStr31Len  = 3;
const sal_Int32 uTestStr32Len  = 4;

const sal_Int16 kRadixBinary     = 2;
const sal_Int16 kRadixOctol      = 8;
const sal_Int16 kRadixDecimal    = 10;
const sal_Int16 kRadixHexdecimal = 16;
const sal_Int16 kRadixBase36     = 36;

const sal_Int8  kSInt8Max  = SCHAR_MAX;
const sal_Int16 kUInt8Max  = UCHAR_MAX;
const sal_Int16 kSInt16Max = SHRT_MAX;
const sal_Int32 kUInt16Max = USHRT_MAX;
const sal_Int32 kSInt32Max = INT_MAX;
const sal_Int64 kUInt32Max = UINT_MAX;
const sal_Int64 kSInt64Max = SAL_CONST_INT64(9223372036854775807);

const sal_Int32 kInt32MaxNumsCount = 5;

const sal_Int32 kInt32MaxNums[kInt32MaxNumsCount] =
                        {
                            kSInt8Max,  kUInt8Max,
                            kSInt16Max, kUInt16Max,
                            kSInt32Max
                        };

const sal_Int32 kInt64MaxNumsCount = 7;

const sal_Int64 kInt64MaxNums[kInt64MaxNumsCount] =
                        {
                            kSInt8Max,  kUInt8Max,
                            kSInt16Max, kUInt16Max,
                            kSInt32Max, kUInt32Max,
                            kSInt64Max
                        };

const sal_Int32 kBinaryNumsCount = 16;

const sal_Int32 kBinaryMaxNumsCount = 7;

const sal_Int32 kOctolNumsCount = 16;

const sal_Int32 kOctolMaxNumsCount = 7;

const sal_Int32 kDecimalNumsCount = 16;

const sal_Int32 kDecimalMaxNumsCount = 7;

const sal_Int32 kHexDecimalNumsCount = 16;

const sal_Int32 kHexDecimalMaxNumsCount = 7;

const sal_Int32 kBase36NumsCount = 36;

const sal_Int32 kBase36MaxNumsCount = 7;

const sal_Int32 nDoubleCount=24;
const double   expValDouble[nDoubleCount]=
    {
            3.0,3.1,3.1415,3.1415926535,3.141592653589793,
            3.1415926535897932,3.14159265358979323,3.1,
            3.141592653589793238462643,9.1096e-31,2.997925e8,6.241e18,5.381e18,
            1.7e-309,6.5822e-16,1.7e+307,2.2e30,3.1,3.1,-3.1,
            0.0,0.0,0.0,1.00e+308
    };

const sal_Int32 nFloatCount=22;
const float  expValFloat[nFloatCount] =
        {
            3.0f,3.1f,3.1415f,3.14159f,3.141592f,
            3.1415926f,3.14159265f,3.141592653589793238462643f,
            6.5822e-16f,9.1096e-31f,2.997925e8f,6.241e18f,
            1.00e38f,6.241e-37f,6.241e37f,3.1f,3.1f,-3.1f,
            3.1f,0.0f,0.0f,0.0f
        };

const sal_Int32 nCharCount=15;
const sal_Unicode  expValChar[nCharCount] =
        {
            65,97,48,45,95,
            21,27,29,
            64,10,39,34,
            0,0,83
        };

const sal_Int32 nDefaultCount=6;
const sal_Unicode input1Default[nDefaultCount] =
        {
            77,115,85,119,32,0
        };
const sal_Int32 input2Default[nDefaultCount] =
        {
            0,0,0,0,0,0
        };
const sal_Int32  expValDefault[nDefaultCount] =
        {
            4,9,-1,-1,3,-1
        };

const sal_Int32 nNormalCount=10;
const sal_Unicode input1Normal[nNormalCount] =
        {
            77,77,77,115,115,115,119,119,0,0
        };
const sal_Int32 input2Normal[nNormalCount] =
        {
            0,32,80,0,13,20,0,80,0,32
        };
const sal_Int32  expValNormal[nNormalCount] =
        {
            4,-1,-1,9,15,-1,-1,-1,-1,-1
        };

const sal_Int32 nlastDefaultCount=5;
const sal_Unicode input1lastDefault[nlastDefaultCount] =
        {
            77,115,119,32,0
        };
const sal_Int32 input2lastDefault[nlastDefaultCount] =
        {
            31,31,31,31,31
        };
const sal_Int32  expVallastDefault[nlastDefaultCount] =
        {
            4,15,-1,21,-1
        };

const sal_Int32 nlastNormalCount=8;
const sal_Unicode input1lastNormal[nlastNormalCount] =
        {
            77,77,77,115,115,119,119,0
        };
const sal_Int32 input2lastNormal[nlastNormalCount] =
        {
            29,0,80,31,3,31,80,31
        };
const sal_Int32  expVallastNormal[nlastNormalCount] =
        {
            4,-1,4,15,-1,-1,-1,-1
        };

const sal_Int32 nStrDefaultCount=6;
const sal_Int32 input2StrDefault[nStrDefaultCount] =
        {
            0,0,0,0,0,0
        };
const sal_Int32 expValStrDefault[nStrDefaultCount] =
        {
            0,4,-1,-1,-1,3
        };

const sal_Int32 nStrNormalCount=9;
const sal_Int32 input2StrNormal[nStrNormalCount] =
        {
            0,32,0,30,0,0,0,32,0
        };
const sal_Int32 expValStrNormal[nStrNormalCount] =
        {
            0,-1,4,-1,-1,-1,-1,-1,3
        };

const sal_Int32 nStrLastDefaultCount=6;
const sal_Int32 input2StrLastDefault[nStrLastDefaultCount] =
        {
            31,31,31,31,31,31
        };
const sal_Int32  expValStrLastDefault[nStrLastDefaultCount] =
        {
            0,4,-1,-1,-1,3
        };

const sal_Int32 nStrLastNormalCount=12;
const sal_Int32 input2StrLastNormal[nStrLastNormalCount] =
        {
            31,0,80,31,2,31,31,31,0,31,31,14
        };
const sal_Int32  expValStrLastNormal[nStrLastNormalCount] =
        {
            0,-1,0,4,-1,-1,-1,-1,-1,3,15,11
        };

const sal_Int32 kNonSInt32Max = INT_MIN;
const sal_Int32 kNonSInt16Max = SHRT_MIN;

#ifdef __cplusplus
}
#endif

#endif // INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_CONST_H

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
