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