1// Copyright 2008 Google Inc.
2// Author: Lincoln Smith
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16// Contains a class that demonstrates how to specialize OutputString for the
17// crope type, so that cropes can be passed as output arguments to the encoder
18// and decoder.
19
20#ifndef OPEN_VCDIFF_OUTPUT_STRING_CROPE_H_
21#define OPEN_VCDIFF_OUTPUT_STRING_CROPE_H_
22#include <config.h>
23#ifdef HAVE_EXT_ROPE
24#include <ext/rope>
25#include "google/output_string.h"
26
27namespace open_vcdiff {
28
29// *** OutputString interface for crope (OutputCrope)
30
31// crope::reserve(), if defined, does nothing
32template <>
33void OutputString<__gnu_cxx::crope>::ReserveAdditionalBytes(
34    size_t /*res_arg*/) { }
35
36typedef OutputString<__gnu_cxx::crope> OutputCrope;
37
38}  // namespace open_vcdiff
39#endif  // HAVE_EXT_ROPE
40#endif  // OPEN_VCDIFF_OUTPUT_STRING_CROPE_H_
41