| 39 | { |
| 40 | public: |
| 41 | struct entry { |
| 42 | entry() : offset(0) { } |
| 43 | entry(const String16& _value) : value(_value), offset(0), hasStyles(false) { } |
| 44 | entry(const entry& o) : value(o.value), offset(o.offset), |
| 45 | hasStyles(o.hasStyles), indices(o.indices), |
| 46 | configTypeName(o.configTypeName), configs(o.configs) { } |
| 47 | |
| 48 | String16 value; |
| 49 | size_t offset; |
| 50 | bool hasStyles; |
| 51 | Vector<size_t> indices; |
| 52 | String8 configTypeName; |
| 53 | Vector<ResTable_config> configs; |
| 54 | |
| 55 | String8 makeConfigsString() const; |
| 56 | |
| 57 | int compare(const entry& o) const; |
| 58 | |
| 59 | inline bool operator<(const entry& o) const { return compare(o) < 0; } |
| 60 | inline bool operator<=(const entry& o) const { return compare(o) <= 0; } |
| 61 | inline bool operator==(const entry& o) const { return compare(o) == 0; } |
| 62 | inline bool operator!=(const entry& o) const { return compare(o) != 0; } |
| 63 | inline bool operator>=(const entry& o) const { return compare(o) >= 0; } |
| 64 | inline bool operator>(const entry& o) const { return compare(o) > 0; } |
| 65 | }; |
| 66 | |
| 67 | struct entry_style_span { |
| 68 | String16 name; |