Lines Matching defs:string
135 const std::vector<std::string> CURVE_ARRAY = { "linear", "ease", "ease-in", "ease-out", "ease-in-out",
138 const std::vector<std::string> FONT_STYLES = { "normal", "italic" };
139 const std::vector<std::string> LENGTH_METRIC_UNIT = { "px", "vp", "fp" };
184 std::string g_stringValue;
219 const std::string EMPTY_STR = "";
220 const std::vector<std::string> ACCESSIBILITY_LEVEL_VECTOR = { "auto", "yes", "no", "no-hide-descendants" };
221 std::map<std::string, int32_t> ACCESSIBILITY_LEVEL_MAP = { { "auto", 0 }, { "yes", 1 }, { "no", 2 },
224 std::unordered_map<uint32_t, std::string> ACCESSIBILITY_ROLE_CONVERT_PROPERTY_MAP = {
262 std::unordered_map<std::string, uint32_t> ACCESSIBILITY_ROLE_CONVERT_NATIVE_MAP = {
306 g_attributeItem.string = nullptr;
309 uint32_t StringToColorInt(const char* string, uint32_t defaultValue = 0)
312 std::string colorStr(string);
339 int StringToInt(const char* string, int defaultValue = 0)
342 auto value = std::strtol(string, &end, 10);
343 if (end == string || errno == ERANGE || (value < INT_MIN || value > INT_MAX)) {
349 int StringToEnumInt(const char* value, const std::vector<std::string>& vec, int defaultValue)
351 std::string input(value);
352 auto it = std::find_if(vec.begin(), vec.end(), [&input](const std::string& str) { return str == input; });
359 std::string CurveToString(int curve)
361 std::string curveStr = "linear";
408 std::string ShapeToString(int shape)
410 std::string shapeStr = "rect";
473 std::string ConvertAccessibilityRole(uint32_t nodeTypeInt)
475 std::string nodeTypeString = EMPTY_STR;
483 int32_t UnConvertAccessibilityRole(const std::string& nodeTypeString)
645 if (!item->string) {
891 if ((!item->string && !item->object) || (item->string && item->object)) {
900 std::string bundle;
901 std::string module;
903 if (item->string) {
905 node->uiNodeHandle, item->string, bundle.c_str(), module.c_str(), repeat);
929 g_attributeItem.string = options.src;
993 if (!item->string) {
998 fullImpl->getNodeModifiers()->getCommonModifier()->setKey(node->uiNodeHandle, item->string);
1011 g_attributeItem.string = modifier->getKey(node->uiNodeHandle);
1890 if (item->string == nullptr) {
1901 node->uiNodeHandle, "path", &pathAttributes, item->string, unit);
1951 g_attributeItem.string = options.commands;
2190 if (item->string == nullptr) {
2194 fullImpl->getNodeModifiers()->getCommonModifier()->setAccessibilityText(node->uiNodeHandle, item->string);
2201 g_attributeItem.string = resultValue;
2227 std::string levelString(resultValue);
2240 if (item->string == nullptr) {
2244 fullImpl->getNodeModifiers()->getCommonModifier()->setAccessibilityDescription(node->uiNodeHandle, item->string);
2252 g_attributeItem.string = resultValue;
2299 std::string nodeTypeString = ConvertAccessibilityRole(item->value[0].u32);
2318 std::string nodeTypeString = fullImpl->getNodeModifiers()->getCommonModifier()->getAccessibilityRole(
2390 if (item->string == nullptr) {
2419 node->uiNodeHandle, item->string, values, ALLOW_SIZE_10);
2429 g_attributeItem.string = contentStr;
2704 if (item->string == nullptr) {
2720 node->uiNodeHandle, "path", fill, stroke, strokeWidth, &pathAttributes, item->string, unit);
2811 g_attributeItem.string = options.commands;
3298 if (item->string == nullptr) {
3310 fullImpl->getNodeModifiers()->getCommonModifier()->setGeometryTransition(node->uiNodeHandle, item->string,
3328 g_attributeItem.string = modifier->getGeometryTransition(node->uiNodeHandle, &options);
3948 ArkUI_CharPtr itemString = item->string;
3961 g_attributeItem.string = resultValue;
3975 ArkUI_CharPtr itemString = item->string;
3988 g_attributeItem.string = resultValue;
4256 node->uiNodeHandle, &size, weight, item->string, style);
4271 g_attributeItem.string = font.fontFamilies;
4427 std::string str = "";
4428 if (item->string) {
4429 str.assign(item->string);
4448 g_attributeItem.string =
4622 ArkUI_CharPtr itemString = item->string;
4634 g_attributeItem.string = fullImpl->getNodeModifiers()->getTextInputModifier()->getTextInputPasswordRules(
4707 ArkUI_CharPtr itemString = item->string;
4719 g_attributeItem.string = fullImpl->getNodeModifiers()->getTextInputModifier()->getTextInputInputFilter(
5902 node->uiNodeHandle, &size, weight, item->string, style);
5917 g_attributeItem.string = font.fontFamilies;
5931 ArkUI_CharPtr itemString = item->string;
5944 g_attributeItem.string = resultValue;
5958 ArkUI_CharPtr itemString = item->string;
5971 g_attributeItem.string = resultValue;
6109 if (item == nullptr || item->string == nullptr) {
6113 fullImpl->getNodeModifiers()->getButtonModifier()->setButtonLabel(node->uiNodeHandle, item->string);
6121 g_attributeItem.string = resultValue;
6266 if (item == nullptr || !item->string) {
6269 fullImpl->getNodeModifiers()->getXComponentModifier()->setXComponentId(node->uiNodeHandle, item->string);
6277 g_attributeItem.string = resultValue;
6516 std::vector<std::string> familyArray;
6517 if (item->string != nullptr) {
6518 std::string value(item->string);
6549 g_attributeItem.string = font.fontFamilies;
6808 std::vector<std::string> IndicatorProps = { "boolean", "true" };
6814 std::string result;
7006 std::string type = "number";
7007 std::string displayCount = std::to_string(item->value[0].i32);
7077 std::string result;
7412 if (item->string == nullptr) {
7416 std::string value(item->string);
7417 std::vector<std::string> fontFamilies;
7434 fullImpl->getNodeModifiers()->getTextAreaModifier()->setTextAreaFontFamily(node->uiNodeHandle, item->string);
7443 g_attributeItem.string = resultValue;
7446 g_attributeItem.string = resultValue;
7651 g_attributeItem.string = value;
7657 if (!item || !item->string) {
7661 std::vector<std::string> date;
7662 StringUtils::StringSplitter(item->string, '-', date);
7686 g_attributeItem.string = value;
7692 if (!item->string) {
7696 std::vector<std::string> date;
7697 StringUtils::StringSplitter(item->string, '-', date);
7721 g_attributeItem.string = value;
7727 if (!item || !item->string) {
7731 std::vector<std::string> date;
7732 StringUtils::StringSplitter(item->string, '-', date);
7756 g_attributeItem.string = value;
7762 if (!item->string) {
7766 std::vector<std::string> params;
7767 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
7779 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
7797 g_attributeItem.string = value;
7803 if (!item->string) {
7807 std::vector<std::string> params;
7808 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
7820 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
7838 g_attributeItem.string = value;
7844 if (!item->string) {
7848 std::vector<std::string> params;
7849 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
7861 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
7880 g_attributeItem.string = value;
7886 if (!item->string) {
7890 std::vector<std::string> time;
7891 StringUtils::StringSplitter(item->string, '-', time);
7945 g_attributeItem.string = value;
7951 if (!item->string) {
7955 std::vector<std::string> params;
7956 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
7968 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
7987 g_attributeItem.string = value;
7993 if (!item->string) {
7997 std::vector<std::string> params;
7998 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
8009 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
8028 g_attributeItem.string = value;
8034 if (!item->string) {
8038 std::vector<std::string> params;
8039 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
8051 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
8070 g_attributeItem.string = value;
8076 if (!item->string) {
8080 std::vector<std::string> params;
8081 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
8093 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
8112 g_attributeItem.string = value;
8118 if (!item->string) {
8122 std::vector<std::string> params;
8123 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
8135 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
8154 g_attributeItem.string = value;
8160 if (!item->string) {
8164 std::vector<std::string> params;
8165 StringUtils::StringSplitter(item->string, PARAMS_SEPARATOR_LEVEL1, params);
8177 std::string fontInfo = params[NUM_1] + '|' + params[NUM_2] + '|' + params[NUM_3];
8235 g_attributeItem.string = value;
8248 if (!item->string) {
8253 node->uiNodeHandle, item->string, isSingleRange, item->value[NUM_0].i32);
8267 g_attributeItem.string = value;
8273 if (!item->string) {
8278 node->uiNodeHandle, item->string);
9224 fullImpl->getNodeModifiers()->getTextModifier()->setContent(node->uiNodeHandle, item->string);
9646 if (item->string == nullptr) {
9653 node->uiNodeHandle, item->string);
9656 fullImpl->getNodeModifiers()->getTextModifier()->setTextFontFeature(node->uiNodeHandle, item->string);
9660 node->uiNodeHandle, item->string);
9675 g_attributeItem.string = (feature != nullptr ? feature : EMPTY_STR.c_str());
9679 g_attributeItem.string = (feature != nullptr ? feature : EMPTY_STR.c_str());
9683 g_attributeItem.string = (feature != nullptr ? feature : EMPTY_STR.c_str());
9715 fullImpl->getNodeModifiers()->getSpanModifier()->setContent(node->uiNodeHandle, item->string);
9799 fullImpl->getNodeModifiers()->getImageModifier()->setSrc(node->uiNodeHandle, item->string);
9825 fullImpl->getNodeModifiers()->getImageModifier()->setSrc(node->uiNodeHandle, item->string);
9943 if (!item || (!item->string && !item->object)) {
9949 imageInfo.url = item->string;
9957 if (!item->string) {
10740 g_attributeItem.string = (textContent != nullptr ? textContent : EMPTY_STR.c_str());
11023 g_attributeItem.string = (content != nullptr ? content : EMPTY_STR.c_str());
11044 g_attributeItem.string = (src != nullptr ? src : EMPTY_STR.c_str());
11068 g_attributeItem.string = (src != nullptr ? src : EMPTY_STR.c_str());
11139 g_attributeItem.string = (src != nullptr ? src : EMPTY_STR.c_str());
11385 if (item->string == nullptr) {
11389 std::string src(item->string);
11390 std::string bundle;
11391 std::string module;
11406 node->uiNodeHandle, "path", &pathAttributes, item->string);
11433 g_attributeItem.string = imageValue;
11455 g_attributeItem.string = pathCommands;
11825 fullImpl->getNodeModifiers()->getWaterFlowModifier()->setColumnsTemplate(node->uiNodeHandle, item->string);
11839 g_attributeItem.string = columnsTemplate;
11849 fullImpl->getNodeModifiers()->getWaterFlowModifier()->setRowsTemplate(node->uiNodeHandle, item->string);
11863 g_attributeItem.string = rowsTemplate;
12243 fullImpl->getNodeModifiers()->getRadioModifier()->setRadioValue(node->uiNodeHandle, item->string);
12257 g_attributeItem.string = (value != nullptr ? value : EMPTY_STR.c_str());
12267 fullImpl->getNodeModifiers()->getRadioModifier()->setRadioGroup(node->uiNodeHandle, item->string);
12281 g_attributeItem.string = (value != nullptr ? value : EMPTY_STR.c_str());
12499 fullImpl->getNodeModifiers()->getGridModifier()->setGridColumnsTemplate(node->uiNodeHandle, item->string);
12513 g_attributeItem.string = columnsTemplate;
12523 fullImpl->getNodeModifiers()->getGridModifier()->setGridRowsTemplate(node->uiNodeHandle, item->string);
12537 g_attributeItem.string = rowsTemplate;