Lines Matching refs:rhs

319 inline bool operator==(const ImmutableString &lhs, const ImmutableString &rhs) {
320 return lhs.size() == rhs.size() &&
321 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs));
324 inline bool operator==(const ImmutableString &lhs, const std::string &rhs) {
325 return lhs.size() == rhs.size() &&
326 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs));
329 inline bool operator==(const std::string &lhs, const ImmutableString &rhs) {
330 return rhs == lhs;
333 inline bool operator==(const ImmutableString &lhs, const char *rhs) {
334 return lhs.size() == strlen(rhs) &&
335 std::equal(std::begin(lhs), std::end(lhs), rhs);
338 inline bool operator==(const char *lhs, const ImmutableString &rhs) {
339 return rhs == lhs;
342 inline bool operator!=(const ImmutableString &lhs, const ImmutableString &rhs) {
343 return !(lhs == rhs);
346 inline bool operator!=(const ImmutableString &lhs, const std::string &rhs) {
347 return !(lhs == rhs);
350 inline bool operator!=(const std::string &lhs, const ImmutableString &rhs) {
351 return !(rhs == lhs);
354 inline bool operator!=(const ImmutableString &lhs, const char *rhs) {
355 return !(lhs == rhs);
358 inline bool operator!=(const char *lhs, const ImmutableString &rhs) {
359 return !(rhs == lhs);
366 inline std::string &operator+=(std::string &lhs, const ImmutableString &rhs) {
367 lhs.append(rhs.c_str(), rhs.size());
451 inline bool operator==(const StringRef &lhs, const StringRef &rhs) {
452 return lhs.size() == rhs.size() &&
453 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs));
456 inline bool operator==(const StringRef &lhs, const std::string &rhs) {
457 return lhs.size() == rhs.size() &&
458 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs));
461 inline bool operator==(const std::string &lhs, const StringRef &rhs) {
462 return rhs == lhs;
465 inline bool operator==(const StringRef &lhs, const char *rhs) {
466 return lhs.size() == strlen(rhs) &&
467 std::equal(std::begin(lhs), std::end(lhs), rhs);
470 inline bool operator==(const StringRef &lhs, const ImmutableString &rhs) {
471 return lhs.size() == rhs.size() &&
472 std::equal(std::begin(lhs), std::end(lhs), std::begin(rhs));
475 inline bool operator==(const ImmutableString &lhs, const StringRef &rhs) {
476 return rhs == lhs;
479 inline bool operator==(const char *lhs, const StringRef &rhs) {
480 return rhs == lhs;
483 inline bool operator!=(const StringRef &lhs, const StringRef &rhs) {
484 return !(lhs == rhs);
487 inline bool operator!=(const StringRef &lhs, const std::string &rhs) {
488 return !(lhs == rhs);
491 inline bool operator!=(const std::string &lhs, const StringRef &rhs) {
492 return !(rhs == lhs);
495 inline bool operator!=(const StringRef &lhs, const char *rhs) {
496 return !(lhs == rhs);
499 inline bool operator!=(const char *lhs, const StringRef &rhs) {
500 return !(rhs == lhs);
503 inline bool operator<(const StringRef &lhs, const StringRef &rhs) {
505 std::begin(rhs), std::end(rhs));
512 inline std::string &operator+=(std::string &lhs, const StringRef &rhs) {
513 lhs.append(rhs.c_str(), rhs.size());