Home | History | Annotate | Download | only in modules

Lines Matching full:regex

13 # 2. Replace the flags in both variables with the new flag via a regex.
18 macro(make_crt_regex regex crts)
19 set(${regex} "")
23 set(${regex} "${${regex}}|(^| +)/${crt}($| +)")
25 string(REGEX REPLACE "^\\|" "" ${regex} "${${regex}}")
28 macro(get_current_crt crt_current regex flagsvar)
31 string(REGEX MATCH "${${regex}}" ${crt_current} "${${flagsvar}}")
38 macro(set_flag_in_var flagsvar regex flag)
39 string(REGEX MATCH "${${regex}}" current_flag "${${flagsvar}}")
43 string(REGEX REPLACE "${${regex}}" "${${flag}}" ${flagsvar} "${${flagsvar}}")