Home
last modified time | relevance | path

Searched refs:newColorStr (Results 1 - 2 of 2) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dcolor.cpp66 unsigned long int HandleIncorrectColor(const std::string& newColorStr) in HandleIncorrectColor() argument
70 unsigned long int value = strtoul(newColorStr.c_str(), &end, COLOR_STRING_BASE); in HandleIncorrectColor()
72 LOGE("%{public}s is out of range.", newColorStr.c_str()); in HandleIncorrectColor()
74 if (value == 0 && end == newColorStr.c_str()) { in HandleIncorrectColor()
75 LOGW("input %{public}s can not be converted to number, use default color:0x00000000.", newColorStr.c_str()); in HandleIncorrectColor()
104 std::string newColorStr; in FromString() local
107 newColorStr += c; in FromString()
108 newColorStr += c; in FromString()
110 unsigned long int value = HandleIncorrectColor(newColorStr); in FromString()
111 if (newColorStr in FromString()
[all...]
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/
H A Dnapi_accessibility_utils.cpp1676 std::string newColorStr; in ColorRegexMatch() local
1679 newColorStr += c; in ColorRegexMatch()
1680 newColorStr += c; in ColorRegexMatch()
1682 auto valueMini = stoul(newColorStr, nullptr, COLOR_STRING_BASE); in ColorRegexMatch()
1683 if (newColorStr.length() < COLOR_STRING_SIZE_STANDARD) { in ColorRegexMatch()

Completed in 4 milliseconds