LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/unotools/source/i18n - caserotate.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 12 0.0 %
Date: 2013-07-09 Functions: 0 1 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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  */
      12             : 
      13             : 
      14             : #include "unotools/caserotate.hxx"
      15             : #include <com/sun/star/i18n/TransliterationModules.hpp>
      16             : #include <com/sun/star/i18n/TransliterationModulesExtra.hpp>
      17             : 
      18             : //TODO Use XCharacterClassification::getStringType to determine the current
      19             : //(possibly mixed) case type and rotate to the next one
      20             : 
      21           0 : sal_uInt32 RotateTransliteration::getNextMode()
      22             : {
      23             :     using namespace ::com::sun::star::i18n;
      24             : 
      25           0 :     sal_uInt32 nMode = 0;
      26             : 
      27           0 :     switch (nF3ShiftCounter)
      28             :     {
      29             :         case 0:
      30           0 :             nMode = TransliterationModulesExtra::TITLE_CASE;
      31           0 :             break;
      32             :         case 1:
      33           0 :             nMode = TransliterationModules_LOWERCASE_UPPERCASE;
      34           0 :             break;
      35             :         default:
      36             :         case 2:
      37           0 :             nMode = TransliterationModules_UPPERCASE_LOWERCASE;
      38           0 :             nF3ShiftCounter = -1;
      39           0 :             break;
      40             :     }
      41             : 
      42           0 :     nF3ShiftCounter++;
      43             : 
      44           0 :     return nMode;
      45             : }
      46             : 
      47             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10