| 1648 | #ifdef HX_SMART_STRINGS |
| 1649 | |
| 1650 | bool String::eq(const ::String &inRHS) const |
| 1651 | { |
| 1652 | if (length != inRHS.length) |
| 1653 | return false; |
| 1654 | |
| 1655 | bool s0IsWide = isUTF16Encoded(); |
| 1656 | if (s0IsWide != inRHS.isUTF16Encoded() ) |
| 1657 | return false; |
| 1658 | return !memcmp(__s, inRHS.__s, s0IsWide ? 2 * length : length ); |
| 1659 | } |
| 1660 | |
| 1661 | |
| 1662 | int String::compare(const ::String &inRHS) const |
nothing calls this directly
no test coverage detected