range.cc 549 B

12345678910111213141516171819202122
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/gfx/range/range.h"
  5. #include <inttypes.h>
  6. #include "base/format_macros.h"
  7. #include "base/strings/stringprintf.h"
  8. namespace gfx {
  9. std::string Range::ToString() const {
  10. return base::StringPrintf("{%" PRIuS ",%" PRIuS "}", start(), end());
  11. }
  12. std::ostream& operator<<(std::ostream& os, const Range& range) {
  13. return os << range.ToString();
  14. }
  15. } // namespace gfx