Sha256: 6c827dbe1b76c6881db891eabfc2c63934cb4818828d559b6a7ad74d765744ac

Contents?: true

Size: 1.11 KB

Versions: 21

Compression:

Stored size: 1.11 KB

Contents

// Copyright 2017 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "absl/strings/internal/ostringstream.h"

namespace absl {
ABSL_NAMESPACE_BEGIN
namespace strings_internal {

OStringStream::Buf::int_type OStringStream::overflow(int c) {
  assert(s_);
  if (!Buf::traits_type::eq_int_type(c, Buf::traits_type::eof()))
    s_->push_back(static_cast<char>(c));
  return 1;
}

std::streamsize OStringStream::xsputn(const char* s, std::streamsize n) {
  assert(s_);
  s_->append(s, static_cast<size_t>(n));
  return n;
}

}  // namespace strings_internal
ABSL_NAMESPACE_END
}  // namespace absl

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.52.2 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.52.0 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.51.0-x86_64-linux third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.51.0 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.52.0.pre2 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.50.0 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.50.0-x86_64-linux third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.50.0.pre1 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.50.0.pre1-x86_64-linux third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.49.1 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.49.1-x86_64-linux third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.49.0.pre1 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.49.0.pre1-x86_64-linux third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.48.0-x86_64-linux third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.48.0 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc
grpc-1.48.0.pre1 third_party/abseil-cpp/absl/strings/internal/ostringstream.cc