Searched refs:handledArg (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | templates_parser.cpp | 267 std::string handledArg = args; in ParseArgs() local 268 ConvertRepeatArgs(handledArg); in ParseArgs() 269 StringUtils::StringSplitter(handledArg, ' ', strs); in ParseArgs() 313 void TemplatesParser::ConvertRepeatArgs(std::string& handledArg) in ConvertRepeatArgs() argument 315 if (handledArg.find(REPEAT_PREFIX) == std::string::npos) { in ConvertRepeatArgs() 318 handledArg.erase(0, handledArg.find_first_not_of(' ')); // trim the input str in ConvertRepeatArgs() 320 if (handledArg.find(UNIT_AUTO_FILL) != std::string::npos) { in ConvertRepeatArgs() 321 … if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, AUTO_REGEX)) { in ConvertRepeatArgs() 322 handledArg = matches[1].str() + matches[2].str(); in ConvertRepeatArgs() 325 …if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, REPEAT_NUM_REGEX)… in ConvertRepeatArgs() [all …]
|
H A D | templates_parser.h | 49 static void ConvertRepeatArgs(std::string& handledArg);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | templates_parser.cpp | 265 void ConvertRepeatArgs(std::string& handledArg) in ConvertRepeatArgs() argument 267 if (handledArg.find(REPEAT_PREFIX) == std::string::npos) { in ConvertRepeatArgs() 270 handledArg.erase(0, handledArg.find_first_not_of(' ')); // trim the input str in ConvertRepeatArgs() 272 if (handledArg.find(UNIT_AUTO_FILL) != std::string::npos) { in ConvertRepeatArgs() 273 … if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, AUTO_REGEX)) { in ConvertRepeatArgs() 274 handledArg = matches[1].str() + matches[CROSS_WIDTH].str(); in ConvertRepeatArgs() 277 …if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, REPEAT_NUM_REGEX)… in ConvertRepeatArgs() 284 handledArg = repeatString; in ConvertRepeatArgs() 349 std::string handledArg = args; in ParseArgsWithoutAutoFill() local 350 ConvertRepeatArgs(handledArg); in ParseArgsWithoutAutoFill() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid_layout/ |
H A D | render_grid_layout.cpp | 562 std::string handledArg = args; in ParseArgsInner() local 563 ConvertRepeatArgs(handledArg); in ParseArgsInner() 564 StringUtils::StringSplitter(handledArg, ' ', strs); in ParseArgsInner() 607 void RenderGridLayout::ConvertRepeatArgs(std::string& handledArg) in ConvertRepeatArgs() argument 609 if (handledArg.find(REPEAT_PREFIX) == std::string::npos) { in ConvertRepeatArgs() 612 handledArg.erase(0, handledArg.find_first_not_of(" ")); // trim the input str in ConvertRepeatArgs() 614 if (handledArg.find(UNIT_AUTO_FILL) != std::string::npos) { in ConvertRepeatArgs() 616 … if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, AUTO_REGEX)) { in ConvertRepeatArgs() 617 handledArg = matches[1].str() + matches[2].str(); in ConvertRepeatArgs() 620 …if (handledArg.size() > REPEAT_MIN_SIZE && std::regex_match(handledArg, matches, REPEAT_NUM_REGEX)… in ConvertRepeatArgs() [all …]
|