blob: c6a5144edae3c195553bd71465c03872ab38be55 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_IOS_NS_RANGE_H_
#define BASE_IOS_NS_RANGE_H_
#import <Foundation/Foundation.h>
// Returns whether the two NSRange are equal.
inline bool operator==(NSRange lhs, NSRange rhs) {
return lhs.location == rhs.location && lhs.length == rhs.length;
}
#endif // BASE_IOS_NS_RANGE_H_