LCOV - code coverage report
Current view: top level - libreoffice/svgio/source/svgreader - svgtoken.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 256 0.0 %
Date: 2012-12-27 Functions: 0 3 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             :  *   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 <svgio/svgreader/svgtoken.hxx>
      21             : 
      22             : //////////////////////////////////////////////////////////////////////////////
      23             : 
      24             : namespace svgio
      25             : {
      26             :     namespace svgreader
      27             :     {
      28           0 :         static rtl::OUString aSVGStrWidth(rtl::OUString::createFromAscii("width"));
      29           0 :         static rtl::OUString aSVGStrHeight(rtl::OUString::createFromAscii("height"));
      30           0 :         static rtl::OUString aSVGStrViewBox(rtl::OUString::createFromAscii("viewBox"));
      31           0 :         static rtl::OUString aSVGStrTransform(rtl::OUString::createFromAscii("transform"));
      32           0 :         static rtl::OUString aSVGStrStyle(rtl::OUString::createFromAscii("style"));
      33           0 :         static rtl::OUString aSVGStrD(rtl::OUString::createFromAscii("d"));
      34           0 :         static rtl::OUString aSVGStrX(rtl::OUString::createFromAscii("x"));
      35           0 :         static rtl::OUString aSVGStrY(rtl::OUString::createFromAscii("y"));
      36           0 :         static rtl::OUString aSVGStrXmlns(rtl::OUString::createFromAscii("xmlns"));
      37           0 :         static rtl::OUString aSVGStrVersion(rtl::OUString::createFromAscii("version"));
      38           0 :         static rtl::OUString aSVGStrId(rtl::OUString::createFromAscii("id"));
      39           0 :         static rtl::OUString aSVGStrRx(rtl::OUString::createFromAscii("rx"));
      40           0 :         static rtl::OUString aSVGStrRy(rtl::OUString::createFromAscii("ry"));
      41           0 :         static rtl::OUString aSVGStrPoints(rtl::OUString::createFromAscii("points"));
      42           0 :         static rtl::OUString aSVGStrDx(rtl::OUString::createFromAscii("dx"));
      43           0 :         static rtl::OUString aSVGStrDy(rtl::OUString::createFromAscii("dy"));
      44           0 :         static rtl::OUString aSVGStrRotate(rtl::OUString::createFromAscii("rotate"));
      45           0 :         static rtl::OUString aSVGStrTextLength(rtl::OUString::createFromAscii("textLength"));
      46           0 :         static rtl::OUString aSVGStrLengthAdjust(rtl::OUString::createFromAscii("lengthAdjust"));
      47           0 :         static rtl::OUString aSVGStrFont(rtl::OUString::createFromAscii("font"));
      48           0 :         static rtl::OUString aSVGStrFontFamily(rtl::OUString::createFromAscii("font-family"));
      49           0 :         static rtl::OUString aSVGStrFontSize(rtl::OUString::createFromAscii("font-size"));
      50           0 :         static rtl::OUString aSVGStrFontSizeAdjust(rtl::OUString::createFromAscii("font-size-adjust"));
      51           0 :         static rtl::OUString aSVGStrFontStretch(rtl::OUString::createFromAscii("font-stretch"));
      52           0 :         static rtl::OUString aSVGStrFontStyle(rtl::OUString::createFromAscii("font-style"));
      53           0 :         static rtl::OUString aSVGStrFontVariant(rtl::OUString::createFromAscii("font-variant"));
      54           0 :         static rtl::OUString aSVGStrFontWeight(rtl::OUString::createFromAscii("font-weight"));
      55           0 :         static rtl::OUString aSVGStrDirection(rtl::OUString::createFromAscii("direction"));
      56           0 :         static rtl::OUString aSVGStrLetterSpacing(rtl::OUString::createFromAscii("letter-spacing"));
      57           0 :         static rtl::OUString aSVGStrTextDecoration(rtl::OUString::createFromAscii("text-decoration"));
      58           0 :         static rtl::OUString aSVGStrUnicodeBidi(rtl::OUString::createFromAscii("unicode-bidi"));
      59           0 :         static rtl::OUString aSVGStrWordSpacing(rtl::OUString::createFromAscii("word-spacing"));
      60           0 :         static rtl::OUString aSVGStrTspan(rtl::OUString::createFromAscii("tspan"));
      61           0 :         static rtl::OUString aSVGStrTref(rtl::OUString::createFromAscii("tref"));
      62           0 :         static rtl::OUString aSVGStrTextPath(rtl::OUString::createFromAscii("textPath"));
      63           0 :         static rtl::OUString aSVGStrStartOffset(rtl::OUString::createFromAscii("startOffset"));
      64           0 :         static rtl::OUString aSVGStrMethod(rtl::OUString::createFromAscii("method"));
      65           0 :         static rtl::OUString aSVGStrSpacing(rtl::OUString::createFromAscii("spacing"));
      66           0 :         static rtl::OUString aSVGStrTextAlign(rtl::OUString::createFromAscii("text-align"));
      67           0 :         static rtl::OUString aSVGStrPathLength(rtl::OUString::createFromAscii("pathLength"));
      68           0 :         static rtl::OUString aSVGStrType(rtl::OUString::createFromAscii("type"));
      69           0 :         static rtl::OUString aSVGStrClass(rtl::OUString::createFromAscii("class"));
      70           0 :         static rtl::OUString aSVGStrTextAnchor(rtl::OUString::createFromAscii("text-anchor"));
      71           0 :         static rtl::OUString aSVGStrXmlSpace(rtl::OUString::createFromAscii("xml:space"));
      72           0 :         static rtl::OUString aSVGStrColor(rtl::OUString::createFromAscii("color"));
      73           0 :         static rtl::OUString aSVGStrClipPathNode(rtl::OUString::createFromAscii("clipPath"));
      74           0 :         static rtl::OUString aSVGStrClipPathProperty(rtl::OUString::createFromAscii("clip-path"));
      75           0 :         static rtl::OUString aSVGStrMask(rtl::OUString::createFromAscii("mask"));
      76           0 :         static rtl::OUString aSVGStrClipPathUnits(rtl::OUString::createFromAscii("clipPathUnits"));
      77           0 :         static rtl::OUString aSVGStrMaskUnits(rtl::OUString::createFromAscii("maskUnits"));
      78           0 :         static rtl::OUString aSVGStrMaskContentUnits(rtl::OUString::createFromAscii("maskContentUnits"));
      79           0 :         static rtl::OUString aSVGStrClipRule(rtl::OUString::createFromAscii("clip-rule"));
      80           0 :         static rtl::OUString aSVGStrMarker(rtl::OUString::createFromAscii("marker"));
      81           0 :         static rtl::OUString aSVGStrMarkerStart(rtl::OUString::createFromAscii("marker-start"));
      82           0 :         static rtl::OUString aSVGStrMarkerMid(rtl::OUString::createFromAscii("marker-mid"));
      83           0 :         static rtl::OUString aSVGStrMarkerEnd(rtl::OUString::createFromAscii("marker-end"));
      84           0 :         static rtl::OUString aSVGStrRefX(rtl::OUString::createFromAscii("refX"));
      85           0 :         static rtl::OUString aSVGStrRefY(rtl::OUString::createFromAscii("refY"));
      86           0 :         static rtl::OUString aSVGStrMarkerUnits(rtl::OUString::createFromAscii("markerUnits"));
      87           0 :         static rtl::OUString aSVGStrMarkerWidth(rtl::OUString::createFromAscii("markerWidth"));
      88           0 :         static rtl::OUString aSVGStrMarkerHeight(rtl::OUString::createFromAscii("markerHeight"));
      89           0 :         static rtl::OUString aSVGStrOrient(rtl::OUString::createFromAscii("orient"));
      90           0 :         static rtl::OUString aSVGStrPattern(rtl::OUString::createFromAscii("pattern"));
      91           0 :         static rtl::OUString aSVGStrPatternUnits(rtl::OUString::createFromAscii("patternUnits"));
      92           0 :         static rtl::OUString aSVGStrPatternContentUnits(rtl::OUString::createFromAscii("patternContentUnits"));
      93           0 :         static rtl::OUString aSVGStrPatternTransform(rtl::OUString::createFromAscii("patternTransform"));
      94           0 :         static rtl::OUString aSVGStrOpacity(rtl::OUString::createFromAscii("opacity"));
      95             : 
      96           0 :         static rtl::OUString aSVGStrPreserveAspectRatio(rtl::OUString::createFromAscii("preserveAspectRatio"));
      97           0 :         static rtl::OUString aSVGStrDefer(rtl::OUString::createFromAscii("defer"));
      98           0 :         static rtl::OUString aSVGStrNone(rtl::OUString::createFromAscii("none"));
      99           0 :         static rtl::OUString aSVGStrXMinYMin(rtl::OUString::createFromAscii("xMinYMin"));
     100           0 :         static rtl::OUString aSVGStrXMidYMin(rtl::OUString::createFromAscii("xMidYMin"));
     101           0 :         static rtl::OUString aSVGStrXMaxYMin(rtl::OUString::createFromAscii("xMaxYMin"));
     102           0 :         static rtl::OUString aSVGStrXMinYMid(rtl::OUString::createFromAscii("xMinYMid"));
     103           0 :         static rtl::OUString aSVGStrXMidYMid(rtl::OUString::createFromAscii("xMidYMid"));
     104           0 :         static rtl::OUString aSVGStrXMaxYMid(rtl::OUString::createFromAscii("xMaxYMid"));
     105           0 :         static rtl::OUString aSVGStrXMinYMax(rtl::OUString::createFromAscii("xMinYMax"));
     106           0 :         static rtl::OUString aSVGStrXMidYMax(rtl::OUString::createFromAscii("xMidYMax"));
     107           0 :         static rtl::OUString aSVGStrXMaxYMax(rtl::OUString::createFromAscii("xMaxYMax"));
     108           0 :         static rtl::OUString aSVGStrMeet(rtl::OUString::createFromAscii("meet"));
     109           0 :         static rtl::OUString aSVGStrSlice(rtl::OUString::createFromAscii("slice"));
     110             : 
     111           0 :         static rtl::OUString aSVGStrDefs(rtl::OUString::createFromAscii("defs"));
     112           0 :         static rtl::OUString aSVGStrG(rtl::OUString::createFromAscii("g"));
     113           0 :         static rtl::OUString aSVGStrSvg(rtl::OUString::createFromAscii("svg"));
     114           0 :         static rtl::OUString aSVGStrSymbol(rtl::OUString::createFromAscii("symbol"));
     115           0 :         static rtl::OUString aSVGStrUse(rtl::OUString::createFromAscii("use"));
     116             : 
     117           0 :         static rtl::OUString aSVGStrCircle(rtl::OUString::createFromAscii("circle"));
     118           0 :         static rtl::OUString aSVGStrEllipse(rtl::OUString::createFromAscii("ellipse"));
     119           0 :         static rtl::OUString aSVGStrLine(rtl::OUString::createFromAscii("line"));
     120           0 :         static rtl::OUString aSVGStrPath(rtl::OUString::createFromAscii("path"));
     121           0 :         static rtl::OUString aSVGStrPolygon(rtl::OUString::createFromAscii("polygon"));
     122           0 :         static rtl::OUString aSVGStrPolyline(rtl::OUString::createFromAscii("polyline"));
     123           0 :         static rtl::OUString aSVGStrRect(rtl::OUString::createFromAscii("rect"));
     124           0 :         static rtl::OUString aSVGStrImage(rtl::OUString::createFromAscii("image"));
     125             : 
     126           0 :         static rtl::OUString aSVGStrLinearGradient(rtl::OUString::createFromAscii("linearGradient"));
     127           0 :         static rtl::OUString aSVGStrRadialGradient(rtl::OUString::createFromAscii("radialGradient"));
     128           0 :         static rtl::OUString aSVGStrStop(rtl::OUString::createFromAscii("stop"));
     129           0 :         static rtl::OUString aSVGStrOffset(rtl::OUString::createFromAscii("offset"));
     130           0 :         static rtl::OUString aSVGStrX1(rtl::OUString::createFromAscii("x1"));
     131           0 :         static rtl::OUString aSVGStrY1(rtl::OUString::createFromAscii("y1"));
     132           0 :         static rtl::OUString aSVGStrX2(rtl::OUString::createFromAscii("x2"));
     133           0 :         static rtl::OUString aSVGStrY2(rtl::OUString::createFromAscii("y2"));
     134           0 :         static rtl::OUString aSVGStrCx(rtl::OUString::createFromAscii("cx"));
     135           0 :         static rtl::OUString aSVGStrCy(rtl::OUString::createFromAscii("cy"));
     136           0 :         static rtl::OUString aSVGStrFx(rtl::OUString::createFromAscii("fx"));
     137           0 :         static rtl::OUString aSVGStrFy(rtl::OUString::createFromAscii("fy"));
     138           0 :         static rtl::OUString aSVGStrR(rtl::OUString::createFromAscii("r"));
     139           0 :         static rtl::OUString aSVGStrGradientUnits(rtl::OUString::createFromAscii("gradientUnits"));
     140           0 :         static rtl::OUString aSVGStrGradientTransform(rtl::OUString::createFromAscii("gradientTransform"));
     141           0 :         static rtl::OUString aSVGStrSpreadMethod(rtl::OUString::createFromAscii("spreadMethod"));
     142           0 :         static rtl::OUString aSVGStrXlinkHref(rtl::OUString::createFromAscii("xlink:href"));
     143           0 :         static rtl::OUString aSVGStrStopColor(rtl::OUString::createFromAscii("stop-color"));
     144           0 :         static rtl::OUString aSVGStrStopOpacity(rtl::OUString::createFromAscii("stop-opacity"));
     145             : 
     146           0 :         static rtl::OUString aSVGStrFill(rtl::OUString::createFromAscii("fill"));
     147           0 :         static rtl::OUString aSVGStrFillOpacity(rtl::OUString::createFromAscii("fill-opacity"));
     148           0 :         static rtl::OUString aSVGStrFillRule(rtl::OUString::createFromAscii("fill-rule"));
     149             : 
     150           0 :         static rtl::OUString aSVGStrStroke(rtl::OUString::createFromAscii("stroke"));
     151           0 :         static rtl::OUString aSVGStrStrokeDasharray(rtl::OUString::createFromAscii("stroke-dasharray"));
     152           0 :         static rtl::OUString aSVGStrStrokeDashoffset(rtl::OUString::createFromAscii("stroke-dashoffset"));
     153           0 :         static rtl::OUString aSVGStrStrokeLinecap(rtl::OUString::createFromAscii("stroke-linecap"));
     154           0 :         static rtl::OUString aSVGStrStrokeLinejoin(rtl::OUString::createFromAscii("stroke-linejoin"));
     155           0 :         static rtl::OUString aSVGStrStrokeMiterlimit(rtl::OUString::createFromAscii("stroke-miterlimit"));
     156           0 :         static rtl::OUString aSVGStrStrokeOpacity(rtl::OUString::createFromAscii("stroke-opacity"));
     157           0 :         static rtl::OUString aSVGStrStrokeWidth(rtl::OUString::createFromAscii("stroke-width"));
     158             : 
     159           0 :         static rtl::OUString aSVGStrText(rtl::OUString::createFromAscii("text"));
     160             : 
     161           0 :         SVGToken StrToSVGToken(const rtl::OUString& rStr)
     162             :         {
     163             :             typedef boost::unordered_map< rtl::OUString, SVGToken, rtl::OUStringHash,::std::equal_to< ::rtl::OUString >  > SVGTokenMapper;
     164             :             typedef std::pair< rtl::OUString, SVGToken > SVGTokenValueType;
     165           0 :             static SVGTokenMapper aSVGTokenMapperList;
     166             : 
     167           0 :             if(aSVGTokenMapperList.empty())
     168             :             {
     169           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrWidth, SVGTokenWidth));
     170           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrHeight, SVGTokenHeight));
     171           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrViewBox, SVGTokenViewBox));
     172           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTransform, SVGTokenTransform));
     173           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStyle, SVGTokenStyle));
     174           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrD, SVGTokenD));
     175           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrX, SVGTokenX));
     176           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrY, SVGTokenY));
     177           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXmlns, SVGTokenXmlns));
     178           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrVersion, SVGTokenVersion));
     179           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrId, SVGTokenId));
     180           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRx, SVGTokenRx));
     181           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRy, SVGTokenRy));
     182           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPoints, SVGTokenPoints));
     183           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDx, SVGTokenDx));
     184           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDy, SVGTokenDy));
     185           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRotate, SVGTokenRotate));
     186           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFont, SVGTokenFont));
     187           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontFamily, SVGTokenFontFamily));
     188           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontSize, SVGTokenFontSize));
     189           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontSizeAdjust, SVGTokenFontSizeAdjust));
     190           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontStretch, SVGTokenFontStretch));
     191           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontStyle, SVGTokenFontStyle));
     192           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontVariant, SVGTokenFontVariant));
     193           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFontWeight, SVGTokenFontWeight));
     194           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDirection, SVGTokenDirection));
     195           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrLetterSpacing, SVGTokenLetterSpacing));
     196           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTextDecoration, SVGTokenTextDecoration));
     197           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrUnicodeBidi, SVGTokenUnicodeBidi));
     198           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrWordSpacing, SVGTokenWordSpacing));
     199           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTspan, SVGTokenTspan));
     200           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTref, SVGTokenTref));
     201           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTextPath, SVGTokenTextPath));
     202           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStartOffset, SVGTokenStartOffset));
     203           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMethod, SVGTokenMethod));
     204           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrSpacing, SVGTokenSpacing));
     205           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTextAlign, SVGTokenTextAlign));
     206           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPathLength, SVGTokenPathLength));
     207           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrType, SVGTokenType));
     208           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrClass, SVGTokenClass));
     209           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTextAnchor, SVGTokenTextAnchor));
     210           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXmlSpace, SVGTokenXmlSpace));
     211           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrColor, SVGTokenColor));
     212           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrClipPathNode, SVGTokenClipPathNode));
     213           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrClipPathProperty, SVGTokenClipPathProperty));
     214           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMask, SVGTokenMask));
     215           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrClipPathUnits, SVGTokenClipPathUnits));
     216           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMaskUnits, SVGTokenMaskUnits));
     217           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMaskContentUnits, SVGTokenMaskContentUnits));
     218           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrClipRule, SVGTokenClipRule));
     219           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarker, SVGTokenMarker));
     220           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerStart, SVGTokenMarkerStart));
     221           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerMid, SVGTokenMarkerMid));
     222           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerEnd, SVGTokenMarkerEnd));
     223           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRefX, SVGTokenRefX));
     224           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRefY, SVGTokenRefY));
     225           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerUnits, SVGTokenMarkerUnits));
     226           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerWidth, SVGTokenMarkerWidth));
     227           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerHeight, SVGTokenMarkerHeight));
     228           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOrient, SVGTokenOrient));
     229           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPattern, SVGTokenPattern));
     230           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternUnits, SVGTokenPatternUnits));
     231           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternContentUnits, SVGTokenPatternContentUnits));
     232           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternTransform, SVGTokenPatternTransform));
     233           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOpacity, SVGTokenOpacity));
     234             : 
     235           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPreserveAspectRatio, SVGTokenPreserveAspectRatio));
     236           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDefer, SVGTokenDefer));
     237           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrNone, SVGTokenNone));
     238           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMin, SVGTokenXMinYMin));
     239           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMidYMin, SVGTokenXMidYMin));
     240           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMaxYMin, SVGTokenXMaxYMin));
     241           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMid, SVGTokenXMinYMid));
     242           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMidYMid, SVGTokenXMidYMid));
     243           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMaxYMid, SVGTokenXMaxYMid));
     244           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMax, SVGTokenXMinYMax));
     245           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMidYMax, SVGTokenXMidYMax));
     246           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMaxYMax, SVGTokenXMaxYMax));
     247           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMeet, SVGTokenMeet));
     248           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrSlice, SVGTokenSlice));
     249             : 
     250           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDefs, SVGTokenDefs));
     251           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrG, SVGTokenG));
     252           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrSvg, SVGTokenSvg));
     253           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrSymbol, SVGTokenSymbol));
     254           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrUse, SVGTokenUse));
     255             : 
     256           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrCircle, SVGTokenCircle));
     257           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrEllipse, SVGTokenEllipse));
     258           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrLine, SVGTokenLine));
     259           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPath, SVGTokenPath));
     260           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPolygon, SVGTokenPolygon));
     261           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPolyline, SVGTokenPolyline));
     262           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRect, SVGTokenRect));
     263           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrImage, SVGTokenImage));
     264             : 
     265           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrLinearGradient, SVGTokenLinearGradient));
     266           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrRadialGradient, SVGTokenRadialGradient));
     267           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStop, SVGTokenStop));
     268           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOffset, SVGTokenOffset));
     269           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrX1, SVGTokenX1));
     270           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrY1, SVGTokenY1));
     271           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrX2, SVGTokenX2));
     272           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrY2, SVGTokenY2));
     273           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrCx, SVGTokenCx));
     274           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrCy, SVGTokenCy));
     275           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFx, SVGTokenFx));
     276           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFy, SVGTokenFy));
     277           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrR, SVGTokenR));
     278           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrGradientUnits, SVGTokenGradientUnits));
     279           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrGradientTransform, SVGTokenGradientTransform));
     280           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrSpreadMethod, SVGTokenSpreadMethod));
     281           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXlinkHref, SVGTokenXlinkHref));
     282           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStopColor, SVGTokenStopColor));
     283           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStopOpacity, SVGTokenStopOpacity));
     284             : 
     285           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFill, SVGTokenFill));
     286           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFillOpacity, SVGTokenFillOpacity));
     287           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrFillRule, SVGTokenFillRule));
     288             : 
     289           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStroke, SVGTokenStroke));
     290           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeDasharray, SVGTokenStrokeDasharray));
     291           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeDashoffset, SVGTokenStrokeDashoffset));
     292           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeLinecap, SVGTokenStrokeLinecap));
     293           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeLinejoin, SVGTokenStrokeLinejoin));
     294           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeMiterlimit, SVGTokenStrokeMiterlimit));
     295           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeOpacity, SVGTokenStrokeOpacity));
     296           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrStrokeWidth, SVGTokenStrokeWidth));
     297             : 
     298           0 :                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrText, SVGTokenText));
     299             :             }
     300             : 
     301           0 :             const SVGTokenMapper::const_iterator aResult(aSVGTokenMapperList.find(rStr.compareToAscii("svg:", 4) ? rStr : rStr.copy(4)));
     302             : 
     303           0 :             if(aResult == aSVGTokenMapperList.end())
     304             :             {
     305           0 :                 return SVGTokenUnknown;
     306             :             }
     307             :             else
     308             :             {
     309           0 :                 return aResult->second;
     310             :             }
     311             :         }
     312             :     } // end of namespace svgreader
     313           0 : } // end of namespace svgio
     314             : 
     315             : //////////////////////////////////////////////////////////////////////////////
     316             : // eof
     317             : 
     318             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10