Home | History | Annotate | Download | only in marisa_alpha

Lines Matching refs:lhs

48 inline bool operator==(const String &lhs, const String &rhs) {
49 if (lhs.length() != rhs.length()) {
52 for (std::size_t i = 0; i < lhs.length(); ++i) {
53 if (lhs[i] != rhs[i]) {
60 inline bool operator!=(const String &lhs, const String &rhs) {
61 return !(lhs == rhs);
64 inline bool operator<(const String &lhs, const String &rhs) {
65 for (std::size_t i = 0; i < lhs.length(); ++i) {
69 if (lhs[i] != rhs[i]) {
70 return lhs[i] < rhs[i];
73 return lhs.length() < rhs.length();
76 inline bool operator>(const String &lhs, const String &rhs) {
77 return rhs < lhs;
120 inline bool operator==(const RString &lhs, const RString &rhs) {
121 if (lhs.length() != rhs.length()) {
124 for (std::size_t i = 0; i < lhs.length(); ++i) {
125 if (lhs[i] != rhs[i]) {
132 inline bool operator!=(const RString &lhs, const RString &rhs) {
133 return !(lhs == rhs);
136 inline bool operator<(const RString &lhs, const RString &rhs) {
137 for (std::size_t i = 0; i < lhs.length(); ++i) {
141 if (lhs[i] != rhs[i]) {
142 return lhs[i] < rhs[i];
145 return lhs.length() < rhs.length();
148 inline bool operator>(const RString &lhs, const RString &rhs) {
149 return rhs < lhs;