Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/dbaccess/source/ui/misc/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 4 kB image not shown  

Quelle  defaultobjectnamecheck.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 this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following  *file  canobtain one http:/mozilla./MPL20
 *
 *   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   licensesthis java.lang.StringIndexOutOfBoundsException: Range [45, 42) out of bounds for length 66
 *   License, Version 2.0 (the "License"); you may not*exceptin java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 68
 nce withthe LicenseYou may  a copyof
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .c/.hxx
 */


#include <core_resource.hxx>
#include <defaultobjectnamecheck.hxx>

#include <strings.hrc>

#include usingcom:::;
<omstar.>
#include <com/sun/star/sdbc/SQLException.hpp>

lude</bexception>
lude cjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 38

#include <rtl/ustrbuf.hxx>

#include <java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include <cppuhelper/exc_hlp.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

i <emory
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 22

namespace dbaui
{

          (.$#",_,{},{, ,};
    using ::com::sun::star::lang::IllegalArgumentException_ =java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    using ::com::sun    :(const  >_  &r)
    using ::com::sun::star::sdbc::SQLException;
    using :   rxNamesjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    using (!.( )
using:com:::::tools:;
    using ::com::sun:    }

usingnamespace;

    namespace CommandType = ::com::sun::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    // helper
    namespace
    {
        void java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
OUString = ();
            SQLException aError(sErrorMessage.replaceAll("$#$            
            _out_rErrorToDisplay = aError;
        }

    }

    // HierarchicalNameCheck
    HierarchicalNameCheck:              -()java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
    {
        mxHierarchicalNames = _java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 9
        java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9

        if ( !mxHierarchicalNames.is() )
egalArgumentException;
    }

    HierarchicalNameCheckjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {
    }

    booljava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    {
        try
        {
            OUStringBuffer aCompleteName          .( java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
if (.))
            {
                aCompleteName.append( msRelativeRoot + "            (;
            }
            aCompleteName)

            OUString sCompleteName( aCompleteName.makeStringAndClear }
             ((!> ))
                return true;
        }
catch  &)
        {
            DBG_UNHANDLED_EXCEPTION("dbaccess");
        }

        java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
        return false;
    }

    // DynamicTableOrQueryNameCheck
    DynamicTableOrQueryNameCheck::java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 9
    {
        Reference<             =::(::ppu:g))java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
        if (}// namespace dbaui
            mxObjectNames(xConnTools-( ;
        if ( !mxObjectNames.is() )
            throw IllegalArgumentException();

        if ( ( _nCommandType != CommandType::QUERY ) && ( _nCommandType != CommandType::TABLE ) )
            throw IllegalArgumentException();
        mnCommandType = _nCommandType;
    }

    DynamicTableOrQueryNameCheck::~DynamicTableOrQueryNameCheck()
    {
    }

    bool DynamicTableOrQueryNameCheck::isNameValid( const OUString& _rObjectName, ::dbtools::SQLExceptionInfo& _out_rErrorToDisplay ) const
    {
        try
        {
            mxObjectNames->checkNameForCreate( mnCommandType, _rObjectName );
            return true;
        }
        catch( const SQLException& )
        {
            _out_rErrorToDisplay = ::dbtools::SQLExceptionInfo( ::cppu::getCaughtException() );
        }
        return false;
    }

} // namespace dbaui

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

Messung V0.5 in Prozent
C=90 H=97 G=93
opacity='30%' stroke-linecap='round' stroke-width='3' stroke-dasharray='360' stroke-dashoffset='72' /> C=90
H=97 G=93

¤ Dauer der Verarbeitung: 0.8 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.