DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
/*  GRAPHITE2 LICENSING

    Copyright 2010, SIL International
    All rights reserved.

    This library is free software; you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published
    by the Free Software Foundation; either version 2.1 of License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should also have received a copy of the GNU Lesser General Public
    License along with this library in the file named "LICENSE".
    If not, write to the Free Software Foundation, 51 Franklin Street, 
    Suite 500, Boston, MA 02110-1335, USA or visit their web page on the 
    internet at http://www.fsf.org/licenses/lgpl.html.

Alternatively, the contents of this file may be used under the terms of the
Mozilla Public License (http://mozilla.org/MPL) or the GNU General Public
License, as published by the Free Software Foundation, either version 2
of the License or (at your option) any later version.
*/
#include "Main.h"
#include "XmlTraceLogTags.h"


using namespace graphite2;

#ifndef DISABLE_TRACING


// start this at same line number as in XmlTraceLogTags.h
const XmlTraceLogTag graphite2::xmlTraceLogElements[NumElements] = {
    XmlTraceLogTag("Graphite2Log", GRLOG_ALL),
    XmlTraceLogTag("Face", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("Glyphs", GRLOG_FACE),
    XmlTraceLogTag("GlyphFace", GRLOG_FACE),
    XmlTraceLogTag("Attr", GRLOG_FACE),
    XmlTraceLogTag("Silf", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("SilfSub", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("Pass", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("Pseudo", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("ClassMap", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("LookupClass", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("Lookup", GRLOG_FACE | GRLOG_PASS),
    XmlTraceLogTag("Range", GRLOG_PASS),
    XmlTraceLogTag("RuleMap", GRLOG_PASS),
    XmlTraceLogTag("Rule", GRLOG_PASS),
    XmlTraceLogTag("StartState", GRLOG_PASS),
    XmlTraceLogTag("StateTransitions", GRLOG_PASS),
    XmlTraceLogTag("TR", GRLOG_PASS),
    XmlTraceLogTag("TD", GRLOG_PASS),
    XmlTraceLogTag("Constraint", GRLOG_PASS),
    XmlTraceLogTag("Constraints", GRLOG_PASS),
    XmlTraceLogTag("Actions", GRLOG_PASS),
    XmlTraceLogTag("Action", GRLOG_PASS),
    XmlTraceLogTag("Features", GRLOG_PASS),
    XmlTraceLogTag("Feature", GRLOG_PASS),
    XmlTraceLogTag("FeatureSetting", GRLOG_PASS),
    XmlTraceLogTag("Segment", GRLOG_SEGMENT),
    XmlTraceLogTag("Slot", GRLOG_SEGMENT),
    XmlTraceLogTag("Text", GRLOG_SEGMENT),
    XmlTraceLogTag("OpCode", GRLOG_OPCODE),
    XmlTraceLogTag("TestRule", GRLOG_OPCODE),
    XmlTraceLogTag("DoRule", GRLOG_OPCODE),
    XmlTraceLogTag("RunPass", GRLOG_OPCODE),
    XmlTraceLogTag("Params", GRLOG_OPCODE),
    XmlTraceLogTag("Push", GRLOG_OPCODE),
    XmlTraceLogTag("SubSeg", GRLOG_SEGMENT),
    XmlTraceLogTag("SegCache", GRLOG_CACHE),
    XmlTraceLogTag("SegCacheEntry", GRLOG_CACHE),
    XmlTraceLogTag("Glyph", GRLOG_CACHE),
    XmlTraceLogTag("PassResult", GRLOG_OPCODE),

    XmlTraceLogTag("Error", GRLOG_ALL),
    XmlTraceLogTag("Warning", GRLOG_ALL)
    // Nothing corresponds to NumElements
};



// start this at same line number as in XmlTraceLogTags.h
const char * graphite2::xmlTraceLogAttributes[NumAttributes] = {
    "index",
    "version",
    "major",
    "minor",
    "num",
    "glyphId",
    "advance",
    "advanceX",
    "advanceY",
    "attrId",
    "attrVal",
    "compilerMajor",
    "compilerMinor",
    "numPasses",//AttrNumPasses,
    "subPass",//AttrSubPass,
    "posPass",//AttrPosPass,
    "justPass",//AttrJustPass,
    "bidiPass",//AttrBidiPass,
    "preContext",//AttrPreContext,
    "postContext",//AttrPostContext,
    "pseudoGlyph",//AttrPseudoGlyph,
    "breakWeight",//AttrBreakWeight,
    "directionality",//AttrDirectionality,
    "numJustLevels",//AttrNumJustLevels,
    "numLigCompAttr",//AttrLigComp,
    "numUserDefinedAttr",//AttrUserDefn,
    "maxNumLigComp",//AttrNumLigComp,
    "numCriticalFeatures",//AttrNumCritFeatures,
    "numScripts",//AttrNumScripts
    "lineBreakglyph",//,AttrLBGlyph,
    "numPseudo",
    "numClasses",
    "numLinear",
    "passId",//AttrPassId,
    "flags",//AttrFlags,
    "maxRuleLoop",//AttrMaxRuleLoop,
    "maxRuleContext",//AttrMaxRuleContext,
    "maxBackup",//AttrMaxBackup,
    "numRules",//AttrNumRules,
    "numRows",//AttrNumRows,
    "numTransitionStates",//AttrNumTransition,
    "numSuccessStates",//AttrNumSuccess,
    "numColumns",//AttrNumColumns,
    "numRanges",//AttrNumRanges,
    "minPrecontext",//AttrMinPrecontext,
    "maxPrecontext",//AttrMaxPrecontext,
    "firstId",
    "lastId",
    "colId",
    "successId",
    "ruleId",
    "contextLength",
    "state",
    "value",
    "sortKey",
    "precontext",
    "action",
    "actionCode",
    "arg1",
    "arg2",
    "arg3",
    "arg4",
    "arg5",
    "arg6",
    "arg7",
    "arg8",
    "label",
    "length",
    "x",
    "y",
    "before",
    "after",
    "encoding",
    "name",
    "result",
    "default",
    "accessCount",
    "lastAccess",
    "misses"
};

#endif