MCPcopy Create free account
hub / github.com/cocos/cocos-engine / parseInt

Function parseInt

native/cocos/base/csscolorparser.cpp:232–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

parseVersionFunction · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
safeAreaEdgeMethod · 0.85
frameRateMethod · 0.85
_attributeToObjectMethod · 0.85
font-loader.tsFile · 0.85
findEmployAttrFunction · 0.85
resetConfigurationMethod · 0.85
findDefineIndependentFunction · 0.85
_updateMatrixMethod · 0.85

Calls

no outgoing calls

Tested by 1

_deserializeMethod · 0.68