Lines Matching +full:two +full:- +full:word
1 # $NetBSD: varmod-to-separator.mk,v 1.23 2025/03/30 00:35:52 rillig Exp $
4 # using an arbitrary character as word separator.
6 WORDS= one two three four five six
9 .if ${WORDS:ts } != "one two three four five six"
14 .if ${WORDS:ts,} != "one,two,three,four,five,six"
19 .if ${WORDS:ts/:tu} != "ONE/TWO/THREE/FOUR/FIVE/SIX"
25 .if ${WORDS:ts::tu} != "ONE:TWO:THREE:FOUR:FIVE:SIX"
51 .if ${WORDS:tu:ts/} != "ONE/TWO/THREE/FOUR/FIVE/SIX"
58 .if ${WORDS:ts:} != "one:two:three:four:five:six"
68 .if ${WORDS:ts:S/two/2/} != "one2threefourfivesix"
73 .if ${WORDS:S/two/2/:ts} != "one2threefourfivesix"
79 .if ${WORDS:ts/:S/two/2/} != "one/2/three/four/five/six"
83 # After the modifier ':ts/', the expression value is a single word since all
84 # spaces have been replaced with '/'. This single word does not start with
85 # 'two', which makes the modifier ':S' a no-op.
86 .if ${WORDS:ts/:S/^two/2/} != "one/two/three/four/five/six"
91 # word since all spaces have been replaced with x. Because of this single
92 # word, only the first 'b' is replaced with 'B'.
97 # The :ts modifier also applies to word separators that are added
99 # ':S' replaces the 2 'b's with spaces. These spaces are part of the word,
101 # a single word, and the custom separator from the modifier ':tsx' has no
109 # newly added spaces are treated as word separators, resulting in 3 words.
117 # The modifier ':@' always uses a space as word separator instead. This has
130 .if ${WORDS:[1..3]:ts\n} != "one${.newline}two${.newline}three"
135 .if ${WORDS:[1..3]:ts\t} != "one two three"
140 .if ${WORDS:[1..3]:ts\012:tu} != "ONE${.newline}TWO${.newline}THREE"
145 .if ${WORDS:[1..2]:ts\000000000000000000000000012:tu} != "ONE${.newline}TWO"
152 # Since 2020-11-01, these out-of-bounds values are rejected.
161 .if ${WORDS:[1..3]:ts\xa:tu} != "ONE${.newline}TWO${.newline}THREE"
167 # Since 2020-11-01, these out-of-bounds values are rejected.
177 .if ${word:L:ts\x,}
183 .if ${word:L:ts\x112233445566778899}
187 # expect+1: Unknown modifier ":ts\-300"
188 .if ${WORDS:[1..3]:ts\-300:tu}
228 # The word separator can only be a single character.
251 # happens for non-octal digits. From 2003.07.23.18.06.46 to
261 # Try whether bmake is Unicode-ready.