LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/parser_i/idl - tk_punct.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 26 32 81.2 %
Date: 2012-12-27 Functions: 6 9 66.7 %
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             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <precomp.h>
      21             : #include <s2_luidl/tk_punct.hxx>
      22             : 
      23             : 
      24             : // NOT FULLY DECLARED SERVICES
      25             : #include <parser/parserinfo.hxx>
      26             : #include <s2_luidl/tokintpr.hxx>
      27             : 
      28             : 
      29             : using csi::uidl::TokPunctuation;
      30             : 
      31             : 
      32           1 : lux::EnumValueMap           G_aTokPunctuation_EV_TokenId_Values;
      33           1 : TokPunctuation::EV_TokenId  ev_none(TokPunctuation::e_none,"");
      34           1 : TokPunctuation::EV_TokenId  BracketOpen(TokPunctuation::BracketOpen,"(");
      35           1 : TokPunctuation::EV_TokenId  BracketClose(TokPunctuation::BracketClose,")");
      36           1 : TokPunctuation::EV_TokenId  ArrayBracketOpen(TokPunctuation::ArrayBracketOpen,"[");
      37           1 : TokPunctuation::EV_TokenId  ArrayBracketClose(TokPunctuation::ArrayBracketClose,"]");
      38           1 : TokPunctuation::EV_TokenId  CurledBracketOpen(TokPunctuation::CurledBracketOpen,"{");
      39           1 : TokPunctuation::EV_TokenId  CurledBracketClose(TokPunctuation::CurledBracketClose,"}");
      40           1 : TokPunctuation::EV_TokenId  Semicolon(TokPunctuation::Semicolon,";");
      41           1 : TokPunctuation::EV_TokenId  Colon(TokPunctuation::Colon,":");
      42           1 : TokPunctuation::EV_TokenId  DoubleColon(TokPunctuation::DoubleColon,"::");
      43           1 : TokPunctuation::EV_TokenId  Comma(TokPunctuation::Comma,",");
      44           1 : TokPunctuation::EV_TokenId  Minus(TokPunctuation::Minus,"-");
      45           1 : TokPunctuation::EV_TokenId  Fullstop(TokPunctuation::Fullstop,".");
      46           1 : TokPunctuation::EV_TokenId  Lesser(TokPunctuation::Lesser,"<");
      47           1 : TokPunctuation::EV_TokenId  Greater(TokPunctuation::Greater,">");
      48             : 
      49             : 
      50             : 
      51             : 
      52             : namespace lux
      53             : {
      54             : template<> EnumValueMap &
      55      220409 : Enum<TokPunctuation::E_TokenId>::Values_()       { return G_aTokPunctuation_EV_TokenId_Values; }
      56             : }
      57             : 
      58             : 
      59             : 
      60             : 
      61             : namespace csi
      62             : {
      63             : namespace uidl
      64             : {
      65             : 
      66             : void
      67      122643 : TokPunctuation::Trigger( TokenInterpreter & io_rInterpreter ) const
      68             : {
      69      122643 :     io_rInterpreter.Process_Punctuation(*this);
      70      122643 : }
      71             : 
      72             : const char *
      73       10010 : TokPunctuation::Text() const
      74             : {
      75       10010 :     return eTag.Text();
      76             : }
      77             : 
      78             : void
      79      135308 : Tok_EOL::Trigger( TokenInterpreter &    io_rInterpreter ) const
      80             : {
      81      135308 :     io_rInterpreter.Process_EOL();
      82      135308 : }
      83             : 
      84             : const char *
      85           0 : Tok_EOL::Text() const
      86             : {
      87           0 :     return "\r\n";
      88             : }
      89             : 
      90             : void
      91           0 : Tok_EOF::Trigger( TokenInterpreter & ) const
      92             : {
      93             :     csv_assert(false);
      94             : //  io_rInterpreter.Process_EOF();
      95           0 : }
      96             : 
      97             : const char *
      98           0 : Tok_EOF::Text() const
      99             : {
     100           0 :     return "";
     101             : }
     102             : 
     103             : 
     104             : }   // namespace uidl
     105           3 : }   // namespace csi
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10