Lines Matching refs:__lhs

2214    *  @param __lhs  First string.
2216 * @return New string with value of @a __lhs followed by @a __rhs.
2221 operator+(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2226 * @param __lhs First string.
2228 * @return New string with value of @a __lhs followed by @a __rhs.
2233 operator+(const _CharT* __lhs,
2238 * @param __lhs First string.
2240 * @return New string with @a __lhs followed by @a __rhs.
2245 operator+(_CharT __lhs,
2250 * @param __lhs First string.
2252 * @return New string with @a __lhs followed by @a __rhs.
2257 operator+(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2262 * @param __lhs First string.
2264 * @return New string with @a __lhs followed by @a __rhs.
2269 operator+(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2276 operator+(__versa_string<_CharT, _Traits, _Alloc, _Base>&& __lhs,
2278 { return std::move(__lhs.append(__rhs)); }
2283 operator+(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2285 { return std::move(__rhs.insert(0, __lhs)); }
2290 operator+(__versa_string<_CharT, _Traits, _Alloc, _Base>&& __lhs,
2293 const auto __size = __lhs.size() + __rhs.size();
2294 const bool __cond = (__size > __lhs.capacity()
2296 return __cond ? std::move(__rhs.insert(0, __lhs))
2297 : std::move(__lhs.append(__rhs));
2303 operator+(const _CharT* __lhs,
2305 { return std::move(__rhs.insert(0, __lhs)); }
2310 operator+(_CharT __lhs,
2312 { return std::move(__rhs.insert(0, 1, __lhs)); }
2317 operator+(__versa_string<_CharT, _Traits, _Alloc, _Base>&& __lhs,
2319 { return std::move(__lhs.append(__rhs)); }
2324 operator+(__versa_string<_CharT, _Traits, _Alloc, _Base>&& __lhs,
2326 { return std::move(__lhs.append(1, __rhs)); }
2332 * @param __lhs First string.
2334 * @return True if @a __lhs.compare(@a __rhs) == 0. False otherwise.
2339 operator==(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2341 { return __lhs.compare(__rhs) == 0; }
2347 std::allocator<_CharT>, _Base>& __lhs,
2350 { return (__lhs.size() == __rhs.size()
2351 && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(),
2352 __lhs.size())); }
2356 * @param __lhs C string.
2358 * @return True if @a __rhs.compare(@a __lhs) == 0. False otherwise.
2363 operator==(const _CharT* __lhs,
2365 { return __rhs.compare(__lhs) == 0; }
2369 * @param __lhs String.
2371 * @return True if @a __lhs.compare(@a __rhs) == 0. False otherwise.
2376 operator==(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2378 { return __lhs.compare(__rhs) == 0; }
2383 * @param __lhs First string.
2385 * @return True if @a __lhs.compare(@a __rhs) != 0. False otherwise.
2390 operator!=(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2392 { return !(__lhs == __rhs); }
2396 * @param __lhs C string.
2398 * @return True if @a __rhs.compare(@a __lhs) != 0. False otherwise.
2403 operator!=(const _CharT* __lhs,
2405 { return !(__lhs == __rhs); }
2409 * @param __lhs String.
2411 * @return True if @a __lhs.compare(@a __rhs) != 0. False otherwise.
2416 operator!=(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2418 { return !(__lhs == __rhs); }
2423 * @param __lhs First string.
2425 * @return True if @a __lhs precedes @a __rhs. False otherwise.
2430 operator<(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2432 { return __lhs.compare(__rhs) < 0; }
2436 * @param __lhs String.
2438 * @return True if @a __lhs precedes @a __rhs. False otherwise.
2443 operator<(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2445 { return __lhs.compare(__rhs) < 0; }
2449 * @param __lhs C string.
2451 * @return True if @a __lhs precedes @a __rhs. False otherwise.
2456 operator<(const _CharT* __lhs,
2458 { return __rhs.compare(__lhs) > 0; }
2463 * @param __lhs First string.
2465 * @return True if @a __lhs follows @a __rhs. False otherwise.
2470 operator>(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2472 { return __lhs.compare(__rhs) > 0; }
2476 * @param __lhs String.
2478 * @return True if @a __lhs follows @a __rhs. False otherwise.
2483 operator>(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2485 { return __lhs.compare(__rhs) > 0; }
2489 * @param __lhs C string.
2491 * @return True if @a __lhs follows @a __rhs. False otherwise.
2496 operator>(const _CharT* __lhs,
2498 { return __rhs.compare(__lhs) < 0; }
2503 * @param __lhs First string.
2505 * @return True if @a __lhs doesn't follow @a __rhs. False otherwise.
2510 operator<=(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2512 { return __lhs.compare(__rhs) <= 0; }
2516 * @param __lhs String.
2518 * @return True if @a __lhs doesn't follow @a __rhs. False otherwise.
2523 operator<=(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2525 { return __lhs.compare(__rhs) <= 0; }
2529 * @param __lhs C string.
2531 * @return True if @a __lhs doesn't follow @a __rhs. False otherwise.
2536 operator<=(const _CharT* __lhs,
2538 { return __rhs.compare(__lhs) >= 0; }
2543 * @param __lhs First string.
2545 * @return True if @a __lhs doesn't precede @a __rhs. False otherwise.
2550 operator>=(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2552 { return __lhs.compare(__rhs) >= 0; }
2556 * @param __lhs String.
2558 * @return True if @a __lhs doesn't precede @a __rhs. False otherwise.
2563 operator>=(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2565 { return __lhs.compare(__rhs) >= 0; }
2569 * @param __lhs C string.
2571 * @return True if @a __lhs doesn't precede @a __rhs. False otherwise.
2576 operator>=(const _CharT* __lhs,
2578 { return __rhs.compare(__lhs) <= 0; }
2582 * @param __lhs First string.
2585 * Exchanges the contents of @a __lhs and @a __rhs in constant time.
2590 swap(__versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs,
2592 { __lhs.swap(__rhs); }