browser/components/translation/cld2/internal/debug_empty.cc

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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.
    15 //
    16 // Author: dsites@google.com (Dick Sites)
    17 // Compile this in instead of debug.cc to remove code for debug output
    18 //
    20 #include "debug.h"
    21 #include <string>
    23 using namespace std;
    25 namespace CLD2 {
    27 string GetPlainEscapedText(const string& txt) {return string("");}
    29 string GetHtmlEscapedText(const string& txt) {return string("");}
    31 string GetColorHtmlEscapedText(Language lang, const string& txt) {
    32   return string("");
    33 }
    35 string GetLangColorHtmlEscapedText(Language lang, const string& txt) {
    36   return string("");
    37 }
    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
    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) {}
    53 // For showing all chunks
    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) {}
    60 void DumpResultChunkVector(FILE* f, const char* src,
    61                            ResultChunkVector* resultchunkvector) {}
    63 }       // End namespace CLD2

mercurial