OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "dbus/object_path.h" | 5 #include "dbus/object_path.h" |
6 | 6 |
| 7 #include "dbus/string_util.h" |
| 8 |
7 namespace dbus { | 9 namespace dbus { |
8 | 10 |
| 11 bool ObjectPath::IsValid() const { |
| 12 return IsValidObjectPath(value_); |
| 13 } |
| 14 |
9 bool ObjectPath::operator<(const ObjectPath& that) const { | 15 bool ObjectPath::operator<(const ObjectPath& that) const { |
10 return value_ < that.value_; | 16 return value_ < that.value_; |
11 } | 17 } |
12 | 18 |
13 bool ObjectPath::operator==(const ObjectPath& that) const { | 19 bool ObjectPath::operator==(const ObjectPath& that) const { |
14 return value_ == that.value_; | 20 return value_ == that.value_; |
15 } | 21 } |
16 | 22 |
17 bool ObjectPath::operator!=(const ObjectPath& that) const { | 23 bool ObjectPath::operator!=(const ObjectPath& that) const { |
18 return value_ != that.value_; | 24 return value_ != that.value_; |
19 } | 25 } |
20 | 26 |
21 } // namespace dbus | 27 } // namespace dbus |
OLD | NEW |