michael@0: // Copyright 2013 Google Inc. All Rights Reserved. michael@0: // michael@0: // Licensed under the Apache License, Version 2.0 (the "License"); michael@0: // you may not use this file except in compliance with the License. michael@0: // You may obtain a copy of the License at michael@0: // michael@0: // http://www.apache.org/licenses/LICENSE-2.0 michael@0: // michael@0: // Unless required by applicable law or agreed to in writing, software michael@0: // distributed under the License is distributed on an "AS IS" BASIS, michael@0: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: // See the License for the specific language governing permissions and michael@0: // limitations under the License. michael@0: michael@0: // michael@0: // Author: dsites@google.com (Dick Sites) michael@0: // Compile this in instead of debug.cc to remove code for debug output michael@0: // michael@0: michael@0: #include "debug.h" michael@0: #include michael@0: michael@0: using namespace std; michael@0: michael@0: namespace CLD2 { michael@0: michael@0: string GetPlainEscapedText(const string& txt) {return string("");} michael@0: michael@0: string GetHtmlEscapedText(const string& txt) {return string("");} michael@0: michael@0: string GetColorHtmlEscapedText(Language lang, const string& txt) { michael@0: return string(""); michael@0: } michael@0: michael@0: string GetLangColorHtmlEscapedText(Language lang, const string& txt) { michael@0: return string(""); michael@0: } michael@0: michael@0: michael@0: // For showing one chunk michael@0: // Print debug output for one scored chunk michael@0: // Optionally print out per-chunk scoring information michael@0: // In degenerate cases, hitbuffer and cspan can be NULL michael@0: void CLD2_Debug(const char* text, michael@0: int lo_offset, michael@0: int hi_offset, michael@0: bool more_to_come, bool score_cjk, michael@0: const ScoringHitBuffer* hitbuffer, michael@0: const ScoringContext* scoringcontext, michael@0: const ChunkSpan* cspan, michael@0: const ChunkSummary* chunksummary) {} michael@0: michael@0: // For showing all chunks michael@0: void CLD2_Debug2(const char* text, michael@0: bool more_to_come, bool score_cjk, michael@0: const ScoringHitBuffer* hitbuffer, michael@0: const ScoringContext* scoringcontext, michael@0: const SummaryBuffer* summarybuffer) {} michael@0: michael@0: void DumpResultChunkVector(FILE* f, const char* src, michael@0: ResultChunkVector* resultchunkvector) {} michael@0: michael@0: } // End namespace CLD2 michael@0: