| 38 | namespace Jrd { |
| 39 | |
| 40 | int MetaName::compare(const char* s, FB_SIZE_T len) const |
| 41 | { |
| 42 | if (s) |
| 43 | { |
| 44 | adjustLength(s, len); |
| 45 | FB_SIZE_T x = length() < len ? length() : len; |
| 46 | int rc = memcmp(c_str(), s, x); |
| 47 | if (rc) |
| 48 | { |
| 49 | return rc; |
| 50 | } |
| 51 | } |
| 52 | else |
| 53 | len = 0; |
| 54 | |
| 55 | return length() - len; |
| 56 | } |
| 57 | |
| 58 | void MetaName::adjustLength(const char* const s, FB_SIZE_T& len) |
| 59 | { |
no test coverage detected