LCOV - code coverage report
Current view: top level - connectivity/source/drivers/odbc - appendsqlwchars.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 8 0.0 %
Date: 2015-06-13 12:38:46 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 <rtl/ustrbuf.hxx>
      13             : #include <sal/types.h>
      14             : 
      15             : #include <appendsqlwchars.hxx>
      16             : 
      17             : namespace connectivity { namespace odbc {
      18             : 
      19           0 : void appendSQLWCHARs(OUStringBuffer & s, const sal_Unicode* d, sal_Int32 n)
      20             : {
      21           0 :     s.append(d, n);
      22           0 : }
      23             : 
      24             : #if defined SAL_UNICODE_NOTEQUAL_WCHAR_T
      25             : static_assert(sizeof (wchar_t) == 4, "sizeof wchar_t must be 4 for this to work");
      26           0 : void appendSQLWCHARs(OUStringBuffer & s, const wchar_t* d, sal_Int32 n)
      27             : {
      28           0 :     const wchar_t * const end = d + n;
      29           0 :     for (; d < end; ++d)
      30             :     {
      31           0 :         s.appendUtf32(*d);
      32             :     }
      33           0 : }
      34             : #endif
      35             : 
      36             : } }
      37             : 
      38             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11