add equals interface for Range class.
authorBi Xue <bixue@fb.com>
Wed, 31 May 2017 04:09:55 +0000 (21:09 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 31 May 2017 04:21:27 +0000 (21:21 -0700)
commitda541af34da0e370cb1e1566fb6a93d36747bfc4
tree5d12391cbeab64d90bb8fa20ea1d22af0d2cbc99
parente49575d4bf1bc6408952d6b469d9b80d53729263
add equals interface for Range class.

Summary:
Add `equals` interface to StringPiece (Range class). To support following case insensitive compare case:
```
folly::StringPiece a("hello");
if (a.equals("HELLO", folly::AsciiCaseInsensitive())) {
  // Do something.
}
```

Reviewed By: ot

Differential Revision: D5150495

fbshipit-source-id: 26816820f93959678f550768396f55293b5588cb
folly/Range.h
folly/test/RangeTest.cpp