| 58 | } |
| 59 | |
| 60 | String8 StringPool::entry::makeConfigsString() const { |
| 61 | String8 configStr(configTypeName); |
| 62 | if (configStr.size() > 0) configStr.append(" "); |
| 63 | if (configs.size() > 0) { |
| 64 | for (size_t j=0; j<configs.size(); j++) { |
| 65 | if (j > 0) configStr.append(", "); |
| 66 | configStr.append(configs[j].toString()); |
| 67 | } |
| 68 | } else { |
| 69 | configStr = "(none)"; |
| 70 | } |
| 71 | return configStr; |
| 72 | } |
| 73 | |
| 74 | int StringPool::entry::compare(const entry& o) const { |
| 75 | // Strings with styles go first, to reduce the size of the styles array. |
no test coverage detected