Flutter Engine
The Flutter Engine
third_party
accessibility
gfx
range
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
12
namespace
gfx
{
13
14
std::string
Range::ToString
()
const
{
15
return
base::StringPrintf
(
"{%"
PRIu32
",%"
PRIu32
"}"
,
start
(),
end
());
16
}
17
18
std::ostream&
operator<<
(std::ostream& os,
const
Range
& range) {
19
return
os << range.
ToString
();
20
}
21
22
}
// namespace gfx
gfx::Range
Definition:
range.h:33
gfx::Range::ToString
std::string ToString() const
Definition:
range.cc:14
gfx::Range::end
constexpr uint32_t end() const
Definition:
range.h:59
gfx::Range::start
constexpr uint32_t start() const
Definition:
range.h:56
base::StringPrintf
std::string StringPrintf(const std::string &format, Args... args)
Definition:
string_utils.h:18
gfx
Definition:
insets.cc:10
gfx::operator<<
std::ostream & operator<<(std::ostream &os, const Range &range)
Definition:
range.cc:18
string_utils.h
range.h
Generated on Sun Jun 23 2024 21:54:59 for Flutter Engine by
1.9.4