Flutter Engine
The Flutter Engine
range.cc
Go to the documentation of this file.
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
5#include "range.h"
6
7#include <algorithm>
8#include <cinttypes>
9
10#include "base/string_utils.h"
11
12namespace gfx {
13
14std::string Range::ToString() const {
15 return base::StringPrintf("{%" PRIu32 ",%" PRIu32 "}", start(), end());
16}
17
18std::ostream& operator<<(std::ostream& os, const Range& range) {
19 return os << range.ToString();
20}
21
22} // namespace gfx
std::string ToString() const
Definition: range.cc:14
constexpr uint32_t end() const
Definition: range.h:59
constexpr uint32_t start() const
Definition: range.h:56
std::string StringPrintf(const std::string &format, Args... args)
Definition: string_utils.h:18
Definition: insets.cc:10
std::ostream & operator<<(std::ostream &os, const Range &range)
Definition: range.cc:18