1af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// Copyright (C) 2012 The Libphonenumber Authors
2af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com//
3af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// Licensed under the Apache License, Version 2.0 (the "License");
4af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// you may not use this file except in compliance with the License.
5af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// You may obtain a copy of the License at
6af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com//
7af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// http://www.apache.org/licenses/LICENSE-2.0
8af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com//
9af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// Unless required by applicable law or agreed to in writing, software
10af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// distributed under the License is distributed on an "AS IS" BASIS,
11af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// See the License for the specific language governing permissions and
13af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com// limitations under the License.
14af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
15af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com#include "phonenumbers/string_byte_sink.h"
16af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
17af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com#include <string>
18af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
19af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.comusing std::string;
20af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
21af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.comnamespace i18n {
22af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.comnamespace phonenumbers {
23af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
24af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.comStringByteSink::StringByteSink(string* dest) : dest_(dest) {}
25af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
26af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.comStringByteSink::~StringByteSink() {}
27af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
28af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.comvoid StringByteSink::Append(const char* data, int32_t n) {
29af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com  dest_->append(data, n);
30af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com}
31af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com
32af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com}  // namespace phonenumbers
33af3adc4377ce5f9eb45ccaf75bb21795701211caphilip.liard@gmail.com}  // namespace i18n
34