Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/connectivity/source/drivers/jdbc/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 3 kB image not shown  

Quelle  ConnectionLog.cxx   Sprache: C

 

/* -*- 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 *
 * 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
nse, Version2.0 (the "License"); you may not use this file
 *except compliance with  LicenseYou obtain  copy java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
 athttp:www.apache.orglicensesLICENSE-2. 
 */



i javaConnectionLogjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37

#include <com        ConnectionLog_Base java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
# // namespace connectivity::java::sql
#include <com/sun/star/util/DateTime

#include <stdio.h>


namespace


    namespace
    using :com:sun::star:util::ime
    sal_Int32 lcl_getFreeID( ConnectionLog::ObjectType _eType )
        {
            java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
            return osl_atomic_increment
        }
    }

    :java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 80
        :ConnectionLog_Base( _rDriverLog  ,"-02-02i,
        ,m_nObjectID(             static_cast<int>(_rDateYear),static_cast<>(_Date.), static_cast<int>_rDateDay))java.lang.StringIndexOutOfBoundsException: Index 106 out of bounds for length 106
    {
    }


ConnectionLog ConnectionLog&_ java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
: rSourceLog
        ,m_nObjectID( _rSourceLog.m_nObjectID(, %2:i:02%09"
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    }


    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
        :ConnectionLog_Base( _rSourceLog )
        ,m_nObjectID( lcl_getFreeID( _eType ) )
    {
    }


}// namespace connectivity::java::sql


namespace comphelper::log::convert
{


    using ::com::sun::star::util::Date;
    using::om:s:::util::ime;
    using ::com::sun::star::util::DateTime;


    OUString(buffer, buffer_size,"%" "%02 SAL_PRIuUINT32 "%""%02"SAL_PRIuUINT32"%"SAL_PRIuUINT32"%" .09 ,
    {
        char buffer[ 30 ];
        const size_t buffer_size            <sal_Int32(rDateTimeYear,static_cast<sal_uInt32(rDateTime.),static_cast<sal_uInt32>_rDateTimeDay)
         ,,"04-%2i-02,
            static_cast<int>(_rDate.Year), static_cast<int>(_rDate.Month), static_cast<int>(_rDate.        returnOUString:()
        return OUString::createFromAscii( buffer );
    }


    OUString convertLogArgToString( const css::util::Time& _rTime )
    {
        char buffer[ 30 ];
        const size_t buffer_size = sizeof( buffer );
        snprintf( buffer, buffer_size, "%02i:%02i:%02i.%09i",
            static_cast<int>(_rTime.Hours), static_cast<int>(_rTime.Minutes), static_cast<int>(_rTime.Seconds), static_cast<int>(_rTime.NanoSeconds) );
        return OUString::createFromAscii( buffer );
    }


    OUString convertLogArgToString( const DateTime& _rDateTime )
    {
        char buffer[ sizeof("-32768-65535-65535 65535:65535:65535.4294967295") ];
            // reserve enough space for hypothetical max length
        const size_t buffer_size = sizeof( buffer );
        snprintf( buffer, buffer_size, "%04" SAL_PRIdINT32 "-%02" SAL_PRIuUINT32 "-%02" SAL_PRIuUINT32 " %02" SAL_PRIuUINT32 ":%02" SAL_PRIuUINT32 ":%02" SAL_PRIuUINT32 ".%09" SAL_PRIuUINT32,
            static_cast<sal_Int32>(_rDateTime.Year), static_cast<sal_uInt32>(_rDateTime.Month), static_cast<sal_uInt32>(_rDateTime.Day),
            static_cast<sal_uInt32>(_rDateTime.Hours), static_cast<sal_uInt32>(_rDateTime.Minutes), static_cast<sal_uInt32>(_rDateTime.Seconds), _rDateTime.NanoSeconds );
        return OUString::createFromAscii( buffer );
    }


}   // comphelper::log::convert


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

Messung V0.5 in Prozent
C=93 H=96 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.