1 // Copyright 2013 Google Inc. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 //
16 // Author: dsites@google.com (Dick Sites)
17 // Compile this in instead of debug.cc to remove code for debug output
18 //
19 
20 #include "debug.h"
21 #include <string>
22 
23 using namespace std;
24 
25 namespace CLD2 {
26 
GetPlainEscapedText(const string & txt)27 string GetPlainEscapedText(const string& txt) {return string("");}
28 
GetHtmlEscapedText(const string & txt)29 string GetHtmlEscapedText(const string& txt) {return string("");}
30 
GetColorHtmlEscapedText(Language lang,const string & txt)31 string GetColorHtmlEscapedText(Language lang, const string& txt) {
32   return string("");
33 }
34 
GetLangColorHtmlEscapedText(Language lang,const string & txt)35 string GetLangColorHtmlEscapedText(Language lang, const string& txt) {
36   return string("");
37 }
38 
39 
40 // For showing one chunk
41 // Print debug output for one scored chunk
42 // Optionally print out per-chunk scoring information
43 // In degenerate cases, hitbuffer and cspan can be NULL
CLD2_Debug(const char * text,int lo_offset,int hi_offset,bool more_to_come,bool score_cjk,const ScoringHitBuffer * hitbuffer,const ScoringContext * scoringcontext,const ChunkSpan * cspan,const ChunkSummary * chunksummary)44 void CLD2_Debug(const char* text,
45                 int lo_offset,
46                 int hi_offset,
47                 bool more_to_come, bool score_cjk,
48                 const ScoringHitBuffer* hitbuffer,
49                 const ScoringContext* scoringcontext,
50                 const ChunkSpan* cspan,
51                 const ChunkSummary* chunksummary) {}
52 
53 // For showing all chunks
CLD2_Debug2(const char * text,bool more_to_come,bool score_cjk,const ScoringHitBuffer * hitbuffer,const ScoringContext * scoringcontext,const SummaryBuffer * summarybuffer)54 void CLD2_Debug2(const char* text,
55                  bool more_to_come, bool score_cjk,
56                  const ScoringHitBuffer* hitbuffer,
57                  const ScoringContext* scoringcontext,
58                  const SummaryBuffer* summarybuffer) {}
59 
DumpResultChunkVector(FILE * f,const char * src,ResultChunkVector * resultchunkvector)60 void DumpResultChunkVector(FILE* f, const char* src,
61                            ResultChunkVector* resultchunkvector) {}
62 
63 }       // End namespace CLD2
64 
65