LCOV - code coverage report
Current view: top level - connectivity/source/drivers/odbc - appendsqlwchars.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 8 0.0 %
Date: 2014-11-03 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include <sal/config.h>
      11             : 
      12             : #include <boost/static_assert.hpp>
      13             : #include <rtl/ustrbuf.hxx>
      14             : #include <sal/types.h>
      15             : 
      16             : #include <appendsqlwchars.hxx>
      17             : 
      18             : namespace connectivity { namespace odbc {
      19             : 
      20           0 : void appendSQLWCHARs(OUStringBuffer & s, const sal_Unicode* d, sal_Int32 n)
      21             : {
      22           0 :     s.append(d, n);
      23           0 : }
      24             : 
      25             : #if defined SAL_UNICODE_NOTEQUAL_WCHAR_T
      26             : BOOST_STATIC_ASSERT(sizeof (wchar_t) == 4);
      27           0 : void appendSQLWCHARs(OUStringBuffer & s, const wchar_t* d, sal_Int32 n)
      28             : {
      29           0 :     const wchar_t * const end = d + n;
      30           0 :     for (; d < end; ++d)
      31             :     {
      32           0 :         s.appendUtf32(*d);
      33             :     }
      34           0 : }
      35             : #endif
      36             : 
      37             : } }
      38             : 
      39             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10