| 230 | } |
| 231 | |
| 232 | int64_t parseInt(const ccstd::string &str, uint8_t base = 10) { |
| 233 | return strtoll(str.c_str(), nullptr, base); |
| 234 | } |
| 235 | |
| 236 | uint8_t parseCssInt(const ccstd::string &str) { // int or percentage. |
| 237 | if (str.length() && str.back() == '%') { |
no outgoing calls