! * \brief Compares this String object to other * * \param other The String to compare with. * * \return zero if both char sequences compare equal. negative if this appear * before other, positive otherwise. */
| 538 | * before other, positive otherwise. |
| 539 | */ |
| 540 | int compare(const String& other) const { |
| 541 | return Bytes::memncmp(data(), other.data(), size(), other.size()); |
| 542 | } |
| 543 | |
| 544 | /*! |
| 545 | * \brief Compares this String object to other |